This is a migrated thread and some comments may be shown as answers.

[Solved] radgrid IE error

11 Answers 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jason b
Top achievements
Rank 1
jason b asked on 03 Dec 2009, 04:58 PM
I am sure I simply missed this config or such option when using the radgrid, but at this poitn I am not sure what the error is coming from.

I have a bound radgrid that shows up with its data fine in all browsers.  However, when i click the pageing function of the grid, it only works in FireFox and IE6.  In IE 7 and IE 8 (including quirks and compatibility modes) it emptys the grid whenever i try to click on any of the paging buttons. 

Is this a bug fix needed or do I need to do something to configure the control that i forgot to do?

Thanks!

11 Answers, 1 is accepted

Sort by
0
jason b
Top achievements
Rank 1
answered on 04 Dec 2009, 04:48 PM
Is there more data I need to provide to help adress this issue?
0
Pavlina
Telerik team
answered on 04 Dec 2009, 05:25 PM
Hello Jason,

Can you confirm that you do not have any DataBind() calls for the grid?
Please have in mind that RadGrid paging is not supported with SimpleData binding. You should use advanced binding with NeedDataSource even handling or assign a data source control for the grid.

However, in case you use simple binding with DataBind() calls, consider switching to this type of binding to see whether this addresses the issue.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
jason b
Top achievements
Rank 1
answered on 04 Dec 2009, 06:43 PM
Thanks i will take a look at my databinding type today and see if the Grid has any calls missing, thanks!
0
jason b
Top achievements
Rank 1
answered on 04 Dec 2009, 06:46 PM
ok, on a drop down list selection i bind the grid:

radGridOrderList.DataSource = orderList;

radGridOrderList.DataBind();

Session[

"GridSource"] = radGridOrderList.DataSource;

 


^ I put the datasource into session so that when the paging event is called i can pass in the datasource

protected

void radGridOrderList_PageIndexChanged(object source, Telerik.Web.UI.GridPageChangedEventArgs e)

 

{

radGridOrderList.DataSource = Session[

"GridSource"];

 

}



This all appears to work fin ein FireFox and IE 6, but in IE 7 or IE 8 the grib will not bind on the PageIndexChanged event.  Could it have something to do with the way IE7+ handles session info?
0
jason b
Top achievements
Rank 1
answered on 04 Dec 2009, 08:12 PM
oops forgot, i am also using the needDataSource methos as well...

protected

void radGridOrderList_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

 

if (Session["GridSource"] == null)

 

{

}

 

else

 

{

radGridOrderList.DataSource = Session[

"GridSource"];

 

}

}

0
Pavlina
Telerik team
answered on 07 Dec 2009, 03:01 PM
Hello Jason,

Please note that when using declarative the NeedDataSource event, RadGrid can automatically accommodate the appropriate database operations without the need for you explicitly handle any paging, sorting, grouping, and so on.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
jason b
Top achievements
Rank 1
answered on 07 Dec 2009, 04:27 PM
Ok, then assuming i am using the NeedDataSource event properly, why am i loosing my datasource on the paging event?
0
Pavlina
Telerik team
answered on 08 Dec 2009, 03:40 PM
Hi Jason,

I followed your scenario and prepared a simple working project which handles the desired functionality. Please check it out and let me know what is the difference in your scenario.

I hope this helps.

Best wishes,

Pavlina
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
jason b
Top achievements
Rank 1
answered on 08 Dec 2009, 04:55 PM
thanks!  I will take a look at it today.
0
jason b
Top achievements
Rank 1
answered on 08 Dec 2009, 10:12 PM
Looks like we might have just been loosing our session, i am investigating if it was due to the way we handeld the radgrid event...
0
Pavlina
Telerik team
answered on 11 Dec 2009, 01:55 PM
Hi Jason,

If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating the problem. We will review it locally, and get back to you with additional information.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
jason b
Top achievements
Rank 1
Answers by
jason b
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or