Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
298 views

Using the Telerik skin throughout our site but using the Black skin for our Tabstrips.  Have the requirement to change the color of non-selected tabs.  Is it possible to still utilize the skin but change just this one element?  In the image attached, need to lighten the background color of the "Dates" tab.

 

 

Ryan
Top achievements
Rank 1
 answered on 13 Aug 2015
3 answers
118 views

I am running an older version of the controls and have an issue where our internal intranet servers default IE behavior to run in Compatibility mode.

Telerik Version: 2012.3.1308.40 

This is breaking the alignment of my grids headers. The left most header has a empty column name. The rest of the columns headers are populated. 

 In the Screen shot you'll see how the "Plan" column header text is pushed to the left overlapping the top of my row headers. If I go into tools -> Compatibility View Settings and uncheck the option to run the browser in compatibility mode for all intranet sites the columns render just fine.

 

Any ideas on what this might be?

 

 

 

 

 

Pavlina
Telerik team
 answered on 13 Aug 2015
2 answers
342 views

Hi

I have been searching all over for a solution to this problem and have not found a thing. I have a horizontal RadMenu that I am manipulating via the Telerik Client Side API. The RadMenu is created server side. This menu is dynamic so it can have however many items the user defines it to have.

 What I would like to do is, take X Rad Menu Items after the 6th item and add them under a parent RadMenu Item using the Telerik Client Side API. It is very easy to add an item to the menu, but I have not found a solution to add a child item to a parent item. Here is my code.

<script> 

function AddMenuItems() {

            var menu = $find("<%= testMenu.ClientID %>")
            menu.trackChanges();

            var parentItem = new Telerik.Web.UI.RadMenuItem();

            parentItem.set_text("More...");
            menu.get_items().add(parentItem);

            var childItem = new Telerik.Web.UI.RadMenuItem();
            childItem.set_text("child");
    menu.get_items().insert((menu.get_allItems().length), childItem);
            menu.commitChanges();
        }

    </script>
    
    <AxnMenus:AxnMenu ID="testMenu" runat="server" OnClientLoad="AddMenuItems">
    <Items>
        <AxnMenus:AxnMenuItem Text="item 1" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 2" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 3" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 4" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 5" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 6" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 7" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 8" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 9" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 10" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 11" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 12" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 13" runat="server"/>
    </Items>
    </AxnMenus:AxnMenu>
    

</asp:content>

Joe
Top achievements
Rank 1
 answered on 13 Aug 2015
1 answer
218 views

Hi

 I have been using the Client Side API and also looking all over the internets for a solution to this problem and have not seen a thing.

 I have a RadMenu that is created dynamically server side. This menu can have as many menu items as the user defines. I would like to add a child menu item to a parent menu item via Telerik's Client Side API. 

The Add and Insert functions both seem to add the item to the menu as a parent instead of adding the child item inside of the parent menu item. Is there a way I can add the child item to the parent item, so that it displays within the parent items drop down? Ultimately, I would like to create a multilevel drop down.

 Here is some test code I have written, to see if this is possible.Thanks!

<script> 

    function AddMenuItems() {
            var menu = $find("<%= testMenu.ClientID %>")
            menu.trackChanges();

            var parentItem = new Telerik.Web.UI.RadMenuItem();

            parentItem.set_text("More...");
            menu.get_items().add(parentItem);

            var childItem = new Telerik.Web.UI.RadMenuItem();
            childItem.set_text("child");
            menu.get_items().insert((menu.get_allItems().length), childItem); <== Adds the item after the parent item instead of inside. 
            menu.commitChanges();
        }

    </script>
    
    <AxnMenus:AxnMenu ID="testMenu" runat="server" OnClientLoad="AddMenuItems">
    <Items>
        <AxnMenus:AxnMenuItem Text="item 1" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 2" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 3" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 4" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 5" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 6" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 7" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 8" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 9" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 10" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 11" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 12" runat="server"/>
        <AxnMenus:AxnMenuItem Text="item 13" runat="server"/>
    </Items>
    </AxnMenus:AxnMenu>
    

</asp:content>

Ivan Danchev
Telerik team
 answered on 13 Aug 2015
1 answer
190 views

Hello.

I'm currently experiencing issues with the Schedulers PDF-export function. It seems that i can not set the ShowHourColumn to invisible properly, making it render the hour column in the pdf export. I do not wish for it to do this. Also, the export creates some sort of mashed together rows at the top of every page (starting at page 2 and onwards). I'm attaching an image to better show the issues that I'm experiencing. 

 

#1 is the mashed-rows, they contain actual data that needs to be display.

 

#2 is the hour column, i want to hide it in the export.

 Here's the code for exporting it.

rdSchedular.ExportSettings.Pdf.PaperSize = SchedulerPaperSize.A4;
 
rdSchedular.ExportSettings.Pdf.PaperOrientation = SchedulerPaperOrientation.Portrait;
rdSchedular.ExportSettings.Pdf.PageTopMargin = Unit.Parse("20px");
rdSchedular.ExportSettings.Pdf.PageBottomMargin = Unit.Parse("20px");
rdSchedular.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("20px");
rdSchedular.ExportSettings.Pdf.PageRightMargin = Unit.Parse("20px");
 
rdSchedular.ExportSettings.FileName = "pdfDocument"
rdSchedular.ExportSettings.Pdf.Author = "me"
rdSchedular.ExportSettings.Pdf.Creator = "me"
rdSchedular.ExportSettings.Pdf.Title = "pdfDocument"
rdSchedular.ExportSettings.OpenInNewWindow = true;
 
rdSchedular.ExportSettings.Pdf.StyleSheets = new[] { ResolveClientUrl("~/Styles/TelSchedular.css") };
 
rdSchedular.ExportSettings.Pdf.AllowPaging = true;
rdSchedular.AgendaView.TimeColumnWidth = 1;
 
BindCalendar();
 
if (rdSchedular.SelectedView == SchedulerViewType.AgendaView)
{
    var contr = rdSchedular.ShowHoursColumn = false;
    rdSchedular.RowHeight = 200;
 
}
 
rdSchedular.ExportToPdf();

Ivan Danchev
Telerik team
 answered on 13 Aug 2015
3 answers
331 views

Hi

I'm trying to use jquery to update a RadCombobox and set its selected index by using RadComboboxItem.Select().

The updating works fine, but when I use RadComboboxItem.Select() where RadComboboxItem.get_index()=0, RadCombobox.get_selectedIndex() returns the old index.

If RadCombobox.get_index()>0 it works fine.

 

 function SetSelection(radCombo, selectedValue) {
radCombo.trackChanges();
radCombo.clearSelection();
var item = radCombo.findItemByValue(selectedValue);
if (item != null) {
item.select();
alert("id=" + radCombo.get_id() + " item.index=" + item.get_index());
radCombo.set_text(item.get_text());
radCombo.set_value(item.get_value());
}
radCombo.updateClientState();
radCombo.commitChanges();
alert("id="+radCombo.get_id()+" selectedValue="+selectedValue+" index=" + radCombo.get_selectedIndex());
}

 

Eyup
Telerik team
 answered on 13 Aug 2015
9 answers
234 views

Hi,

I have a AutoCompleteBox on my page and a rad button. when I look up for a value and click the update button, a bunch of grids get populated. Simple.

The issue I have is when I copy paste the a value (instead of typing and looking it up in the drop down) and then click on the update Button, upon postback AutoCompleteBox text is empty and nothing happens. Another scenario is if I look up for an item A and later copy paste item B, upon clicking the button, value in the AutoCompleteBox goes back to the item A. Basically when I paste a value in the box instead of typing and looking it up its failing.

Hope I made sense. Can any one help me with this? Thanks a lot.

Regards,

srms

Ivan Danchev
Telerik team
 answered on 13 Aug 2015
6 answers
384 views
var imEditor = null;
           function GetEditor() {
               if (!imEditor)
                   imEditor = $find("<%=imgEditor.ClientID %>");
               return imEditor;
           }
 
           function Zoom() {
               var $ = $telerik.$;
               GetEditor().zoomImage(50);

           
}

I use above code block to zoom the image during page load. In which stage I should fire the script? I tried it in page prerender and imageeditor prerender but both are not working. the issue is imgEditor can not be found. 
Vessy
Telerik team
 answered on 13 Aug 2015
5 answers
591 views

Hi, I'm creating docks dynamically in codebehind (c#) and i'm trying to change colors of each dock.

I am able to change Titlebar's background color but seems like i can't change the forecolor.

I think it's because bootstraps css is overwriting it.

Any idea how i can do this in codebehind?

here is part of the code i have:

dock.TitlebarContainer.BackColor = Color.Black;  //works fine

dock.TitlebarContainer.ForeColor = Color.White;  //DOES NOT WORK, inspecting the element, i can see that it is actually set but is getting overwritten by bootstrap

dock.ContentContainer.BackColor = Color.Back;  //works fine

dock.ContentContainer.ForeColor = Color.White;  //works fine

 

I also tried the following:

dock.TitlebarContainer.Style["color"] = "White !important";

Danail Vasilev
Telerik team
 answered on 13 Aug 2015
3 answers
1.1K+ views

Hi !

 

I want set a text of a label in the "OnInit" methode of the .cs page. Is it possible ?

 

...
<telerik:RadComboBox runat="server" ID="RadComboBoxPerimetre" ​...>
  <HeaderTemplate>
    <table style="width:100%">
     <tr>
      <td>
        <asp:Label runat="server" ID="​test"></asp:Label>
      </td>
    </tr>
  </table>
</HeaderTemplate>​
...

 

thanks

Jérémy
Top achievements
Rank 1
 answered on 13 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?