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

[Solved] Value must not be null for controls and behaviors

3 Answers 179 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Shane Ham
Top achievements
Rank 1
Shane Ham asked on 08 Apr 2009, 02:15 PM
I have a DataList inside an RadAjaxPanel.
The footer of the DataList is used to add new rows. When an existing row is edited, I hide the footer.

The footer has 2 RadDateTimePicker controls. When I click edit on and item and set the footer to not be visible, the following javascript error is thrown: Value must not be null for controls and behaviors.

Its obviously something with the visibility of those controls.

This does not happen using a standard MS UpdatePanel. I could just as easily use the standard UpdatePanel but I really like the RadAjaxLoadingPanel templates and have not been able to use those with MS Update Panel.

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 13 Apr 2009, 08:26 AM
Hello Shane,

When hiding the controls, can you use the display property, rather than setting visible=false. If this suggestion does not help, you can open a formal support ticket, and send us the problematic implementation, for additional review and testing.

Sincerely yours,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Shane Ham
Top achievements
Rank 1
answered on 13 Apr 2009, 01:18 PM
This would cause a bit of extra coding as I am not explicitly setting the visible property of the RadDateTimePicker. In this scenario, I am hiding the visibility of the footer on the datalist. I suppose I could iterate through the footer controls and hide them all but this seems like a hack compared to Datalist.ShowFooter = false.
0
Yavor
Telerik team
answered on 14 Apr 2009, 09:38 AM
Hello Shane,

Another option in this case would be to simply get a reference to the footer item of the control, and apply a css class with display:none to it.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Shane Ham
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Shane Ham
Top achievements
Rank 1
Share this question
or