Hi ,
I am facing with an issue since past two weeks but not able to get any solution for this.
The Issue is while i click on next page for the inner grid in infragestics web hierarchical grid, it throws "Async Request failed, Object reference not set to an instance of an object". I have searched in many Blogs. The temperary solution is given as add a property EnableAjax=" false" in Web hirarchical grid in aspx page. But still did not work me.
Can Any once suggest me how to resolve the issue???
Please reply if any one has some solution for this.
Thanks,
Chaitanya
Hello Chaitanya,
Thank you for contacting Infragistis!
I may need more information from you regarding this issue. Please attach a copy of the Stacktrace together with you response.
I you have any questions, please let me know as well.
Hi
Thanks a lot for your response!
Please find the attached snapshot of stack trace for the issue.
Waiting for your response!!!
Hello Vivian,
I have commented the code PageIndex of main grid to 0.But still I am facing the same issue while paging for inner grid.
Note : I am using AjaxControlToolKit version 3.5 FYI
Could you suggest me any other solution for this.
You may comment out gridCustomer.RefreshBehaviors(). If you have any questions, please let me know as well.
Hi Vivian,
I have tried with different code changes. But still I get the same error even after commented refresh behaviours.
Could you please tel me why do we get this error? Is there any root cause for it.
Please suggest to resolve my issue.
Thanks
Let me explain you the exact requirement which I have and the issue which I Am facing during paging.
I have been trying to implement dynamic paging i.e set no of records per page both for inner grid and out grid.
eg. if we select 20 ,then the outer grid should show 20 records per page and while paging it should retain the same no. of records.
But the issue is when i implement this functionality,I had issue with outer grid paging it does not retain the no . page records which i set.
So I have used Refresh behaviours() which solved my issue for outer grid and but with this i get error for inner grid.
Hope you understood my requirement and issue which i am facing.
Please suggest me on this and let me know any further info. required.
The PageSize may be set dynamically within the Page_init event handler as follows:
protected void Page_Init(object sender, EventArgs e)
{
// The following code are for the WebDropDown from which the user can change the page size.
if (!IsPostBack)
this.WebDropDown1.DataSource = new DataLayer().GetTableDropDown();
this.WebDropDown1.TextField = "PageNo";
this.WebDropDown1.ValueField = "PageNo";
this.WebDropDown1.CurrentValue = "10";
}
// The following code sets the main grid's page size based off the currentvalue of the WebDropDown
this.WebHierarchicalDataGrid1.GridView.Behaviors.Paging.PageSize = Convert.ToInt32(this.WebDropDown1.CurrentValue);
// The following code sets the grid's Child Band's page size based off the currentvalue of the WebDropDown
this.WebHierarchicalDataGrid1.Bands[0].Behaviors.Paging.PageSize = Convert.ToInt32(this.WebDropDown1.CurrentValue);
In addition, the WebDropDown's ValueChanged AutoPostBack flag is set to On.
For more details, please refer to the attached sample. Please let me know if the sample demonstrates the behavior you have in mind or otherwise. This way we may provide a more appropriate solution to your requirements.
If you have any questions, please let me know as well.
Sorry, I could follow you up these days due to my work.
I have tried the solution which you have provided but it did not solve the issue.
The issue still I am facing is I am not able to set dynamically assign number of records per page both for inner grid and outer grid.
While Paging for outer grid or inner grid ,the number of records which I have assigned per page is does not retain. It sets default value as 8 or 10(if in aspx page I define pagesize =10).
Could you please help me in resolving the issue and fulfill my requirement.
Thank you in advance.
Waiting for your reply.
Regards,
Chiatanya
It is possible. Although, I would like to verify. Please let me know the 11.2 build you are using.
I have implemented the same. But still I get the issue.
Is that,the issue with infragistics old version .I am using infragistics 11.2. but the code which you have given is having 14.2.
Please let me know is the issue with version problem.
Thanks a lot Vivian.I would try out this solution.
I wiill get back to you for any issues.