Hi i am doing change of page size of radgrid on click of radpane event PaneCollapsed , but its not changing ? how to do this?
function PaneCollapsed(sender, eventArgs) {
var grid = $find('<%= radgvInbox.ClientID%>');
grid.MasterTableView.PageSize = 20;
var masterTable = $find("<%= radgvInbox.ClientID %>").get_masterTableView();
masterTable.PageSize = 20;
}
i tried the above two ways... how to do this?
function PaneCollapsed(sender, eventArgs) {
var grid = $find('<%= radgvInbox.ClientID%>');
grid.MasterTableView.PageSize = 20;
var masterTable = $find("<%= radgvInbox.ClientID %>").get_masterTableView();
masterTable.PageSize = 20;
}
i tried the above two ways... how to do this?
5 Answers, 1 is accepted
0
Accepted
Shinu
Top achievements
Rank 2
answered on 14 Mar 2011, 06:40 AM
Hello Bhuvan,
You can use the GridTableView property set_pageSize(); sets the page size for the respective GridTableView object.
JavaScript:
Thanks,
Shinu.
You can use the GridTableView property set_pageSize(); sets the page size for the respective GridTableView object.
JavaScript:
function
setPageSize()
{
var
grid = $find(
'<%= grid.ClientID%>'
);
grid.MasterTableView.set_pageSize(20);
}
Thanks,
Shinu.
0
Bhuvan
Top achievements
Rank 1
answered on 15 Mar 2011, 04:41 AM
Hi shinu
Thanks the above one is working ..Yeah i tried to set the page like this
grid.get_element().style.height = 700;
in the same panecollapsed event..but it is also not working..? how to do this?
Thanks the above one is working ..Yeah i tried to set the page like this
grid.get_element().style.height = 700;
in the same panecollapsed event..but it is also not working..? how to do this?
0
Bhuvan
Top achievements
Rank 1
answered on 15 Mar 2011, 04:41 AM
i tried the grid height
grid.get_element().style.height = 700;
but its not working how to do this?
grid.get_element().style.height = 700;
but its not working how to do this?
0
Accepted
Shinu
Top achievements
Rank 2
answered on 15 Mar 2011, 08:47 AM
Hello Bhuvan,
You can try implementing the approach from the following CodeLibrary article.
How to set RadGrid height client-side with Javascript
Thanks,
Shinu.
You can try implementing the approach from the following CodeLibrary article.
How to set RadGrid height client-side with Javascript
Thanks,
Shinu.
0
Bhuvan
Top achievements
Rank 1
answered on 15 Mar 2011, 10:11 AM
This is good one and good example thanks shinu