Hello.
I would like to replace an ASP.net Datalist control with one of IG's Ajax controls. The Datalist control is simple to use, with it's Itemtemplate and layout direction and number of columns.
Which would be the best solution? If the WebDataGrid, what's the best way to emulate the three features of the Datalist outlined above?
I am using IG Ultimate 2011.2.
Thank you,
Mike
Hello Mike,
“WebDataGrid” and “WebHierarchicalDataGrid” controls have all three features mentioned by you and many more.
The “WebDataGrid” have Template columns that can be used to insert many types of ASP and HTML controls. You can also use some of the available column types (like checkbox column for example) and editor providers (like dropdowns, calendars etc.):
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid_Columns.html
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid_Templates.html
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid_Editor_Providers.html
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Display/Cell-Column-Templates/Default.aspx?cn=data-grid&sid=2d5ef9ed-9109-425a-b66b-c3efea04802c
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/Editing-Editor-Providers/Default.aspx?cn=data-grid&sid=12b48e9e-8ffb-4c61-837c-58118040f669
You can also add numbering to rows by simply enabling “RowSelectors” behavior and setting “RowNumbering” to “true” - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid_Enabling_Row_Selectors.html
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/Row-Selectors/Default.aspx?cn=data-grid&sid=b4f1a865-47eb-4359-82d1-1bc5ac2a249e
Layout direction is not implemented as a feature in the grid but something similar can be achieved by using Templates or by inserting HTML into the Data Source that will be later displayed in the grid as rendered content (HtmlEncode property of the column).
Let me know if you need more information regarding this question.
Let me know if you have additional questions.
Thanks, Alex. I figured it was the grid, it's just a bit more complex than the DataList.
I've worked with it before. I will have to get to know it better, especially the Ajax aspect of it.