+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom Widget (Usrecontrol) in Sitefinity Dashboard

Custom Widget (Usrecontrol) in Sitefinity Dashboard

2 posts, 0 answered
  1. Anju
    Anju avatar
    19 posts
    Registered:
    22 Jul 2014
    29 Jun 2015
    Link to this post

    Hi All,

    I am having a dynamic module and i am creating a widget to view the data in the dynamic module on selecting the title from a drop down list. I created a widget and  registered the widget within the toolbox from Settings and dragged and dropped the widget in the dashboard. but unfortunately onselectedindexchange of the dropdown nothing happens. Data is not getting binded to the textbox. Is it possible to have a custom widget(user control ) in sitefinity dashboard?? Why the dropdownlist is not triggering onselected index change. Please help me.

     

    Please find my code : 

    <asp:ScriptManager runat="server" />
    <asp:UpdatePanel runat="server" ChildrenAsTriggers="True" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:DropDownList ID="ddlRegion" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged">
                <asp:ListItem Text="Select Region" Value="0" Selected="True"></asp:ListItem>
            </asp:DropDownList>
            <table>
                <tr>
                    <td>
                        <label>Title</label></td>
                    <td>
                        <textarea id="txtTitle" runat="server"></textarea></td>
                </tr>
                <tr>
                    <td>
                        <label>Programs in State</label></td>
                    <td>
                        <textarea runat="server" id="txtProgramsInState"></textarea></td>
                </tr>
                <tr>
                    <td>
                        <label>State program approval</label></td>
                    <td>
                        <textarea runat="server" id="txtStateProgramApproval"></textarea></td>
                </tr>          
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlRegion"
                EventName="SelectedIndexChanged" />
        </Triggers>
    </asp:UpdatePanel>

  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    02 Jul 2015
    Link to this post
    Hi,

    The widget should work on the dashboard. Please, test the widget on a normal sitefinity page to see if it works there. If it work, test again on the Dashboard and check Chrome Dev tools for any errors. After that check the error logs as well.

    Regards,
    Atanas Valchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered