Ricardo Pinto
Posted
on Mar 5, 2010
(permalink)
Hello!
After installing the Q1 2010 Beta release, some of my grids started acting funny :)
The pager does not render on page load but only after some operation, like grouping or clicking a templateColumn with a button. And when it appears, it is placed on top of the grid!
I'm using a sasGrid class which extends the Telerik RadGrid and has AllowPaging=True by default.
Thanks for your support!
Best regards,
Ricardo.
Ps: Looking forward for the full Q1 release :)
Reply
Posted
on Mar 7, 2010
(permalink)
I do have the same problem. The same grid used to work properly with the Q3 2009 but it broke in Q1 2010 beta.
My grid is bound to a Java script array:
- In the mark-up: ClientEvents-OnCommand="function(sender, args) { args.set_cancel(true); }"
- In the code-behind:
Grid1.AllowPaging = true;
Grid1.PageSize = PageSize;
Grid1.PagerStyle.Mode = GridPagerMode.NumericPages;
Grid1.PagerStyle.AlwaysVisible = true;
Grid1.DataSource = new object[] { };
Grid1.DataBind();
- In the associated Java script (result is an object I retrieve from a web service call):
masterTableView.set_dataSource(result.Items);
masterTableView.set_virtualItemCount(result.Count);
masterTableView.dataBind();
var currentPageIndex = masterTableView.get_currentPageIndex();
masterTableView.set_currentPageIndex(currentPageIndex, true);
The pager used to appear properly with things done this way. Sadly the same set-up doesn't work in Q1 2010 beta. What I noticed is that the correct number of pages is stored in the master table view but the PagerControl field of the grid object was null.
Thank you!
Reply
Answer
Pavel
Pavel
Posted
on Mar 9, 2010
(permalink)
Hello guys,
Can you try setting the
AlwaysVisible property for the MasterTable instead for the Grid itself. Try it out and let me know if that helps.
Greetings,
Pavel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.
Reply
Posted
on Mar 9, 2010
(permalink)
It worked for me. Thank you! :)
Reply
Ricardo Pinto
Posted
on Mar 10, 2010
(permalink)
Hello!
That was it!
Thanks again for the usual first-class support...
Off I go play with Q1 2010! :)
Best regards,
Ricardo.
Reply