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

6 posts, 0 answers
  1. Yetrus
    Yetrus  avatar
    6 posts
    Member since:
    Feb 2010

    Posted 31 Mar Link to this post

    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

     

  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 04 Apr Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yetrus
    Yetrus  avatar
    6 posts
    Member since:
    Feb 2010

    Posted 04 Apr Link to this post

    thanks for anser !

    I got a short video of this 

    https://youtu.be/4hcPh9kyIq8

    greetings

  5. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 07 Apr Link to this post

    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.
  6. Yetrus
    Yetrus  avatar
    6 posts
    Member since:
    Feb 2010

    Posted 07 Apr in reply to Eyup Link to this post

    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

  7. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 12 Apr Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017