Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
140 views
I need to validate insert and update on a grid bound column that has an aggregate sum footer.  I need to convert the column to a template column to add the required field validator, but do not know how to retain the aggregate sum footer.  Do I have to calculate it another way after converting the column to a template column?  Appreciate any help.
Courtney
Top achievements
Rank 1
 answered on 29 May 2009
3 answers
155 views
In the RadGrid, when the option to allow column reordering is turned on, there is a tooltip that shows up when you hover over the columns which states "drag to group or reorder".  There is a setting in our db that tells the grid to turn grouping on or off at run-time.  When grouping is turned off, I would like the tooltip to read something such as "drag to reorder".  I've searched all over and tried several attempts at getting this to change, but so far I have not had any luck.  I also tried using a RadToolTip, but I still get the original one in addition to the RadToolTip.  Any help on this would be greatly appreciated.  Thank you.

I tried the following in RadGrid_ItemDataBound event with no avail.

        if (e.Item is GridHeaderItem)
        {
            GridHeaderItem header = e.Item as GridHeaderItem;
            header["colTranDate"].ToolTip = "header.tooltip test";
        }


Ryan Bandouveres
Top achievements
Rank 1
 answered on 29 May 2009
6 answers
184 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
117 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
600 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
235 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
140 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
116 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
221 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
161 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
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?