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

RadioButtonlList lost the dot when its selected a item, in a edittemplate

5 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yetrus
Top achievements
Rank 1
Yetrus asked on 31 Mar 2016, 04:36 PM

I have RadioButtonList with 2 items

<rad:GridTemplateColumn HeaderText="Modalidad" UniqueName="Modalidad">
                       <ItemTemplate>
                           <asp:Label runat="server" ID="lblModalidad" Text='<%# Eval("Modalidad") %>'></asp:Label>
                       </ItemTemplate>
                       <EditItemTemplate>
                           <asp:RadioButtonList runat="server" ID="rblModalidad" RepeatDirection="Horizontal"
                               AutoPostBack="true" OnSelectedIndexChanged="rblModalidad_SelectedIndexChanged1">
                               <asp:ListItem Text="Valor" Value="0"></asp:ListItem>
                               <asp:ListItem Text="Obligatorio" Value="1"></asp:ListItem>
                           </asp:RadioButtonList>
                           <asp:RequiredFieldValidator runat="server" ID="rfvRblModalidad" ControlToValidate="rblModalidad"
                               ErrorMessage="Debe seleccionar una Modalidad." Display="none"></asp:RequiredFieldValidator>
                       </EditItemTemplate>
                   </rad:GridTemplateColumn>

 

The radiobuttonlist with a RequiredFieldValidator in a EditItemTemplate, the Radgrid and the ValidationSummary is in side of a fieldset.

This RadioButtonList has a bit of logic in server side, and the visualization and server code works perfect.

If I use Ajax, the selected item set the "dot" but it disappears the dot, so if I do click a second time, then dot appears correctly

If I don't use Ajax, the dot appears correctly

 

<rad:RadAjaxManager ID="RajaxManager" runat="server" EnableAJAX="true">
       <AjaxSettings>
           <rad:AjaxSetting AjaxControlID="fsGrilla">
               <UpdatedControls>
                   <rad:AjaxUpdatedControl ControlID="fsGrilla" LoadingPanelID="RadAjaxLoadingPanel" />
               </UpdatedControls>
           </rad:AjaxSetting>
       </AjaxSettings>
   </rad:RadAjaxManager>
   <rad:AjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Transparency="25" ZIndex="10">
       <asp:Image ID="Image1" runat="server" ImageUrl="~/images/load.gif" AlternateText="Loading...">
       </asp:Image>
   </rad:AjaxLoadingPanel>

 

Any ideas?

saludos

 

5 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 04 Apr 2016, 05:51 AM
Hello Yetrus,

Could you send us sample screenshots to demonstrate what exactly do you mean by the "dot"? Then, we can prepare a sample RadGrid web site resembling your scenario and send it to you.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Yetrus
Top achievements
Rank 1
answered on 04 Apr 2016, 12:56 PM

thanks for anser !

I got a short video of this 

https://youtu.be/4hcPh9kyIq8

greetings

0
Eyup
Telerik team
answered on 07 Apr 2016, 08:34 AM
Hi Yetrus,

Could you temporarily remove the RadAjaxManager and try wrapping the grid within a RadAjaxPanel instead?

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Yetrus
Top achievements
Rank 1
answered on 07 Apr 2016, 01:38 PM

Thanks for awnser

I've try to use 2 RadAjaxPanel insted RadajaxManager, 1 panel for the radgrid, and 2 for the ValidationSummary. but with this the ValidationSummary does not works.

Even I've try to use EnableAJAX="true" Radgrid property

so, after a lot of testing in diferents ways, finally I change the 1 radiobuttonlist with a few radiobuttons, and manipulating the selected radiobutton in server side, works similar.

grettings, thanks

0
Eyup
Telerik team
answered on 12 Apr 2016, 10:44 AM
Hi Yetrus,

I'm glad that you've found out a viable solution for your specific case. As for the AJAX issue related to ValidationSummary, you can open a formal support ticket and send us a very basic runnable web site sample demonstrating the problematic behavior.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Yetrus
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Yetrus
Top achievements
Rank 1
Share this question
or