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
I think that should work for us. I will implement and let u know if i face any issues. Thanks...
Hello,
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.
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(
Kavitha,
Let me know if I may be of further assistance with this matter.
As an alternative to using a TemplateField, you can use a BoundDataField and set the FormatFieldMethod for the column and render html that consists of an image or html link that will open a new page where you pass the row that the button was clicked for as a parameter in the url. I have attached an example that shows this using an html input type button.
Note that in the attached sample I have removed the ig_res directory to make the attachment small enough to post here and you will need to add this back for styling.
Let me know if you have any questions with this matter.