Prado 中的嵌套组件中未触发事件? (附有无效的事件处理程序)
我有一个 TDataList,里面有一个 XActiveDataGrid。在XActiveDataGrid中,有一个TDropDownList。如果用户更改下拉列表的选定索引,我想触发一个操作,但它不起作用。这是我的 TDropDownList
<com:TTemplateColumn Id="Reminder" HeaderText="Reminder" HeaderStyle.Width="20%" >
<prop:ItemTemplate >
<com:TDropDownList CssClass="combobox4" ID="ReminderDropdown" AutoPostBack="true" OnSelectedIndexChanged="Page.SourceTemplateControl.ChangeReminder"
SelectedValue="<%# $this->parent->DataItem['Reminder'] %>">
<com:TListItem Text="No Reminder" Value="No Reminder" />
<com:TListItem Text="1 week" Value="1 week" />
<com:TListItem Text="2 weeks" Value="2 weeks" />
<com:TListItem Text="1 month" Value="1 month" />
<com:TListItem Text="2 months" Value="2 months" />
</com:TDropDownList>
</prop:ItemTemplate>
</com:TTemplateColumn>
提前致谢,
I have a TDataList that has a XActiveDataGrid inside it. In XActiveDataGrid, there is a TDropDownList. I want to fire an action if the user change the selectedindex of the dropdownlist but it doesnt work. Thats my TDropDownList
<com:TTemplateColumn Id="Reminder" HeaderText="Reminder" HeaderStyle.Width="20%" >
<prop:ItemTemplate >
<com:TDropDownList CssClass="combobox4" ID="ReminderDropdown" AutoPostBack="true" OnSelectedIndexChanged="Page.SourceTemplateControl.ChangeReminder"
SelectedValue="<%# $this->parent->DataItem['Reminder'] %>">
<com:TListItem Text="No Reminder" Value="No Reminder" />
<com:TListItem Text="1 week" Value="1 week" />
<com:TListItem Text="2 weeks" Value="2 weeks" />
<com:TListItem Text="1 month" Value="1 month" />
<com:TListItem Text="2 months" Value="2 months" />
</com:TDropDownList>
</prop:ItemTemplate>
</com:TTemplateColumn>
Thanks in advance,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想问题是动态创建的控件的事件未注册,可能 这有帮助。
I guess the problem is that the events of the dynamicly created controls arn't registered, may THIS helps.