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

ColumnEditorID and GridNumericColumnEditor

3 Answers 384 Views
Grid
This is a migrated thread and some comments may be shown as answers.
wnl
Top achievements
Rank 1
wnl asked on 04 Mar 2010, 08:36 AM
Hi,
I'm trying to set ColumnEditorID to GridNumericColumnEditor in radgrid (pop up edit mode).
So:
 <telerik:GridBoundColumn DataField="TRNO_ID" DataType="System.Decimal" HeaderText="ID"
 ColumnEditorID="TRNO_ID_CE">   
</telerik:GridBoundColumn>  


 <telerik:GridNumericColumnEditor ID="TRNO_ID_CE" NumericTextBox-EnabledStyle-HorizontalAlign="Right" 
                                    runat="server" NumericTextBox-Width="75px"
                                    <NumericTextBox ID="NumericTextBox1" runat="server"
                                        <NumberFormat DecimalDigits="2" /> 
                                    </NumericTextBox> 
</telerik:GridNumericColumnEditor> 
But in edit mode this field is displaying like normal textbox.
But when I set:
<telerik:GridTextBoxColumnEditor ID="TRNO_ID_CE" runat="server"
                                    <TextBoxStyle BackColor="#edffc3" BorderColor="#ecbb0d" BorderStyle="Solid" ForeColor="#7fa822" /> 
</telerik:GridTextBoxColumnEditor> 
in edit mode this field has changed background (it's work).
Where is a problem?

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 08 Mar 2010, 02:16 PM
Hello Jaromin,

The observed behavior is caused by the fact that GridNumericColumnEditor  can be attached only to columns of type GridNumericColumn and not GridBoundColumns. Therefore if you want to use it you will need to change the column's type.

Regards,
Rosen
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
Mayur
Top achievements
Rank 1
answered on 10 Oct 2013, 10:19 AM
Hello Sir,
              I have implemented RadGridNumericCOlumnEditor in my project. I am facing an error that when I am assigning the value of TextBox to an object of a class; The value is assigning zero always which leads to insertion of zero value in my database.

Can anybody help me out please.
0
Radoslav
Telerik team
answered on 15 Oct 2013, 06:42 AM
Hello Mayur,

Could you please post your aspx markup with the corresponding code behind code? Thus we will be able to gather more details about your scenario and provide you solution.

Looking forward for your reply.

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
wnl
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Mayur
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or