| <ItemTemplate> |
| <asp:Label ID="uxLabel_SearchItem" runat="server" CssClass='<%# Eval("CssClass") %>' |
| Text='<%# Eval("Text") %>' ToolTip='<%# Eval("ToolTip") %>' |
| onmouseover="swapLiStyle(this, 'hoverLi')" onmouseout="swapLiStyle(this, 'regularLi')"></asp:Label> |
| </ItemTemplate> |
| <Items> |
| <telerik:RadComboBoxItem></telerik:RadComboBoxItem> |
| </Items> |

AllowCustomText
="True"
| public class RadGrid : Telerik.Web.UI.RadGrid |
| { |
| protected override void OnPreRender(EventArgs e) |
| { |
| base.OnPreRender(e); |
| AutoGenerateColumns = false; |
| AllowSorting = true; |
| AllowPaging = true; |
| EnableEmbeddedSkins = false; |
| Skin = "Cymetrix"; |
| } |
| } |

| <telerik:RadGrid ID="grid1" Skin="Default" runat="server" Visible="False" AutoGenerateColumns="False" |
| ShowHeader="False" Width="400px" OnItemDataBound="grid1_ItemDataBound" AllowMultiRowSelection="True" |
| OnRowDrop="grid1_RowDrop" OnDeleteCommand="grid1_DeleteCommand" OnPreRender="grid1_PreRender"> |
| <MasterTableView DataKeyNames="AnswerID"> |
| <DetailTables> |
| <telerik:GridTableView Name="grid2"> |
| <Columns> |
| <telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False" DataField="AnswerLabel" |
| ReadOnly="True" Reorderable="False" Resizable="False" ShowSortIcon="False" UniqueName="colAnswerLabel"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="QuestionID" UniqueName="colQuestionID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="AnswerID" UniqueName="colAnswerID" Visible="False"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False" DataField="AnswerLabel" |
| ReadOnly="True" Reorderable="False" Resizable="False" ShowSortIcon="False" UniqueName="colAnswerLabel"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="QuestionID" UniqueName="colQuestionID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="AnswerID" UniqueName="colAnswerID" Visible="False"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| </MasterTableView> |
| <ClientSettings AllowRowsDragDrop="True"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| +ABC |
| |- 111 |
| |- 333 |
| |- 444 |
| +DEF |
| |- 555 |
| GHI |
| 222 |
Current setup
I have a master page which contains a user control, which has a raddropdown and a listview control.
When the user selects a user in the dropdown, the selected user is placed in the list view (selected users). This then raises an event that an Item has been added to selected users control.
There are properties on the master page which return a list(of x) for the selected users.
The RadScheduler is to display appointments for each of the user selected.
This currently is done by adding the following code
Dim a As List(Of Safe.CRM.DAL.BusinessObjects.Contact_Name)
a = CType(Page.Master, ISession).SelectedConsultants
Dim rt As New Telerik.Web.UI.ResourceType()
rt.DataSource = a
rt.KeyField = "ContactID"
rt.TextField = "ContactName"
rt.Name = "Contacts"
rt.ForeignKeyField = "Contact"
RadScheduler1.ResourceTypes.Clear()
RadScheduler1.ResourceTypes.Add(rt)
RadScheduler1.GroupBy = "Contacts"
This all works fine so far. BUT...
When I add a new user to the list, and reload the control (all ajaxy) type posts. The RadScheduler does not render. If I click on week display and then back to daily the updated users do display.
Is there any way of forcing the re-render/update of the RadScheduler, I’ve removed it from the page and re-added with no luck.
Julian
| With g |
| .AllowFilteringByColumn = True |
| ... |
| ... |
| End With |
| boundColumn = New GridBoundColumn |
| boundColumn.DataField = "Field" |
| boundColumn.HeaderText = fieldNames(4).ToString |
| boundColumn.ShowSortIcon = True |
| boundColumn.Groupable = True |
| boundColumn.AllowFiltering = True |
| g.MasterTableView.Columns.Add(boundColumn) |
We doesn't I see the filter. where is the error?
var
todaysDate = new Date();
var todaysDate2 = [todaysDate.getFullYear(), todaysDate.getMonth(), todaysDate.getDate()];
$find(controlId).get_calendar().selectDate(todaysDate2,
true);
$find(controlId).get_dateInput().set_value(todaysDate2);