public void InstantiateIn(Control container) { object[] searchoptions = GetProxy().GetSearchOptionList(); DataSet so = (DataSet)searchoptions[0]; List<SearchOption> searchOpt = new List<SearchOption>(); for (int k = 0; k < so.Tables.Count; k++) for (int j = 0; j < so.Tables[k].Rows.Count; j++) { SearchOption search = new SearchOption(); search.ID = so.Tables[k].Rows[j].ItemArray[0].ToString(); search.name = so.Tables[k].Rows[j].ItemArray[1].ToString(); searchOpt.Add(search); CheckBox box = new CheckBox(); box.Text = search.name; box.ID = search.ID; box.DataBinding += new EventHandler(box_DataBinding); container.Controls.Add(box); }}private void box_DataBinding(object sender, EventArgs e) { CheckBox target = (CheckBox)sender; RadComboBoxItem item = (RadComboBoxItem)target.BindingContainer; string itemText = (string)DataBinder.Eval(item, "Text"); target.Text = itemText; }<asp:TextBox ID="txt_date2" runat="server"></asp:TextBox><telerik:RadInputManager ID="RadInputManager1" runat="server"> <telerik:DateInputSetting BehaviorID="DateInputBehavior3" DateFormat="dd/MM/yyyy HH:mm"> <TargetControls> <telerik:TargetInput ControlID="txt_date2" /> </TargetControls> </telerik:DateInputSetting></telerik:RadInputManager>Hoping someone can direct me down the correct path. Trying to have a Treeview control on a page where users can use the checkbox feature on the fields they would like queried out of the database.
This is what I have: Category (6 categories)
Group Desc (to many to list)
Friendly Column Name (to many to list)
See attached image of the data that I return from SQL.
I would like
Category
Group Desc
Friendly Name (datatextfield = QualifiedName)
When attempting to get it working I get several different errors. Currently the error is
<telerik:radtreeview id="RadTreeView1" runat="server" checkboxes="True" datafieldid="Category" datafieldparentid="GroupDescr" datasourceid="SqlDataSource1" datatextfield="FriendlyName" DataValueField="QualifiedName"></telerik:radtreeview>
It appears that the initial column widths for the grid are not being defaulted consistently when deployed to the ASP.NET Development Server versus IIS. Both IE and FF work correctly when run from the ASP.NET Dev Server, but once I publish the site and run it under IIS, the grid columns are not set to the default width in IE, but in FF they are still fine.
See the attached screen shots for the 4 combinations of IE vs. FF and ASP.NET vs. IIS. It's the "Invoice Details" grid that is the problem in the IE/IIS combination.
This is how I'm setting up the grid in the markup:
| <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server"> |
| <div style="vertical-align: top;height: 100%;"> |
| …snip… |
| <telerik:RadSplitter ID="ContentSplitter" Runat="server" Height="100%" Width="100%" |
| Orientation="Horizontal"> |
| …snip… |
| <telerik:RadPane ID="BodyPane" runat="server" Height="100%" Width="100%" Scrolling="Y" |
| OnClientResized="ClientResized"> |
| <telerik:RadSplitter ID="AppSplitter" Runat="server" Height="100%"> |
| …snip… |
| <telerik:RadPane ID="AppPane" runat="server" MinWidth="40" Scrolling="Y" Width="100%"> |
| …snip… |
| <telerik:RadAjaxPanel ID="HeaderRadAjaxPanel" runat="server"> |
| …snip… |
| <telerik:RadGrid ID="grdDetails" runat="server" |
| AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" |
| AutoGenerateColumns="False" GridLines="Both" ShowFooter="true" |
| Height="400" Width="100%" |
| AllowAutomaticInserts="true" AllowAutomaticUpdates="true" |
| AllowAutomaticDeletes="true" |
| OnItemCreated="grdDetails_ItemCreated" |
| OnNeedDataSource="grdDetails_NeedDataSource" |
| OnItemDataBound="grdDetails_ItemDataBound"> |
| <MasterTableView TableLayout="Fixed" EditMode="InPlace" CommandItemDisplay="Top" /> |
| <PagerStyle AlwaysVisible="true" Mode="NextPrev" /> |
| <ClientSettings> |
| <Scrolling AllowScroll="true" |
| EnableVirtualScrollPaging="true" SaveScrollPosition="true" |
| UseStaticHeaders="true" /> |
| <Resizing AllowColumnResize="true" |
| ClipCellContentOnResize="true" EnableRealTimeResize="true" |
| ResizeGridOnColumnResize="true" /> |
| <ClientEvents OnRowClick="grdDetails_RowClick" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| </telerik:RadAjaxPanel> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| …snip… |
| </div> |
| </asp:Content> |
The columns are then created server-side in the code-behind, during the grid's PreRender event. Every column has an explicit width set.
Does anyone have any ideas/suggestions on what the issue might be? Everything I’ve tried has not forced the grid to behave.
My environment:
- Windows 7
- IIS 6.1
- VS 2008 SP1 (.NET 3.5 SP1), C#
- Telerik Q1 2010 Trial Version (2010.1.415.35)
- IE 8.0.7600.16385
- Firefox 3.6
Thanks in advance for any help.
Drew
ComboBoxEventArgs.get_item()<BR>The RadComboBox is an edittable combo box that is a user can search for a particular record by typing in to it.
Now, if the user searches for an item which is present in the list everything just works fine.
But if the user types in something that is not in the list then the code
ComboBoxEventArgs.get_item()throws an error "TypeError :Object doesnt support this property or method"
I am using the telerik control with the version "2010.3.1401.40"
Regards,
Francis
var masterTable = $find("<%= RadGrid1.ClientID >").get_masterTableView();<br>masterTable.IsItemInserted = true;<br>masterTable.insertItem();