I am getting a "The specified value cannot be set on pagesize" error when trying to change the page size with the "NextPrevNumericAndAdvanced" pager while using a custom control edit form.
The line that seems to be causing the error is:
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
In the beginning of the function:
If I Comment this line out ( incuding references to userControl ) setting the page size works.
I am using the newest version 2009.2.906.20
The grid is in a UserControl that I am dynamically adding to the page but I do not have any problems with any other functionality.
Any Ideas on what might be causing this?
Thanks in advance,
Dave
The line that seems to be causing the error is:
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
In the beginning of the function:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) |
{ |
GridEditableItem editedItem = e.Item as GridEditableItem; |
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); |
switch (e.CommandName) |
{ |
case "PerformInsert": |
If I Comment this line out ( incuding references to userControl ) setting the page size works.
I am using the newest version 2009.2.906.20
The grid is in a UserControl that I am dynamically adding to the page but I do not have any problems with any other functionality.
Any Ideas on what might be causing this?
Thanks in advance,
Dave