Hi,
I am using infragistics.WebUI.UltraWebGrid.v3 ,
It is taking time to load when we have large amount of data,
So i am tring to use LoadOnDemand,but when i am setiing Browser="Xml" and
LoadOnDemand="Xml"
it is giving following error:
'Xml' is not a valid value for attribute 'Browser'. It must be of enum type 'Infragistics.WebUI.UltraWebGrid.BrowserLevel'.
and also code behind side DisplayLayout.XmlLoadOnDemandType is also giving following error:
'Infragistics.WebUI.UltraWebGrid.UltraGridLayout' does not contain a definition for 'XmlLoadOnDemandType'
Please suggest me how to improve performance of page.
Thanks,
ARMS
Hello,
The two properties you are setting are enumerations and can be set with the following code:
this.UltraWebGrid1.Browser = BrowserLevel.Xml;this.UltraWebGrid1.DisplayLayout.LoadOnDemand = LoadOnDemand.Xml;
Note you will also need to add a using (C#) or Imports (VB) statement for the Infragistics.WebUI.UltraWebGrid namespace.
You may also want to refer to the Using XML Load-On-Demand topic in the help.
Let me know if you have any questions with this matter.
Hi Alan,
I am using Loadondemand feature. Every thing works fine.We are using custom templatecolumn which contains Checkbox, linkbutton etc. Now i check few checkboxes and then scroll the grid.As you know when we scroll the grid according to loadondemand feature next chunk of rows gets initialised. template column is not again loaded.
ie, Same checkbox rows are displayed even after scrolling the grid.
If possible Please reply ASAP.
protected
e)
{
);
)
col.CellTemplate =
();
}
)col.CellItems[e.Row.Index]).Controls[0];
cb.Text =
+ e.Row.Index.ToString();
cb.Attributes.Add(
I think that should work for us. I will implement and let u know if i face any issues. Thanks...
LoadOnDemand will not work as expected with TemplatedColumns because the grid doesn't send the server controls to the client. Your best option is to use an alternate approach where you set the value of a cell to be a string containing the html you wish to use with in the cell. For example in your case, you might use something like:
cell.Value = "<input type='checkbox' onclick='UpdateHfDelete()'/>"
Note that I didn't include the parameters in the method call in the onclick method.
Let me know if this approach will work for you.