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

Error: Object reference not set to an instance of an object.

3 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 31 Jan 2009, 04:05 PM
Hi!

In my work all buttons work, except DELETE, always when I press button Delete, it gives me an error "Object reference not set to an instance of an object."
here is my small demo

Can anyone tell me what is wrong with it?

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 02 Feb 2009, 07:43 AM
Hello Roman,

Unfortunately I do not see anything that might raise this error in your code. 
For reference you can see the demo below which demonstrates RadGrid automatic operations(insert/update/delete).
Automatic operations

If you are still having issues I suggest you to send us small runnable project via formal support ticket. Thus we will be able to debug it locally and help you more that issue.

Kind regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Prabu
Top achievements
Rank 1
answered on 02 Feb 2009, 09:42 AM

How To Make controls in RadGrid Inline Edit Mode as Mandatory...

Im using heirarchy radgrid with inline edit mode...
How can i make the textbox in the edit mode as mandatory...

regards,
Prabu
0
Sebastian
Telerik team
answered on 02 Feb 2009, 11:01 AM
Hi Prabu,

You can use regular asp validators or RadInputManager to 'inputify" the grid editors. Review the following online demos which illustrate both approaches in question:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/validation/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx

Regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Roman
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Prabu
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or