Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
I need to know where the caret is in a RadTextBox while an action is occurring in RadComboBox.  For example, somebody selects an item in the combobox, an item's value is to be inserted into the text in the RadTextBox at the position of the caret. As I try to determine the location of the caret by calling "get_caretPosition" on the RadTextBoxm I always get the same value -7341.

This is an incomplete function but enough to determine that I'm not getting the value I expected:

            function CannedNoteSelected(sender, eventArgs) {
                var selectedValue = eventArgs.get_item().get_value();
                var pos = $find('<%= NoteToClientTxt.ClientID %>').get_caretPosition();
... do stuff here to insert merge new text into existing text but pos always contains -7310 no matter where the caret really is ...
                $find('<%= NoteToClientTxt.ClientID %>').set_value(selectedValue);
            }
 What am I doing wrong?
Maria Ilieva
Telerik team
 answered on 23 Jan 2013
1 answer
118 views
How to remove the path shown in the textbox of fileexplores? 
Princy
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
147 views
Hi
     How can I change the radgrid's filter icon tooltip. Right now its showing 'filter'. I want it to be 'do filter'.
thanks in advance
Ryan
Shinu
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
54 views
Hi

I want to edit the radtreenode on double clicking of the node. How can I achieve that scenario??

thanks
Allen
Princy
Top achievements
Rank 2
 answered on 23 Jan 2013
6 answers
165 views
Hello,

I am using the rad editor to manipulate the html contents on my site, I have added some commands to the rad editor which are shown when use right clicks in the editor area. Problem is that images are not showing see the attached image for details...

Here is my code..

//Create a draft editor tool.
EditorTool SaveDraftTool = new EditorTool();
SaveDraftTool.Text = "Spara utkast";
SaveDraftTool.Name = "SaveDraft" + this.ContentItemId.ToString(); //creating a unique command name so that correct article draft is saved.
SaveDraftTool.ImageUrl = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
SaveDraftTool.ImageUrlLarge = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
 
EditorTool DeleteDraftTool = new EditorTool();
DeleteDraftTool.Text = "Redeara utkast";
DeleteDraftTool.Name = "DeleteDraft" + this.ContentItemId.ToString(); //creating a unique command name so that correct article draft is saved.
DeleteDraftTool.ImageUrl = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
DeleteDraftTool.ImageUrlLarge = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";

Hope this is enough information to figure out the problem... I can provide more information if required!!

Rumen
Telerik team
 answered on 23 Jan 2013
5 answers
293 views
I'm using RadToolbar as CommandItem, and I want to be able to export grid data to Excel by pressing a button on toolbar. I have to mention that grid is ajaxified using RadAjaxManager. I'm having troubles disabling ajax on toolbar button
function onRequestStart(ajaxPanel, eventArgs) {
    if (eventArgs.EventTarget == "ExportToExcel") {
        eventArgs.EnableAjax = false;
    }
as I can't get the button in the toolbar. Can anyone, please, post some working sample code with exporting grid data from toolbar button?
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
144 views
CSS Sprites for RadToolBarButton in RadGrid CommandItemTemplate

Hi,
I am using RadToolBarButton in RadGrid CommandItemTemplate. But I have over 15 buttons and each button has corresponding normal and hovered images. I want to use only one CSS sprites image for all the [image only] RadToolBarButtons to reduce http requests.

<telerik:RadToolBarButton CommandName="InitInsert" ToolTip="Add Item"
    ImageUrl="~/Img/addN.png" HoveredImageUrl="~/Img/addH.png">
</telerik:RadToolBarButton>

<telerik:RadToolBarButton CommandName="EditSelected" ToolTip="Edit Item"
    ImageUrl="~/Img/editN.png" HoveredImageUrl="~/Img/editH.png">
</telerik:RadToolBarButton>

<telerik:RadToolBarButton CommandName="DeleteSelected" ToolTip="Delete Item"
    ImageUrl="~/Img/deleteN.png" HoveredImageUrl="~/Img/deleteH.png">
</telerik:RadToolBarButton>
<telerik:RadToolBarButton>
<ItemTemplate>
        <telerik:RadButton ID="BtnToggle" runat="server" ButtonType="ToggleButton" 
        ToggleType="CustomToggle" AutoPostBack="false" Checked="true" BackColor="White"
        ToolTip="Toogle Folders" OnClientClicked="jsToggleGroup">
            <ToggleStates>
                <telerik:RadButtonToggleState Text="Collapse" Selected="true">
                </telerik:RadButtonToggleState>
                <telerik:RadButtonToggleState Text="Expand" >
                </telerik:RadButtonToggleState>
            </ToggleStates>
        </telerik:RadButton>
</ItemTemplate>
</telerik:RadToolBarButton>

and so on ...

What's the best way to do that? I noticed that RadToolBar has "EnableImageSprites" option. Does anyone have some sample code to enable sprites in RadToolBar?

Thanks.

The team,
http://www.megasearches.com/
Kate
Telerik team
 answered on 23 Jan 2013
4 answers
173 views
Hello,
 I am using telerik listView control for displaying data on web page. I have 16 object in data source and I am binding in to list view control. What I want is that it should display 4X 4 format(4 rows and 4 columns) on page. When i am doing it is displaying all 16 elements in a single column. How I will do this?
Ranjan
Top achievements
Rank 1
 answered on 23 Jan 2013
6 answers
191 views
I have a RadRotator that takes several images from a database (the image url's)
All images may not be exactly the same size (they dont vary by much though)
How can I force all images displayed in the rotator to be the same size ?  Ive used this

<telerik:RadRotator ID="RadRotator1" runat="server"
                     ScrollDuration="700" FrameDuration="5000"  RotatorType="SlideShow" SlideShowAnimation-Type="Fade" ItemHeight="162px" ItemWidth="207px" PauseOnMouseOver="False">
                     <ItemTemplate>
                         
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageURL") %>'   Height="162px" Width="210px" /> 
                         
                     </ItemTemplate>
        </telerik:RadRotator>

but it doesnt work properly, when images fade in and out, I can still see the remnants of the previous image behind the current image.  I just want all images to be the same size and not to see any of the previous images in the background.  Can anyone help ?
Slav
Telerik team
 answered on 23 Jan 2013
7 answers
284 views
Hi there

I'm wondering how it is possible to use both the radScriptManager and a radCaptcha control that stores its image in the server-side session?

I've tried amending the web.config entry to the httphandler entry, from Telerik.Web.UI.WebResource to Telerik.Web.UI.WebResourceSession, but on doing this, the page will no longer load, as the RadScriptManager control complains it can no longer find Telerik.Web.UI.WebResource, at least I assume that is what is happening, as the page just stops with the error:

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config.


Could anybody let me know what would be the correct way of configuring web.config to keep both these controls happy? Leaving both of the options in does not appear to work either?

Thanks if you can advise.

Regards

Slav
Telerik team
 answered on 23 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?