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

i am using RADTextbox when i  set ButtonCssClass,the Image of button is not changing it is disappering.

 <style>
   
.MyButton
   {
     background:url('CustomButton.gif') 0 0 no-repeat !important;
   }
   
</style>
<telerik:RadTextBox
  
ID="RadTextBox1"
  
runat="server"
  
ShowButton="True"
  ButtonCssClass="MyButton">
</telerik:RadTextBox>
Dimo
Telerik team
 answered on 11 Oct 2010
1 answer
472 views
Problem: you want to use one of the Telerik skins (e.g. Sunset) for styling but don't like the garish colouring used to show selected rows in a RadGrid.

Solution: you can "undo" the selected-row styling with these style-sheet commands:

.RadGrid_Sunset .rgRow td
{
border-color:#FFFFFF #FFFFFF #FFFFFF #CABAAB !important;
}
 
.RadGrid_Sunset .rgAltRow
{
background:none repeat scroll 0 0 #F1E9DC !important;
}
 
.RadGrid_Sunset .rgAltRow td
{
border-color:#F1E9DC #F1E9DC #F1E9DC #CABAAB !important;
}
 
.RadGrid_Sunset .rgRow
{
background: inherit !important;
}
 
.RadGrid_Sunset .rgRow td, .RadGrid_Sunset .rgAltRow td
{
border-left: solid 1px #CABAAB !important;
padding-left: 7px !important;
}
 
/* finally, need to put this one back in */
 
.RadGrid_Sunset .rgHeader:first-child, .RadGrid_Sunset th.rgResizeCol:first-child, .RadGrid_Sunset .rgFilterRow > td:first-child, .RadGrid_Sunset .rgRow > td:first-child, .RadGrid_Sunset .rgAltRow > td:first-child
{
border-left: 0 none !important;
padding-left: 8px !important;
}

This effectively counteracts the styles coming from the .rgSelectedRow class (and used by the skin) by re-inserting the normal (i.e., non-selected) styles in all circumstances ("!important").

Note that I haven't tried this for other skins; I am assuming it will be similar, however, although the border colours will obviously need to be changed.
Dimo
Telerik team
 answered on 11 Oct 2010
3 answers
308 views
I've a RadTextBox in EditItemTemplate of a RadGrid. In edit mode, while the cursor is in the RadTexBox I like to hit enter/return key on the keyboard and trigger the server side UpdateCommand event of RadGrid.  Can someone please advice how I can achieve this? Thanks.
Sebastian
Telerik team
 answered on 11 Oct 2010
1 answer
216 views
Hi,

We are using .NET 4.0  does ur rad grid optimization supports 4.0. In one of ur demos it has mentioned that it suppports only .net 3.5. We are extensively using RadGrid. Is there any sample to optimize our rad grid in .net 4.0.
Below mentioned is our application URL. We used rad grid in almost all our screens.
http://test.aptisys.com/UOMSetup.aspx 

But in ur demo site as mentioned that it support only .NET 3.5

This demo illustrates the optimized performance techniques incorporated in the ASP.NET 3.5 build of RadGrid. The control takes advantage of the new LINQ (Language Integrated Query) syntax introduced in ASP.NET 3.5 and performs aggregate calculations or executes sorting/filtering/paging operations by means of native LINQ expressions. This technique significantly reduce the time necessary to process these actions "behind the scenes" and allows you to handle millions of records within a few milliseconds.

For better visual indication we output the period of time between the Init and Render stages of the control lifecycle just below the grid table. Please bare in mind that these optimizations are available only in the ASP.NET 3.5 build of the grid (the assembly resides in the /bin35 folder of the installation).

Pls advice. To optimize our grid performance.

Thanks & Regards
Pavlina
Telerik team
 answered on 11 Oct 2010
1 answer
120 views
Hello All,

I am using client side setting for RADgrid by using web service. my next task is to maintain filters and grid result for some time.

Like, User filter employee list by salary and go to edit employee information and when user comes back the result should be in the same state.

so is there any inbuilt setting in RADGrid :) to maintain filter and sorting status on client side ?

Thanks a lot.
Maria Ilieva
Telerik team
 answered on 11 Oct 2010
1 answer
136 views
Hi,

Could someone please assist me with adding a custom button to launch a custom Editor Dialog (a Link Manager of sorts, but completely custom - not a "changed" LinkManager.ascx file) from  ImageMap.ascx Editor Dialog (which I have already copied into my solution) ?

I'd like to add a button in the ImageMap Editor Dialog after the URL text box to launch this custom Link Manager i've developed to return a URL selected in my custom editor dialog to the URL text box.

This custom editor dialog is already available in the my RadEditor's toolbar (added via the ToolsFile with some programatic declarations) and functions as intended, but I'd like to know how to use it in my ImageMap.ascx dialog.

I've already tried adding it using a StandardButton and the button appears, but it does nothing.  I guess I'm missing the required JavaScript to make it work.

Thanks in advance,

David.

Rumen
Telerik team
 answered on 11 Oct 2010
1 answer
78 views

We are trying to use a custom localization for RadEditor Dialogs. We created RadEditor.Dialogs.en-GB.resx, RadEditor.Dialogs.fr-CA.resx … files and we set the “LocalizationPath” and “Language” properties. This is working fine for all cultures but not for “en-US”. The dialogs are displayed without text for "en-US" culture and it seems it cannot see the resx file for US. Can you please help with this issue?

Rumen
Telerik team
 answered on 11 Oct 2010
2 answers
109 views
I wish to set the value of a GridDateTimeColumn to today's date when inserting a new row into a grid - see the following code extract. The code does not error but when the edit row is displayed the textbox in the date column is blank. Any help would be great.

Rgds

Len Jones


protected void grid_ItemCreated(object sender, GridItemEventArgs e)
  
{
  
    if (e.Item.OwnerTableView.Name == "gridTableView" && e.Item is GridEditableItem &&     e.Item.IsInEditMode)
  
{
  
    GridEditableItem editItem = e.Item as GridEditableItem;
  
    RadDatePicker picker = editItem["StartDate"].Controls[0] as RadDatePicker;
  
    if (e.Item.OwnerTableView.IsItemInserted)
  
    {
  
        picker.SelectedDate = DateTime.Today;
  
    }
  
}
Leonard Jones
Top achievements
Rank 1
 answered on 11 Oct 2010
1 answer
103 views

I’ve installed the RadEditor controls (Build 2010_2_929) in a Sharepoint 2010 farm I’m experiencing the following issue: Numerous standard tool buttons are missing from the docked RadEditor menu (see attached picture).

 

The bold button appears, but the italics and underline buttons are missing (as well as several other pieces of functionality).  In addition to the missing menu buttons, the Design, HTML and Preview tabs are missing at the bottom of the editable content region.

 

This occurs when I activate all three Telerik Site Features:

 

-Use an accessible UI in RadEditor

-Use RadEditor to edit HTML fields

-Use RadEditor to edit List Items

 

If I deactivate “Use an accessible UI”, I get the full undocked menu with all of the missing buttons, but the Design, HTML, and Preview tabs are still missing.

 

I’ve checked the ToolsFile.xml and the ListToolsFile.xml and all standard buttons are enabled.

 

Thanks for any help...

Stanimir
Telerik team
 answered on 11 Oct 2010
2 answers
741 views
Hi,

I create a TreeView  with this code:

 

 

<

 

telerik:RadTreeView ID="rtvLineeBeni" Runat="server" OnNodeExpand="RTV_NodeExpand"

 

Font-Names="Arial" Font-Size="12pt" Font-Strikeout="False" Skin="WebBlue"

 

BorderColor="Gray" Height="390px" Width="748px" AllowNodeEditing="true"

 

OnClientContextMenuItemClicking="onClientContextMenuItemClicking"

 

onnodeedit="rtvLineeBeni_NodeEdit" >
<Nodes>  

 

 

 

 

 

<telerik:RadTreeNode Value="1" ImageUrl="~/Images/ImagesTree/Reparto.png"

 

AllowEdit="false" Text="Reparto" Expanded="true" ContextMenuID="MainContextMenuInsert" >  

 

 

 

 

</telerik:RadTreeNode>

 

</Nodes>

 

</telerik:RadTreeView>

 

Then i populate it ON DEMAND(c# code)

How can i get the selected node with javascript ?
I try this:

 

 

 

 

var oId = document.getElementById('<%=rtvLineeBeni.ClientID %>').value

var oId = document.getElementById('<%=rtvLineeBeni.ClientID %>_SelectedNode').value

but it tells me that it's Undefined ...

Thanks !

 

 

archimede
Top achievements
Rank 1
 answered on 11 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?