Custom Widget (Usrecontrol) in Sitefinity Dashboard
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>
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