Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
180 views
Hi,

When using:

var menu = $find("<%= radMenu1.ClientID %>");  
menu.disable(); 

the menu will "gray" out - and thats fine. And I expect that clicking are disabled (it's not)

I can still click the menu(top level), href are active and OnClientItemClicking event ARE NOT fired. 

How do I disable the menu and prevent any clicking?
T. Tsonev
Telerik team
 answered on 29 May 2009
1 answer
110 views
I want to create custom command without creating a custom tool.
I want to create custom command like InsertCleanParagraph which will be executed when user press the Ctrl+Enter.

The rad editor has  NewLineBr="false" ; and  ToolbarMode="PageTop"

So when I press Ctrl+Enter in RAD editor it should insert
<p style="clear:both"></p>

When I press Shift+Enter it should insert
<br/>   Which is done by default command InsertParagraph

But I don't want any tool button to appear for this new command.

Please tell me how can I do this.
Rumen
Telerik team
 answered on 29 May 2009
1 answer
587 views
I am having a difficulty understand how to the following: I have my site open in a normal IE 8 window, which can be resized (it is NOT maximized). I am opening a series of radWindow's inside of this browser tab. What I want to be able to do is have the radWindow open up with a 80% size of the original window, with it centered in the current browser tab content. Right now, it is not the correct size, and is sometimes opening off the visible page (scrolling being necessary) if I have tested my page using smaller resolution settings, like 1024x768 or 800x600. My native resolution is 1900x1200.

Could you point me to some source code that would show me how to accomplish this? Right now i am using a RadWindowManager to open the windows, with setup code like this:

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default" InitialBehavior="None" Left="" Style="display: none;" Top="">  

 

<Windows 

 

<telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" Height="500px" InitialBehavior="None" Left="20" Modal="True" NavigateUrl="~/controls/HostPages/AdditionalServicesHost.aspx" OffsetElementID="<%# hypAdditionalServices.ClientID %>" OnClientClose="closewindow" OpenerElementID="<%# hypAdditionalServices.ClientID %>" Style="display: none;" Title="Services Sought" Top="20" Width="600px">  

 

</telerik:RadWindow 

 

<telerik:RadWindow ID="RadWindow2" runat="server" Behavior="Default" Height="800px" InitialBehavior="None" Left="20" Modal="True" NavigateUrl="~/controls/HostPages/TypesOfCasesHost.aspx" OffsetElementID="<%# hypTypesOfCases.ClientID %>" OnClientClose="closewindow" OpenerElementID="<%# hypTypesOfCases.ClientID %>" Style="display: none;" Title="Type of Case/Issues" Top="20" Width="800px">  

 

</telerik:RadWindow>
<telerik:RadWindow ID="radSurvey" runat="server" Behavior="Default" Height="625px" InitialBehavior="None" Left="20" Modal="True" NavigateUrl="FillOutSurvey.aspx" Style="display: none;" Title="Fill Out Survey" Top="20" Width="450px"> 

 

</telerik:RadWindow>

 

 

 

<telerik:RadWindow ID="RadWindow10" runat="server" Behavior="Default" Height="625px" InitialBehavior="None" Left="20" Modal="True" NavigateUrl="practitionerdetails.aspx" Style="display: none;" Title="Practitioner Details" Top="20" Width="450px">

 

 

 

</telerik:RadWindow 

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>

 

 

Fiko
Telerik team
 answered on 29 May 2009
1 answer
228 views
Hi.
Is it possible to use the controls without installing them on the system but only copy the dll files into a folder in a VS2008 project?
Because I don't know if it's possible to install them on a webhoster.

Paul
Telerik team
 answered on 29 May 2009
2 answers
136 views
 

How do I extract data (besides the key-id) from a row that I'm deleting? I want to do this from within the method that handles the 'Telerik.Web.UI.RadGrid.DeleteCommandName' event. In that method, I have available a 'Telerik.Web.UI.GridCommandEventArgs' object (e) from which I can extract the ID of the item to be deleted:
        
        
GridEditableItem item = e.Item as GridEditableItem;
        
string recordID = (item.OwnerTableView.DataKeyValues[item.ItemIndex]["RecordID"]).ToString();

 

But I want to get other data, like the "Description" field or "Address" field.
I tried the following (which did not work):

        GridDataItem dataItem = e.Item as GridDataItem;

        string address = (dataItem != null ? dataItem["Address"].Text : "No information about the address.");

I get an exception telling me that it "cannot find a cell bound to the column name 'Address'". But I know the column-and-name is there.

I tried using the unique name of the column (by the way, this is a template column):

        GridDataItem dataItem = e.Item as GridDataItem;

        string address = (dataItem != null ? dataItem["AddressColumn"].Text : "No information about the address.");

But this just returned an empty string. 

How do I proceed?

Thanks in advance.

 

 

Darryl Chambers
Top achievements
Rank 1
 answered on 29 May 2009
3 answers
112 views
Good job with the new Default skin! 

When I first saw that you had deleted the Gray and 2006 skins, I was sputtering mad because they were basically the only ones that were somewhat toned-down. The new Default skin is even better. Nice, clean look.

-Al
Dimo
Telerik team
 answered on 29 May 2009
4 answers
210 views
Hi:

I have a demo RadWindow that I created for a user group meeting that opens a Google window, and it is now erroring with the following:
  htmlfile: Access is denied.
And in the dynamic code it is highlighting the following:
  i=document.selection.createRange()
any ideas what is up?
Phil
Top achievements
Rank 2
 answered on 29 May 2009
2 answers
155 views
Hi!

I'm just wondering why the CssClass-property on a ToolTip is not used?

At the moment you're doing this in the function _createUI in RadToolTip.js:

                
rootDiv.className = this._getFullSkinName() + (this.get_showCallout() ? " rtVisibleCallout" : "")
  + (isRightToLeft ? 
" RadToolTip_" + this._skin + "_rtl" : ""); 

But what I'd like to do (since I have diffrent tooltip-skins but with small variations) is to append my own cssclass to the rootDiv className.
Instead of creating three skins with small variations, I could append a css-class to the root of the tooltip, use one skin and create just the classes where I want to do my changes.

So let's say I have a class named "ExtendedTip", then
 <div class="RadToolTip_MyName rtVisibleCallout">
would become
 <div class="RadToolTip_MyName rtVisibleCallout ExtendedTip">
by setting the CssClass-property on the RadToolTip.

In code, this is what I want, more or less:

... 
 
rootDiv.className = this._getFullSkinName() + (this.get_showCallout() ? " rtVisibleCallout" : "")  
            + (isRightToLeft ? " RadToolTip_" + this._skin + "_rtl" : "")  
            + this._getDefinedCssClass(); 
 
... 
 
_getDefinedCssClass() : function() {  
 if (this._userDefinedCssClass != ""
    return " " + this._userDefinedCssClass; 

something like that.. I don't know.

It would save some CSS and bandwidth.

Best regards
Mario
Mario
Top achievements
Rank 2
 answered on 29 May 2009
3 answers
99 views
Hi,

I have an .aspx page with a master page and two controls. One control (UserControl1) contains a  linkButton and the other control (UserControl2) contains a RadGrid. My goal is to update the radgrid of UserControl2 on click of the linkbutton of UserControl1. Now I have inserted this code in the aspx page

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ctl00_ContentPlaceHolder_Center_CategorySearch1_LinkButton_AdvanceSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ctl00_ContentPlaceHolder_Center_ViewCategories1_GridView_Report" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

The problem is that the code still does the postback. What shall i do to solve this problem. Do i use the RadAjaxManagerProxy?? if if then in which control shall i write it and how to get the the id of the other control(Button or grid).

One more questation how to get the clientId of the control. shall i use the javascript to get it???


Kevin
Top achievements
Rank 1
 answered on 29 May 2009
4 answers
100 views
Hi,

I find something, maybe you can help me. 

Il my Page_Load I put : 
RadGridFacturatio.MasterTableView.EditFormSettings.EditColumn.ButtonType = GridButtonColumnType.ImageButton;

In the aspx page I put : 
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGridFacturatio">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridFacturatio" LoadingPanelID="RadAjaxLoadingPanel"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
       </AjaxSettings>
</telerik:RadAjaxManager>

And when I Insert or update I have this error : 
'Erreur d'exécution Microsoft JScript: Sys.WebForms.PageRequestManagerServerErrorException: Une erreur s'est produite, car un contrôle avec l'id 'ctl00$body$RadGridFacturation$ctl00$ctl02$ctl02$PerformInsertButton' n'a pas été trouvé ou un autre contrôle est assigné au même ID après la publication. Si l'ID n'est pas assigné, définissez explicitement la propriété ID des contrôles qui déclenchent les événements de publication pour éviter cette erreur.'
This, mean that there is 2 controls with the same ID.

But, when I put : 
<EditFormSettings>
     <EditColumn ButtonType="ImageButton"></EditColumn>
</EditFormSettings>

and comment : 
//RadGridFacturatio.MasterTableView.EditFormSettings.EditColumn.ButtonType = GridButtonColumnType.ImageButton;

It work very well !
Do you have an idea ?


Thank

Jean-Yves
Sebastian
Telerik team
 answered on 29 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?