Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Hi,

I want to get record into radgrid when radcombobox client selected index changed. i want full code for ASMX page. please let me know how to bind the grid whlie radcomobox selected index changed using selected value.

Thanks,
Dhamu.
Richard
Top achievements
Rank 1
 answered on 06 Jan 2012
1 answer
119 views
I made the following Javascript function which successfully makes the DatePicker  readonly (including no select from the calendar) without the grey fuzzy appearance. (I think it might be possible to do this with CSS, not sure, but we are in IE, where that doesn't work.) I don't know if this is the best approach, but it works fine. I think it's a common need, and I couldn't find it documented anywhere, so I'm posting it here in case others can use it. Function also supports making editable again.

function SetDatePickerReadOnly(picker, readOnly) {
    picker.set_enabled(!readOnly);  // disable the overall control if readOnly is true (or the converse)
    var input = picker.get_dateInput();  //retrieves the inner DateInput portion of the DatePicker
    input.enable(); // enable the input box only, leaving the calendar disabled (or the converse)
    input._textBoxElement.readOnly = readOnly;  //the inner reference to the input object; changes appearance to "ReadOnly" style and not editable
    // (or the converse)
}

Usage:
var dobPicker = $find("<%= DateOfBirthDatePicker.ClientID %>");
SetDatePickerReadOnly(dobPicker, true);


Maria Ilieva
Telerik team
 answered on 06 Jan 2012
1 answer
124 views
I have a visual studio 2010 web application project and referencing the 1st Qtr 2010 telerik dll.  I am using 4.0 framework.  I precompile and then deploy to local IIS (7.0).  Then, when I navigate to the site, it takes a long time on the first page visit (over a minute).  I suspect this is related to the telerik controls.  Any suggestions to check to resolve this?

thanks,
Jon

Update: Do I need to reference Telerik.Web.UI from the GAC?  I tried installing it in the GAC, but I still can't find it in the Add Reference... window.
Richard
Top achievements
Rank 1
 answered on 06 Jan 2012
1 answer
149 views
Hello,

I am trying to add a custom button to a RadEditor in Sitecore 6.4.  I have successfully added the button and am now defining the command.  Here is what I have so far (from a previous project):

RadEditorCommandList["InsertBrightcoveVideo"] = function(commandName, editor, tool) {
    var args = editor.GetDialogParameters(commandName);
 
    var html = editor.getSelectionHtml();
    var videoid = scItemID;
    var playerid = scItemID;
    var playlistids = scItemID;
    var wmode = "window";
    var bgcolor = "#ffffff";
    var autostart = "false";
 
    if (html) {
        videoid = getVidQStringVal(html, 'video');
        playerid = getVidQStringVal(html, 'player');
        playlistids = getVidQStringVal(html, 'playlists');
        wmode = getVidQStringVal(html, 'wmode');
        bgcolor = getVidQStringVal(html, 'bgcolor');
        autostart = getVidQStringVal(html, 'autostart');
    }
 
    scEditor = editor;
 
    editor.ShowDialog(
        "/sitecore/shell/default.aspx?xmlcontrol=RichText.InsertVideo&la=" + scLanguage + "&video=" + videoid + "&player=" + playerid + "&playlists=" + playlistids + "&selectedText=" + escape(html) + "&wmode=" + wmode + "&bgcolor=" + bgcolor + "&autostart=" + autostart,
        null, //argument
        600, //width
        500, //height
        scInsertBrightcoveVideo,
        null,
        "Insert Video");
};

I am getting a few JavaScript errors.  This first error is caused by the second line of my command.

Uncaught TypeError: Object [object Object] has no method 'GetDialogParameters'

Looking in the Client-side API Reference, I don't see the GetDialogParameters method listed, so I commented it out.  The error goes away but I receive another.

Uncaught TypeError: Object [object Object] has no method 'ShowDialog'

Strange.  Looking in the API I see that the method does in fact exist.  But if I change the method call from ShowDialog to showDialog the error goes away.  Unfortunately I receive another.

Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Dialog Parameters for the /sitecore/shell/default.aspx?xmlcontrol=RichText.InsertVideo&la=en&video={E114FA72-EC42-43F3-8A1F-99B00541E86A}&player={E114FA72-EC42-43F3-8A1F-99B00541E86A}&playlists={E114FA72-EC42-43F3-8A1F-99B00541E86A}&selectedText=&wmode=window&bgcolor=#ffffff&autostart=false dialog do not exist
Parameter name: dialogName

Any ideas as to what could be going wrong?  I'm a little confused as to why I had to change the method call when the docs say it exists.  Is there something wrong with the editor parameter possibly?

Thanks for any help.
Richard
Top achievements
Rank 1
 answered on 06 Jan 2012
1 answer
39 views

Hi;

   I m facing problem in telerik RadSchedular  a two line title for a calender item does not fit in the color please see attached file
  i want to increase backcolor according to text size of appointments what do i do for that


please suggest
  
Princy
Top achievements
Rank 2
 answered on 06 Jan 2012
4 answers
114 views
hello,

I have difficulter with the dimensionning of a RibbonBarGroup  with 4  RibbonBarToggleButton.

I want the 4 buttons to have the same width. But when i put a width attribute , it does not work well.
Without width attribute, the 4 buttons are visible, but with different width.

But when i put mouse on them, the fourth button go above (see picture).
To fix that, i add a Font-Bold="True" , so the button don't disappear.!

Another problem, is that the RibbonBarGroup  withText="Nbre Breaks" is not displayed completly, the s is not shown.

My question is : 
    How can we fixed the width of the RibbonBarGroup  ?

The best configuration i found :
<telerik:RadRibbonBar ID="ribbon_Creation" runat="server" Skin="Outlook">
       <telerik:RibbonBarTab Text="Demande de cotation - Prix Standard">
           <telerik:RibbonBarGroup Text="Demande" Value="Etape"  >
               <Items>
                   <telerik:RibbonBarToggleButton Text=" Démarrer " Value="e1" Toggled="true" 
                       Size="Large"  BorderColor="Silver" BorderStyle="Outset" BorderWidth="1px"
                       ToolTip="Saisir l'entête de la demande" ImageUrl="~/Gen_Images/1Entete.png" 
                       ImageUrlLarge="~/Gen_Images/1Entete.png"  Font-Bold="True"  />
                   <telerik:RibbonBarToggleButton Text="Saisir Ligne" Value="e2" Size="Large"
                       BorderColor="Silver" BorderStyle="Outset" BorderWidth="1px"   ToolTip="Saisir les lignes"
                       ImageUrlLarge="~/Gen_Images/2Lignes.png" Font-Bold="True"  />
                   <telerik:RibbonBarToggleButton Text="  Analyser  " Value="e3" Size="Large"
                        BorderColor="Silver" BorderStyle="Outset" BorderWidth="1px" DisabledImageUrl="~/Gen_Images/3analyse_disable.png"
                       DisabledImageUrlLarge="~/Gen_Images/3analyse_disable.png" ToolTip="Analyser les lignes"
                       ImageUrlLarge="~/Gen_Images/3analyse.png"  Font-Bold="True"  />
                   <telerik:RibbonBarToggleButton Text="  Envoyer  " Value="e4"  
                       Size="Large" BorderColor="Silver" BorderStyle="Outset" BorderWidth="1px" ToolTip="Lancer la demande de cotation"
                       DisabledImageUrl="~/Gen_Images/4lancer_disable.png" DisabledImageUrlLarge="~/Gen_Images/4lancer_disable.png"
                       ImageUrlLarge="~/Gen_Images/4lancer.png"  Font-Bold="True"  />
                        
               </Items>
           </telerik:RibbonBarGroup>
           <telerik:RibbonBarGroup Text="Nbre Breaks" Value="Break">
               <Items>
                   <telerik:RibbonBarToggleButton Size="Small" Value="b1" ToolTip="Nombre de break=1"
                       ImageUrl="~/Gen_Images/numero_1.png" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b4" ToolTip="Nombre de break=4"
                       ImageUrl="~/Gen_Images/numero_4.png" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b7" ToolTip="Nombre de break=7"
                       ImageUrl="~/Gen_Images/numero_7.png" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b2" ToolTip="Nombre de break=2"
                       ImageUrl="~/Gen_Images/numero_2.png" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b5" ToolTip="Nombre de break=5"
                       ImageUrl="~/Gen_Images/numero_5.png" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b8" ToolTip="Nombre de break=8"
                       ImageUrl="~/Gen_Images/numero_8.png" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b3" ToolTip="Nombre de break=3"
                       ImageUrl="~/Gen_Images/numero_3.png" Toggled="True" />
                   <telerik:RibbonBarToggleButton Size="Small" Value="b6" ToolTip="Nombre de break=6"
                       ImageUrl="~/Gen_Images/numero_6.png" />
               </Items>
           </telerik:RibbonBarGroup>
           <telerik:RibbonBarGroup Text="Lignes" Value="Ligne">
               <Items>
                   <telerik:RibbonBarButton Text="1" Value="a1" ImageUrlLarge="~/Gen_Images/add_lignes.png"
                       ToolTip="Ajouter une ligne" ImageUrl="~/Gen_Images/add_lignes.png" Size="Medium" />
                   <telerik:RibbonBarButton Text="5" Value="a5" ToolTip="Ajouter 5 lignes" ImageUrl="~/Gen_Images/add_lignes.png"
                       Size="Medium" />
                   <telerik:RibbonBarButton Text="10" Value="a10" ToolTip="Ajouter 10 lignes" ImageUrl="~/Gen_Images/add_lignes.png"
                       Size="Medium" />
                   <telerik:RibbonBarButton Text="20" Value="a20" ToolTip="Ajouter 20 lignes" ImageUrl="~/Gen_Images/add_lignes.png"
                       Size="Medium" />
                   <telerik:RibbonBarButton Text="50" Value="a50" ToolTip="Ajouter 50 lignes" ImageUrl="~/Gen_Images/add_lignes.png"
                       Size="Medium" />
                   <telerik:RibbonBarButton Size="Medium" Text=" " Value="s1" ToolTip="Supprimer les lignes vides"
                       ImageUrl="~/Gen_Images/del_lignes.png" />
               </Items>
           </telerik:RibbonBarGroup>
           <telerik:RibbonBarGroup Text="Colonnes" Value="Colonne">
               <Items>
                   <telerik:RibbonBarToggleButton Text="Description" Value="c1" ImageUrlLarge="~/Gen_Images/add_colonne.png"
                       ToolTip="Ajouter la description de l'article" ImageUrl="~/Gen_Images/add_colonne.png"
                       Size="Medium" />
                   <telerik:RibbonBarToggleButton Text="Devise" Value="c2" ImageUrlLarge="~/Gen_Images/add_colonne.png"
                       ToolTip="Ajouter la devise de cotation" ImageUrl="~/Gen_Images/add_colonne.png"
                       Size="Medium" />
                   <telerik:RibbonBarToggleButton Text="Norme" Value="c3" ImageUrlLarge="~/Gen_Images/add_colonne.png"
                       ToolTip="Ajouter Article Norme (ou client)" ImageUrl="~/Gen_Images/add_colonne.png"
                       Size="Medium" />
               </Items>
           </telerik:RibbonBarGroup>
           <telerik:RibbonBarGroup Text="Outils" Value="Autre">
               <Items>
                   <telerik:RibbonBarTemplateItem>
                       <asp:HyperLink runat="server" NavigateUrl="~/Consultation/Print_Cotation_CSR.aspx?IdDoc="
                           Target="_blank" ID="Report_Offre" Text="Imprimer" ImageUrl="~/Gen_Images/Print.png"
                           ToolTip="Affichage d'une page pour permettre l'impression."
                       </asp:HyperLink>
                       <asp:Label ID="Label1" runat="server" Text=" Print<br>"></asp:Label>
                       <asp:HyperLink runat="server" NavigateUrl="~/Consultation/Creation_CC.aspx.aspx?IdDoc="
                           Target="_blank" ID="SaisieColler" Text="Coller" ImageUrl="~/Gen_Images/ico_modifier_16.png"
                           ToolTip="Saisie par copier coller"
                       </asp:HyperLink>
                       <asp:Label ID="Label2" runat="server" Text=" Coller"></asp:Label>
                   </telerik:RibbonBarTemplateItem>
               </Items>
           </telerik:RibbonBarGroup>
           <telerik:RibbonBarGroup Text="Langue" Value="Langue">
               <Items>
                   <telerik:RibbonBarToggleButton Text="Français" Value="FR" ToolTip="Français" ImageUrl="~/Gen_Images/fr.png"
                       Size="Medium" />
                   <telerik:RibbonBarToggleButton Text="English" Value="EN" ToolTip="English" ImageUrl="~/Gen_Images/usa.png"
                       Size="Medium" />
               </Items>
           </telerik:RibbonBarGroup>
       </telerik:RibbonBarTab>
   </telerik:RadRibbonBar>
Kate
Telerik team
 answered on 06 Jan 2012
1 answer
85 views
I have a control that has some padding in it. This padding it pushing the loading panel so that it is not flush over the control. Is there a way to set a negative offset for the x and y position of the loading panel? Or perhaps there is a CSS workaround for a scenario like this?

Any help would be great!

Duncan
Richard
Top achievements
Rank 1
 answered on 06 Jan 2012
10 answers
585 views
Hi

I am currently upgrading our Telerik controls from Telerik.WebControls to the latest version of the Telerik.Web.UI controls.

I have replaced all of the old references and matched these to the new dll reference in the pages. Updated all methods/properties/declarations that have changed.

However, i am repeatedly getting this error on the page which is setup with an aspx page with many ascx controls registered to that aspx page:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


I have read your forums regarding place all script out of the head tag and inside the body, replace all <%= with <%#, and wrap any script in a <RadCodeBlock> however none of this is working.

I am needing urgent help on this error!

Regards,
Jonathan
Veli
Telerik team
 answered on 06 Jan 2012
1 answer
164 views
Hi All,
I have 2 comboboxes on page both i have bind load on demand, both are working well but i want to get selected value of first combobox on second combobox OnItemsRequested Event but when second combobox event OnItemsRequested fires the selected value of first combobox is null my code is follws
<telerik:RadComboBox ID="rcbCategory" runat="server" EmptyMessage="Select Category"
                            OnItemsRequested="rcbCategory_OnItemsRequested" EnableLoadOnDemand="true" EnableViewState="true">
                        </telerik:RadComboBox>
 
<telerik:RadComboBox ID="rcbSubCategory" runat="server" OnItemsRequested="rcbSubCategory_OnItemsRequested"
                            EnableLoadOnDemand="true" EmptyMessage="Select Sub-Category">
                        </telerik:RadComboBox>
 
 
C#
protected void rcbCategory_OnItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            rcbCategory.DataSource = Category.GetAll();
            rcbCategory.DataValueField = "ID";
            rcbCategory.DataTextField = "CategoryName";
            rcbCategory.DataBind();
        }
 
        protected void rcbSubCategory_OnItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            rcbSubCategory.DataSource = SubCategory.GetAll(rcbCategory.SelectedValue);
            rcbSubCategory.DataValueField = "ID";
            rcbSubCategory.DataTextField = "CategoryName";
            rcbSubCategory.DataBind();
        }
Ivana
Telerik team
 answered on 06 Jan 2012
11 answers
382 views
Hi,
I have used Rad ComboBox is my web page. its dropdown is showing correctly in Firefox, but not correctly in Google Chrome. In the source, the Rad Combobox is located under a <div> (I didn't use radsplitter in the web page). I didn't found the solution in the telerik forum, although, there must be many different posts on this topic here in the forums. 
I attached a file the this post.

Thanks,
Mounir

Ivana
Telerik team
 answered on 06 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?