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
Hi Vivian,
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
Hello Chaitanya,
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.
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.