Browse by Tags

Related Posts

  • Re: DynamicControl dropdown default the value

    You add this to your ForeignKet_Edit.ascx.cs FieldTemplate see the previously mentioned article Hi have a look at Dynamic Data – Default Value in ForeignKey Edit FieldTemplate and DynamicData Default Values in ForegnKey_Edit & other FieldTemplates which was using Attributes.
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 04-01-2009, 12:00 AM
    Filed under: QueryString Parameters, Default Values, Dynamic Data, FieldTemplate, ForeignKey_Edit
  • Re: DynamicControl dropdown default the value

    Try this code: protected override void OnDataBinding(EventArgs e) { base .OnDataBinding(e); if (Mode == DataBoundControlMode.Edit) { string foreignkey = ForeignKeyColumn.GetForeignKeyString(Row); ListItem item = DropDownList1.Items.FindByValue(foreignkey); if (item != null ) { DropDownList1.SelectedValue...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 04-01-2009, 12:00 AM
    Filed under: Default Values, Dynamic Data, FieldTemplate, ForeignKey_Edit
  • How to add CheckBox without using Template field

    Hi All, I have a requirement where I need a Checkbox in Header field as well as in rows along with the records, I am binding the grid at runtime with different different Stored Procedure so every time my Gridview design has changes so I can’t use TemplateFiled for adding the Checkbox. And when I add...
    Posted to Data Presentation Controls (Forum) by vikrant.soni on 03-05-2009, 12:00 AM
    Filed under: vb.net, ASP.NET, asp.net 3.5 sp1, ASP.NET Dynamic Data client side scripting, Data DynamicField.HeaderText, DiplayColumn, DisplayColumn, FieldTemplate, GridView
  • Re: Problem with cascading dropdowns from blog post?

    This issue there is that the in the standard table OrderID and ProductID both in the Primary key to test this you will have to butcher you Northwind or create some tables that simulate what you want. What version of SQL Server are you running is 2008 I can probably send you my buchered version of Northwind...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 01-29-2009, 12:00 AM
    Filed under: Cascading, Dynamic Data, FieldTemplate, ForeignKey_Edit
  • Re: How to create a "Many To Many Cascade" Control

    [quote user="Loopmaster"] Error says something like "Variable 'Row' can only be used on databound controls" (very bad german/english translation). [/quote] The issue here is you are trying to access Row before the OnDataBound event, because before that is does not contain...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 06-23-2009, 12:00 AM
    Filed under: Dynamic Data, FieldTemplate, Row, OnDataBound
  • FieldTemplates: Children.ascx: Displaying Count

    I'd like to modify the Dynamic Data Field Template for 1:n relationships (Children.ascx) to display a count of target records. In otherwords, instead of displaying, say, "View Orders" I want to display "10 Order(s)". I fugure this should be a common requirement so certainly someone...
    Posted to ASP.NET Dynamic Data (Forum) by Tyrven on 09-02-2009, 12:00 AM
    Filed under: Dynamic Data, ASP.NET Dynamic Data, FieldTemplates, FieldTemplate, Children.ascx
  • Re: How to implement n-Cascade Filter?

    And here's the link to my finished article on Cascading FieldTemplates hope it helps Dynamic Data – Cascading FieldTemplates you out. I'll be working on the Cascading Filters in the next week now I've got this done.
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 01-19-2009, 12:00 AM
    Filed under: Cascading, Dynamic Data, FieldTemplate, ForeignKey_Edit
  • Getting a Reference to a FieldTemplate Control from DynamicField

    I need to get a reference to a FieldTemplate control "Text" when my detailsview is databound. Trying to cast the controls within the DataControlFieldCell doesn't work. Thanks! Bob
    Posted to ASP.NET Dynamic Data (Forum) by rpk1NorthBend on 04-23-2009, 12:00 AM
    Filed under: dynamic data .net c#, DynamicField, FieldTemplate
  • Re: DynamicControl dropdown default the value

    No problem ther is a way of doing this, will the type always be the same i.e. Int32 or String etc? by the way are you using Linq to SQL or Entity Framework?
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 04-01-2009, 12:00 AM
    Filed under: Default Values, Dynamic Data, FieldTemplate, ForeignKey_Edit
  • Re: Enumeration FieldTemplate

    DD FieldTemplateFactory detects this and makes sure to use the Enumerator FieldTemplate see the OLD DyanmicDataFutures on codeplex for an actual implementation Dynamic Data Futures VS2008 SP1 RTM
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 06-24-2009, 12:00 AM
    Filed under: Dynamic Data, Enumeration_Edit, FieldTemplate
Page 1 of 2 (16 items) 1 2 Next >