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

RadNumericTextBox giving problem in RadGrid when enable/disable

2 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Himanshu Kumar
Top achievements
Rank 1
Himanshu Kumar asked on 01 Sep 2009, 12:46 AM

I am using Rad Grid and one of its columns is a template column having RadNumeric Textbox of Currency type in it.
 
By default, RadGrid is disabled unless an external button is clicked to enable it. its working perfectly fine. But when that button enables the grid, all functions of grid works perfect but this RadNumeric Textbox is still disabled. If I use simple Textbox then that works perfectly fine. Moreover after simple postback/callback (like a sort or any other event that calls 
NeedDataSource event) rectify the problem and after that RadTextbox works perfectly fine. I am giving a short peek of grid structure. Please have a look and guide where I am doing wrong.

<telerik:RadGrid ID="uxProposals" Width="97%" AllowPaging="True" runat="server" AutoGenerateColumns="false" OnNeedDataSource="uxProposals_NeedDataSource" AllowSorting="true" Skin="Vista" GridLines="None" OnItemDataBound="uxProposals_ItemDataBound">

 

<MasterTableView Width="100%" AllowMultiColumnSorting="false">

   <Columns>

       <telerik:GridBoundColumn HeaderText="ProposalID" Visible="false"  DataField="ProposalID" />

<telerik:GridTemplateColumn HeaderText="Award<br/>Amount" UniqueName="TemplateColumn" ItemStyle-Width="25%" InitializeTemplatesFirst="false">

       <ItemTemplate>

           <table cellspacing="0" width="100%" style="border-style: none">

               <tr style="border-style: none">

                    <td style="border-style: none">

                        <telerik:RadNumericTextBox ID="uxAwardAmount" runat="server" MaxValue="99999999.99" Type="Currency" Skin="Vista"></telerik:RadNumericTextBox>

                        <asp:TextBox ID="uxAwardAmount_tochkProb" runat="server"></asp:TextBox>

                    </td>

               </tr>

            </table>

        </ItemTemplate>

</telerik:GridTemplateColumn>

    </Columns>

</MasterTableView>

<HeaderContextMenu Skin="Vista">

<CollapseAnimation Duration="200" Type="OutQuint" />

</HeaderContextMenu>

<ExportSettings ExportOnlyData="False" FileName="ReviewerAssignmentStatus" OpenInNewWindow="true" IgnorePaging="True"></ExportSettings>

<PagerStyle Mode="NextPrevAndNumeric" />

<SortingSettings SortedBackColor="Azure" />

<HeaderStyle Font-Bold="True" HorizontalAlign="Center" />

<FilterMenu EnableTheming="True">

<CollapseAnimation Duration="200" Type="OutQuint" />

</FilterMenu>

</telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 02 Sep 2009, 05:17 PM
Hello Himanshu,

I followed your scenario in order to replicate the issue you are facing but to no avail. Please find attached a simple runnable application that demonstrates the desired functionality. Give it a try and let me know if you need additional assistance.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Himanshu Kumar
Top achievements
Rank 1
answered on 03 Sep 2009, 12:13 AM
Soo sorry, was doing a stupid mistake. Well actully my scenerio was not that straight. Gridview was hidden on page load and on a combo box selection have to enable that in disabled mode unless a user clicks button to enable it. First I was missing Gridview Rebind method call while setting visible true and second I had to call the same Rebind method again when I am Toggling its enable/disable state. Sounds confusing why I need to rebind it when I am just enable/disable it. But RadTextbox doesn't listen to me without that.

But thanks for your reply and working on the issue!

Tags
Grid
Asked by
Himanshu Kumar
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Himanshu Kumar
Top achievements
Rank 1
Share this question
or