Hello,
I have a problem of doing custom paging in RadGrid that content another RadGrid, I need to have custom paging for the inside RadGrid , can you help me or show me some code that is working, I follow this example http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx
and it works for one RadGrid not with multiples.
Thanks,
Nabeel.
I have a problem of doing custom paging in RadGrid that content another RadGrid, I need to have custom paging for the inside RadGrid , can you help me or show me some code that is working, I follow this example http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx
and it works for one RadGrid not with multiples.
Thanks,
Nabeel.
7 Answers, 1 is accepted
0
Hello Nabeel
I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this post.
I hope it helps.
Kind regards,
Mira
the Telerik team
I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this post.
I hope it helps.
Kind regards,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Nabeel
Top achievements
Rank 1
answered on 19 Oct 2011, 01:38 PM
Hello,
Thank you for the reply with the sample solution, Actually I figure it out by binding the inner grid to ObjectDataSource and this object data source bind it to custom methods I've created and it works good, I have another issue now with RadTabStrip, I have a rad grid and inside it there is a link button which basically when clicking it opens another tab in RadTabStrip, but it is client side clicking, I want once this other tab opened to bind the other rad grid inside it to be bind from the data source, I've tried every possible way you can imagine with no luck, there is a test button inside the other tab when clicking it causing post back and it binds the grid, I want similar scenario to happen when clicking the link button client side.
Thanks,
Nabeel.
Thank you for the reply with the sample solution, Actually I figure it out by binding the inner grid to ObjectDataSource and this object data source bind it to custom methods I've created and it works good, I have another issue now with RadTabStrip, I have a rad grid and inside it there is a link button which basically when clicking it opens another tab in RadTabStrip, but it is client side clicking, I want once this other tab opened to bind the other rad grid inside it to be bind from the data source, I've tried every possible way you can imagine with no luck, there is a test button inside the other tab when clicking it causing post back and it binds the grid, I want similar scenario to happen when clicking the link button client side.
Thanks,
Nabeel.
0
Hello Nabeel,
I am afraid I am unable to fully understand your scenario.
Please let me know what the tabs and the pageviews are, what the code for binding the grid is and how you select the corresponding tab.
I am looking forward to your reply.
All the best,
Mira
the Telerik team
I am afraid I am unable to fully understand your scenario.
Please let me know what the tabs and the pageviews are, what the code for binding the grid is and how you select the corresponding tab.
I am looking forward to your reply.
All the best,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Nabeel
Top achievements
Rank 1
answered on 24 Oct 2011, 01:57 PM
I'm selecting the tab using java script it is called when the user click a link button inside a radGrid in the first tab, once the user click this link it is executing a client side click like this:
<ItemTemplate>
<asp:LinkButton ID="link1" runat="server" %>' OnClientClick="switchTabs();"
></asp:LinkButton>
</ItemTemplate>
this is the switchTabs function:
<script language="javascript" type="text/javascript">
function switchTabs() {
var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
var tab = tabStrip.findTabByText("Manage");
if (!tab) {
alert("There is no tab with text \"" + text + "\"");
return false;
}
tab.set_selected(true);
}
</script>
in the second tab that will be selected there is another RaGrid, I need it to be rebinded from the data source once the user do the client side clicking.
I hope this scenario is clear.
Thanks.
<ItemTemplate>
<asp:LinkButton ID="link1" runat="server" %>' OnClientClick="switchTabs();"
></asp:LinkButton>
</ItemTemplate>
this is the switchTabs function:
<script language="javascript" type="text/javascript">
function switchTabs() {
var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
var tab = tabStrip.findTabByText("Manage");
if (!tab) {
alert("There is no tab with text \"" + text + "\"");
return false;
}
tab.set_selected(true);
}
</script>
in the second tab that will be selected there is another RaGrid, I need it to be rebinded from the data source once the user do the client side clicking.
I hope this scenario is clear.
Thanks.
0
Hello Nabeel,
Please try using the following code and let me know whether it works for you:
I hope it helps.
All the best,
Mira
the Telerik team
Please try using the following code and let me know whether it works for you:
function switchTabs() { var tabStrip = $find("<%= RadTabStrip1.ClientID %>"); var tab = tabStrip.findTabByText("Manage"); if (!tab) { alert("There is no tab with text \"" + text + "\""); return false; } tab.set_selected(true); tab.get_pageView().select(); $find("<%= RadGrid1.ClientID %>").get_masterTableView().rebind();}I hope it helps.
All the best,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Nabeel
Top achievements
Rank 1
answered on 27 Oct 2011, 03:27 PM
No it didn't work please note the Rad Grid is under RadAjaxPanel control.
0
Hello Nabeel,
Please post here the structure of your page and we will provide you a way for finding the grid.
I am looking forward to your reply.
All the best,
Mira
the Telerik team
Please post here the structure of your page and we will provide you a way for finding the grid.
I am looking forward to your reply.
All the best,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now