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

RadGrid + Popup edit mode + RadNumericTextBox compatibility issue?

3 Answers 97 Views
Input
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 29 Jan 2009, 05:23 PM
I am using a RadGrid with Edit Mode = Popup and a user control edit form.  The edit form contains a RadNumericTextBox.  On postback, the value of the RadNumericTextBox is empty.  Why??  If I replace it with a normal <asp:TextBox> then everything works fine, but the RadNumericTextBox doesn't seem to realize that I entered anything in it.  Text and Value properties are both empty.  Is this a known issue and if so, what's the workaround?

3 Answers, 1 is accepted

Sort by
0
Kelly
Top achievements
Rank 1
answered on 29 Jan 2009, 05:47 PM
Something I just noticed in case it helps you troubleshoot.  When I type in the RadNumericTextBox in the popup, there's a javascript error: _2.NumberFormat is undefined

I'm using the exact same RadNumericTextBox declaration that works for me everywhere else in my site:

 

<telerik:RadNumericTextBox ID="radQty" runat="server" Width="80px" Skin="MillenniumAdmin"

 

EnableEmbeddedSkins="false" DbValue='<%# Bind("Qty") %>' EnableViewState="true"

 

 

 

Type="Number">

 

 

 

<NumberFormat DecimalDigits="0" />

 

 

 

</telerik:RadNumericTextBox>

 

 

 

 

 


The javascript error happens on this line:
if(!_2.NumberFormat.AllowRounding){
0
Yavor
Telerik team
answered on 03 Feb 2009, 07:04 AM
Hello Kelly,

Can you please post the complete declaration of the Popup Edit form, so that I can test the setup locally, and replicate the issue?

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Aleks A
Top achievements
Rank 1
answered on 16 Nov 2009, 02:08 PM
I had a similar problem and i found at that radnumeric uses diferent property for binding then radtextbox. So insted of value use:
DbValue='<%# DataBinder.Eval( Container, "DataItem.FontSize" ) %>'
Tags
Input
Asked by
Kelly
Top achievements
Rank 1
Answers by
Kelly
Top achievements
Rank 1
Yavor
Telerik team
Aleks A
Top achievements
Rank 1
Share this question
or