
| <h4 class="CS">Our Skin</h4> |
| <telerik:RadFormDecorator ID="fdOurs" runat="server" DecoratedControls="All" EnableEmbeddedSkins="false"> |
| </telerik:RadFormDecorator> |
| <h4 class="CS">Checkboxes</h4> |
| <asp:CheckBoxList ID="CheckBoxList1" runat="server" Width="700px" ForeColor="#FFF"> |
| <asp:ListItem Text="Unchecked checkbox" /> |
| <asp:ListItem Text="Checked checkbox" Selected="true" /> |
| <asp:ListItem Enabled="false" Text="Unchecked and disabled checkbox" /> |
| <asp:ListItem Enabled="false" Selected="true" Text="Checked and disabled checkbox" /> |
| </asp:CheckBoxList> |
| <h4 class="CS">Radiobuttons</h4> |
| <asp:RadioButtonList ID="RadioButtonList1" runat="server" Width="700px" TextAlign="Right"> |
| <asp:ListItem Text="unselected radiobutton" /> |
| <asp:ListItem Text="selected radiobutton" Selected="true" /> |
| <asp:ListItem Text="unselected and disabled radiobutton" Enabled="false" /> |
| </asp:RadioButtonList> |
| <h4 class="CS">Buttons</h4> |
| <button style="color: #FFF;" type="button"> |
| Enabled Button</button> |
| <input type="button" value="Disabled Button" disabled="disabled" /> |
Hi
how to use paging ability for tamplate item(multi column) RadComboBox
i use from radcombobox that have a multi column ,Paging
but i have a problem with paging
Aspx
| <rad:radcombobox |
| id="RadComboBox1" |
| runat="server" |
| Height="190px" |
| Width="420px" |
| EnableLoadOnDemand="True" |
| AllowCustomText="True" |
| ShowMoreResultsBox="True" |
| ItemRequestTimeout="500" |
| MarkFirstMatch="true" |
| DropDownWidth="423px" |
| HighlightTemplatedItems="true" |
| OnItemDataBound="RadComboBox1_ItemDataBound" |
| OnItemsRequested="RadComboBox1_ItemsRequested" |
| > |
| <HeaderTemplate> |
| <table style="width: 415px; text-align: left"> |
| <tr> |
| <td style="width: 125px;"> |
| Product ID |
| </td> |
| <td style="width: 125px;"> |
| Product Name |
| </td> |
| <td style="width: 125px;"> |
| Unit Price |
| </td> |
| </tr> |
| </table> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <table style="width: 415px; text-align: left"> |
| <tr> |
| <td style="width: 125px;"> |
| <%# DataBinder.Eval(Container.DataItem, "ProductID")%> |
| </td> |
| <td style="width: 125px;"> |
| <%# DataBinder.Eval(Container.DataItem, "ProductName")%> |
| </td> |
| <td style="width: 125px;"> |
| <%# DataBinder.Eval(Container.DataItem, "UnitPrice")%> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </rad:radcombobox> |
| public DataTable GetDataTable(string Query) |
| { |
| SqlDataAdapter DaQuery = new SqlDataAdapter(); |
| DaQuery.SelectCommand = new SqlCommand(Query, ObjCn); |
| DataTable myDataTable = new DataTable(); |
| if (DaQuery.SelectCommand.Connection.State == ConnectionState.Closed) { ObjCn.Open(); } |
| try |
| { |
| DaQuery.Fill(myDataTable); |
| } |
| finally |
| { |
| if (DaQuery.SelectCommand.Connection.State == ConnectionState.Open) { ObjCn.Close(); } |
| } |
| return myDataTable; |
| } |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!Page.IsPostBack) |
| { |
| LoadSupervisors(); |
| } |
| } |
| DataView Dv = new DataView(); |
| DataTable Dt = new DataTable(); |
| private void LoadSupervisors() |
| { |
| if (Cache["Dv"] == null) |
| { |
| DataView dv1 = new DataView(this.GetDataTable("SELECT * from Products")); |
| Cache["Dv"] = dv1; |
| } |
| Dv = (DataView)Cache["Dv"]; |
| } |
| protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) |
| { |
| LoadSupervisors(); |
| RadComboBox1.Items.Clear(); |
| RadComboBox1.DataSource = Dv; |
| RadComboBox1.DataBind(); |
| } |
| protected void RadComboBox1_ItemDataBound(object o, RadComboBoxItemDataBoundEventArgs e) |
| { |
| e.Item.Text = ((DataRowView)e.Item.DataItem)["ProductName"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["ProductID"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["UnitPrice"].ToString(); |
| } |
<
telerik:RadMultiPage ID="rmMain" runat="server" Width="656px" SelectedIndex="1">
<telerik:RadPageView ID="pvSum" runat="server">
<table>
<tr>
<td style="width: 104px; height: 21px;">
<asp:Label ID="Label1" runat="server" CssClass="LabelSubHeadingTable2" Text="Consignee:" Width="100px"></asp:Label></td>
<td style="height: 21px">
<asp:Label ID="lblConsignee" runat="server" CssClass="LabelSubHeadingTable" Width="249px"></asp:Label></td>
<td style="height: 21px;" width="40">
<asp:Label ID="Label2" runat="server" CssClass="LabelSubHeadingTable2" Text="PO#:" Width="80px"></asp:Label></td>
<td style="height: 21px">
<asp:Label ID="lblPo" runat="server" CssClass="LabelSubHeadingTable" Width="249px"></asp:Label></td>
<td style="height: 21px">
</td>
</tr>
</table>
</telerik:RadPageView>
<
telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="rmMain"
SelectedIndex="1" Skin="Hay">
<Tabs>
<telerik:RadTab runat="server" PageViewID="pvSum" Text="Summary" Selected="True">
</telerik:RadTab>
<telerik:RadTab runat="server" PageViewID="pvProd" Text="Order Details">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
and code for pageviews are:
<telerik:RadPageView ID="pvProd" runat="server">
<telerik:RadGrid ID="RadGrid1" AllowSorting="True" runat="server" style="text-align: left" AutoGenerateColumns="False" GridLines="None">
<MasterTableView>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
<Columns>
<telerik:GridBoundColumn DataField="Order" HeaderText="Order #"
UniqueName="gcolumn1" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn AllowSorting="False" DataField="ProdNum" HeaderText="Pro #"
UniqueName="gcolumn2" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn AllowSorting="False" DataField="ShipName" HeaderText="Ship Name"
UniqueName="gcolumn3" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
</ClientSettings>
</telerik:RadGrid></telerik:RadPageView>
</telerik:RadMultiPage><telerik:RadAjaxManager
ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
I am trying out the Scheduler in timeline mode for a project we have taken on.
As my time slicers are fairly small (12mins) I am ending up with more times in the heading than i need.
Is there a way to customise the Scheduler so the time is only displayed once every 30 mins in the header?
Thanks
dave