For some reason when I load my Ajax enabled grid it is only returning the number of rows in the RowsRange property.
I have recreated both the grid and datasource and problem is still there.
Any idea of what might be going on?
All of these settings look to be correct to me. If there's no exception being raised on either the server or the client, that rules out what I was considering.
Robert said:I can see that the UltraWebGrid1_InitializeRow is fired from the XmlHTTPResponse but it is always requesting the second set of data.
I've provided this information to a Developer Support Engineer to create a support case for you. The Developer Support Engineer will work with you to investigate this issue and help identify a resolution.
In the future, you can also submit a support request to Developer Support as detailed on this page.
Hey Vince.
I have Ajax enabled with:browser=xml loadondemand=xmlXmlLoadOnDemandCommandType=synchronous
No page errors are being generated and the XmlHTTPResponses are coming back as processed successfully. The ServerRows property is showing 2,015.
When I click on the small portion of scrollbar that is visible, I get the "Processing" Icon in the center of the grid and the response comes back as successful but nothing new is displayed.
I can see that the UltraWebGrid1_InitializeRow is fired from the XmlHTTPResponse but it is always requesting the second set of data.
After UltraWebGrid1_InitializeRow, what else can fail?
Robert
Thanks for the additional information. What you've described is different from what I was talking about.
You mention that the XML properties are set "correctly." Can you please confirm which properties you're talking about and their current settings? Some of these properties have more than one "correct" value.
Additionally, can you test what happens when you turn off the grid's AJAX functionality?
There might be an exception occurring when the AJAX request is made, which would cause the grid to be unable to get additional rows. Consider handling the Page_Error server-side event to write to an event log, or to use the grid's client-side XmlHTTPResponse to look at what is being sent back from the server.
Hey Vince,
Yes I have the grid setup to use Ajax and all of the XML properties are set correctly. The behavior I am experiencing is that I cannot scroll past the first stream (RowsRange) of data. It just started happening. I recreated the grid and sqldatasource from scratch and the behavior still exists.
R
That depends on where you're looking at the rows (server or client), when you're looking (in which event and after what actions on the grid), and what other settings are on the grid (such as the DisplayLayout.XmlLoadOnDemandType property).
If you're looking at the number of rows that appear in the grid on the server, and if DisplayLayout.XmlLoadOnDemandType is set to anything other than Accumulative, this is correct and expected behavior. The grid only creates gird rows for the first (RowsRange) number of rows, which is what it will initially send back to the client. Any additional rows are retrieved using AJAX. If you post back (as opposed to using the grid's AJAX callbacks), the grid will once again only create grid rows fo rthe first (RowsRange) number of rows.