Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
When will the splitter became CSSfriendly and use div layout instead of tablelayout?
Svetlina Anati
Telerik team
 answered on 07 Apr 2009
1 answer
172 views
I'm getting the "Selection out of range" in the combobox. I have set values:

<telerik:RadComboBox width="150px" runat="server" ID="ddlProjectType" AppendDataBoundItems="true" OnI SelectedValue='<%# Bind("ProjectType") %>'> 
                        <Items> 
                            <telerik:RadComboBoxItem Text="Select a Value..." Value="" /> 
                            <telerik:RadComboBoxItem Text="Interstate" Value="0" /> 
                            <telerik:RadComboBoxItem Text="Intrastate" Value="1" /> 
                        </Items> 
                    </telerik:RadComboBox> 


I've tried with and without AppendDataBoundItems. I've not tried the clear method because I'm not sure where that would go (which event?). I have a sneaking suspicion this is being caused by the fact that the "ProjectType" property in my business entity is of a type of enum.
My enum:
public enum enProjectType 
    { 
        Interstate = 0, 
        Intrastate 
    } 


My Bound object property:
public enProjectType ProjectType { get; set; } 

If this is the problem, is there a way to cast to an int or something to make this work?

Here is a copy of the full stacktrace:
[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +259
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +10
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +83
   Telerik.Web.UI.RadComboBox.PerformSelect() +34
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.WebControls.FormView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1461
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.FormView.PerformDataBinding(IEnumerable data) +12
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.WebControls.FormView.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.FormView.EnsureDataBound() +166
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Thank in advance!


Michael
Top achievements
Rank 1
 answered on 07 Apr 2009
1 answer
131 views
We would like to use Multicolumn Combo. There are n number of examples available for this but I would like to use Multicolumn Combo with Page Method.

For the optimization purposed I have created a separate aspx page and in that page our web method resides and combo box sits in the main page. Please let me know if Multicolumn combo like http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx
is possible with page method example like this http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx .

If it is possible to do then how to do that.
Veselin Vasilev
Telerik team
 answered on 07 Apr 2009
1 answer
144 views
hi team telerik
when i change menu in to rtl Width child menu is not current and Flow and ExpandDirection
i set that in code behind and clientside
    <telerik:RadMenu ID="RadMenu1" runat="server"  OnClientItemPopulating="itemPopulating"  
            
              Flow="Vertical" style="top: 0px; left: 0px" dir="rtl"> 
              <DefaultGroupSettings Flow="Vertical" Width="200" ExpandDirection="Left"    /> 
            <WebServiceSettings Path="~/RTLSite/UserControlRTL/MenuWebService.asmx" Method="GetMenuCategories" /> 
            <LoadingStatusTemplate> 
                <asp:Image runat="server" ID="LoadingImage" ImageUrl="~/RTLSite/UserControlRTL/Images/loading1.gif" ToolTip="Loading..."  /> 
            </LoadingStatusTemplate> 
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
               
               
        </telerik:RadMenu> 
 
 private void LoadRootNodes() 
    { 
         
 
        SqlConnection connection = new SqlConnection( 
        ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); 
 
        SqlCommand selectCommand = new SqlCommand("Menu_Select_FirstLevel_Site", connection); 
        selectCommand.CommandType = CommandType.StoredProcedure; 
       
        selectCommand.Parameters.AddWithValue("intContentlId", StrContentCodeId); 
 
        SqlDataAdapter adapter = new SqlDataAdapter(selectCommand); 
        DataTable data = new DataTable(); 
        adapter.Fill(data); 
 
        foreach (DataRow row in data.Rows) 
        { 
 
            RadMenuItem menuSiteItem = new RadMenuItem(); 
            menuSiteItem.Text = row["strMenuName"].ToString(); 
            menuSiteItem.Value = row["MenuId"].ToString() + "_" + row["strMenuType"].ToString(); 
            menuSiteItem.ExpandMode = MenuItemExpandMode.WebService; 
 
            //if (row["ChildrenCount"].ToString() == "0") 
            //    node.ExpandedImageUrl = "image"; 
           // menuSiteItem.GroupSettings.ExpandDirection = ExpandDirection.Left; 
            menuSiteItem.Width = 200; 
           // menuSiteItem.GroupSettings.Width = 200; 
            //menuSiteItem.GroupSettings.Flow = ItemFlow.Vertical; 
            RadMenu1.Items.Add(menuSiteItem); 
        }//foreach 
       
    } 
 
 
webservice 
 public RadMenuItemData[] GetMenuCategories(RadMenuItemData item, object context) 
    { 
        IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context; 
 
        DataTable productCategories = GetNodeContent(item.Value.Split('_')[0], contextDictionary["ContentId"].ToString());// System.Text.ASCIIEncoding.ASCII.GetString(System.Convert.FromBase64String(contextDictionary["ContentId"].ToString()))); 
 
        List<RadMenuItemData> result = new List<RadMenuItemData>(); 
 
        foreach (DataRow row in productCategories.Rows) 
        { 
            RadMenuItemData itemData = new RadMenuItemData(); 
            itemData.Text = row["strMenuName"].ToString(); 
            itemData.Value = row["MenuId"].ToString() + "_" + row["strMenuType"].ToString(); 
             
            if (Convert.ToInt32(row["ChildrenCount"]) > 0) 
            { 
 
                itemData.ExpandMode = MenuItemExpandMode.WebService; 
 
            } 
            itemData.PostBack = true; 
            result.Add(itemData); 
        } 
 
        return result.ToArray(); 
    } 
 

please see link picture

http://g.imagehost.org/0021/menuerror.jpg
http://f.imagehost.org/0607/menuerror1.jpg
http://f.imagehost.org/0632/menuerror2.jpg
http://f.imagehost.org/0036/menuerror3.jpg



Kamen Bundev
Telerik team
 answered on 07 Apr 2009
0 answers
69 views
I'm currently working on doing some testing on a site using the Rad Editor controls for forums and new posts and have run into an issue.
I'm experiencing serious display issues in Opera.

Mainly the Rad Editor content extends beyond the bottom border and overlaps the text positioned below it.
I can see the main content is expanding beyond the bottom edge and corners by almost 50 pixels.
Resizing carefully can put the borders back in the right position, but that isn't really a good experience for the user.

I found a fix by adjusting the height for this exact same issue in Safari, but in Opera --- No luck.

Curious what exactly the claimed support for Opera may be and if this is a known issue.
Chris
Top achievements
Rank 1
 asked on 07 Apr 2009
0 answers
44 views
I'm currently working on doing some testing on a site using the Rad Editor controls for forums and new posts and have run into an issue.
I'm experiencing serious display issues in Opera.

Mainly the Rad Editor content extends beyond the bottom border and overlaps the text positioned below it.
I can see the main content is expanding beyond the bottom edge and corners by almost 50 pixels.
Resizing carefully can put the borders back in the right position, but that isn't really a good experience for the user.

I found a fix by adjusting the height for this exact same issue in Safari, but in Opera --- No luck.

Curious what exactly the claimed support for Opera may be and if this is a known issue.
Chris
Top achievements
Rank 1
 asked on 07 Apr 2009
5 answers
180 views
I have a radcombobox with a fixed height and width.
in some cases I need to make the property enabled="false" in prerender.
Combobox is getting disabled but the height and width is increasing.
After this I noticed that if I fire any other events combobox will be in normal height and width.
skin used is "default".
do I need to make any changes in 

.ComboBoxItemDisabled_Default in the script.
I am using IE-7

PLease help me to get the normal height and width of radcombobox.

Thanks
Jojy

Jojy
Top achievements
Rank 1
 answered on 07 Apr 2009
1 answer
77 views
Im using a FormDecorator in an ASP,NET application, and Im having issues with the rendering of fieldset html

In FF all is as expected

in IE7 the left and right hand borders of the fieldset extend beyond the top and bottom border. The more html there is inside the fieldset the further the left/right borders extend too far.

Does anyone have a clue as to why this is happening ?

Thanks

Dean
Georgi Tunev
Telerik team
 answered on 07 Apr 2009
5 answers
212 views
Hi,

Do we have same docking functionality just like we have in visual studio's Solution Explorer and Toolbox docking.
We have this in our windows application forms control but I could not find it in demo of web application controls toolkit!

Regards,
Divyesh Chapaneri
Brad
Top achievements
Rank 2
 answered on 07 Apr 2009
1 answer
162 views
Hi,

I need to change radalert window icon and radalert ok button style and color. How can i do this? if possible, provide some sample code.

thanks in advance.

Fakhrul
Georgi Tunev
Telerik team
 answered on 07 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?