Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
149 views

I have a ASP.NET webform project and want to add bootstrap. But I meet a problem for the RadTabStrip's RadTab with col-xs-6(bootstrap). The RadTabStrip's RadTabs are dynamically created by code. I also set the "col-xs-6 btn btn-primary" to RadTab's attriibute of "class".  I wish I can see two columns RadTab per row in the size of xs(col-xs-6). But I still failed in the RadTab's color and arrange. Does somebody know how to solve this problem?

 

<telerik:RadTabStrip RenderMode="Lightweight" runat="server" ID="RadTabStripMenu" MultiPageID="RadMultiPageMenu" SelectedIndex="0" OnTabClick="RadTabStripMenu_TabClick">

 

for (int index = 0; index < dt.Rows.Count; index++)
{
    string intOrderNo = dt.Rows[index]["intOrderNo"].ToString().Trim();
    string chMenuItem = dt.Rows[index]["chMenuItem"].ToString().Trim();
    string chDescritp = dt.Rows[index]["chMenuName"].ToString().Trim();
 
    short tabIndex = Convert.ToInt16(chMenuItem.Substring(2, 3));
 
    RadTab radTabItem = new RadTab();
    radTabItem.Text = chDescritp;
    radTabItem.Value = tabIndex.ToString();
    radTabItem.PageViewID = "RadPageViewMenu" + tabIndex.ToString();
    radTabItem.Font.Size = new FontUnit(FontSize.Large);
    radTabItem.CssClass = "TabItem";
    radTabItem.Attributes.Add("class", "col-xs-6 btn btn-primary");
 
    RadTabStripMenu.Tabs.Add(radTabItem);
    RadTabStripMenu.DataBind();//add 20170504
}

 

章民
Top achievements
Rank 1
 asked on 17 Jul 2017
3 answers
118 views
The vertical titles appear to be a fixed height after the upgrade to the latest version of the controls.  This behavior is on IE. FF. and chrome.  See attached images of before and after.
Vessy
Telerik team
 answered on 17 Jul 2017
0 answers
164 views

I need help making skins work. I want to use the skin black on radbuttons and radgrid. Every time I set skin to black I get a run time error."Telerik.Web.UI.RadWindow with ID='confirmWindow' was unable to find embedded skin with name 'Black'. Please, make sure that you spelled teh skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false"

 

I have added the reference to the bin folder. I have tried a lot of different things to make this work and still not accomplishing it. Please help.

 

Jacob
Top achievements
Rank 1
 asked on 17 Jul 2017
13 answers
499 views

I am binding a radgrid to a dataset using NeedDataSource with AutoGenerateColumns set to true. I am using the following code to get Multi-Column Headers. On first load the code executes fine, but on post back it gives an error(pasted below).


The error is happening in RadGrid_ColumnCreated. When I try to access column, it is null.

In Page Load:
if (!IsPostBack)
               {
                   GridColumnGroup columnGroup = new GridColumnGroup();
                   columnGroup.HeaderText = "Parent Header";
                   columnGroup.Name = "ParentHeader";
                   RadGridControl.MasterTableView.ColumnGroups.Add(columnGroup);
               }

  
In RadGrid_ColumnCreated:  
GridBoundColumn column = e.Column as GridBoundColumn;
      string columnName = column.HeaderText;    //--------------> Error happens here on postback.
 
   if (columnName.Contains("Name"))
              {
                  GridBoundColumn boundColumn = e.Column as GridBoundColumn;
                  boundColumn.ColumnGroupName = "ParentHeader";
               }

Error:
Invalid column name: 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Exception: Invalid column name: 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 

[Exception: Invalid column name: ]
   Telerik.Web.UI.GridTableView.CreateMultiColumnHeaders(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead) +359
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1183
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +640
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +182
   System.Web.UI.Control.EnsureChildControls() +146
   Telerik.Web.UI.GridTableViewBase.get_Controls() +20
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +34
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByID(ArrayList childState) +180
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +379
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
   System.Web.UI.Page.LoadAllState() +564
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1864
Asim
Top achievements
Rank 1
 answered on 15 Jul 2017
0 answers
95 views
Is the Update Grid Command just the new version of the UpdateEdited Command?  I just noticed that updating one of our grids was sending "Update" as the command, instead of "UpdateEdited"...  I just saw "Update" mentioned in the current documentation, so I thought I should ask here.
Korn1699
Top achievements
Rank 1
 asked on 14 Jul 2017
1 answer
355 views
I would like to have a single textbox outside the grid, and if the user types for example "ABC" all rows that on a column they have a value ABC would be displayed.
Peter Milchev
Telerik team
 answered on 14 Jul 2017
1 answer
558 views

I have a RadGrid displaying data from a SQL DB in which the datetime is UTC.

I would like for the RadGrid to automatically change this datetime so it matches the client's timezone.

How can that be achieved?

Peter Milchev
Telerik team
 answered on 14 Jul 2017
5 answers
127 views
Hello,
One of the outputs for our RadEditor generated content is html reports. We need the ability to convert Symbols to html markup. Please see the example below for copyright symbol. Is there a conversion chart for RadEditor supported symbols and their html markup anywhere?

® = &reg;

 

Pieranna
Top achievements
Rank 1
 answered on 14 Jul 2017
0 answers
102 views
I want to have a page with about a dozen different HtmlCharts on it, and I want them to all load their data in from a WebAPI controller.

I wanted to do this simply because if I have 12 different charts/graphs, I don't want end-users to have to sit and wait for the PageLoad event to gather and parse through tons of data. I'm hoping to just define all the charts on my webform and then tell jquery/javascript to grab the data and bind them asynchronously, letting them "appear" as they complete-- knowing that some charts will render much slower than others. I want people to be able to see each chart as they finish rendering rather than waiting for the whole lot to finish. I also don't want to just do them "1 by 1" synchronously.

Is this possible or am I going down the wrong path? I didn't see any examples, only something about using WCF which I'm not super familiar with.
Alex
Top achievements
Rank 1
 asked on 13 Jul 2017
1 answer
102 views

Hello,

I am working with a RadSearchBox and I would be interested in displaying a list with suggestions triggered from server side, just like when user types in RadSearchBox, but triggered from server instead. The idea is user search triggers a process that  populates my database and when process is done, I would like to display the list of suggestions that would match the original search with actual data. Is there any way?


Thank you in advance.

Peter Milchev
Telerik team
 answered on 13 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?