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

Radgrid PageSizeChanged problem

3 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 31 Mar 2010, 01:34 PM
hi,

this is shanker,I am doing one project .I am using hierarchy rad grid in my project my problem is When ever am change page size Am getting this error in itemcommand event  "Object reference not set to an instance of an object".How to find this error please give any solutions.

this is my code

protected void studentinformationGrid_ItemCommand(object source, GridCommandEventArgs e)
        {
           
                if (e.Item.OwnerTableView.Name == "student")
                {

                    if (e.CommandName == "InitInsert")
                    {
                        GetdataStudentinfomation();
                    }
                }
            
        }

 protected void studentinformationGrid_PageSizeChanged(object source, GridPageSizeChangedEventArgs e)
        {
           
                GetdataStudentinfomation();
            
        }

if (e.Item.OwnerTableView.Name == "student") this condition is required here .

how to solve this solution please give me please it's very argent am stooped my project this issues 

Thanks and regards
shanker.B

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 31 Mar 2010, 02:00 PM
Hello Shanker,

Please, examine the following online example, which is working as expected and let me know what is the difference in your case:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/twotablesatlevel/defaultcs.aspx

Kind regards,
Pavlina
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.
0
shanker bangari
Top achievements
Rank 1
answered on 31 Mar 2010, 02:08 PM
Hi

thanks for response
But am write manual code am not using data source control 

thanks and regards
shanker.B 
0
Pavlina
Telerik team
answered on 01 Apr 2010, 09:53 AM
Hello Shanker,

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

Kind regards,
Pavlina
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.
Tags
Grid
Asked by
shanker bangari
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
shanker bangari
Top achievements
Rank 1
Share this question
or