Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Hello,

I'm attempting to click a link Button from within my asp.net application page which is part of a master page.  Upon clicking the link, I want a radWindow to pop-up, modal.  This all works.  But when I attempt to close the radWindow, it will refresh the parent page, which causes me to lose any changes made to the screen before I popped up the dialog.

I've followed the demo at: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

I just can't seem to get this working.  I basically want to call the dialog, and upon exiting it, update a widget on the form that called the radWindow. 
Question:
1.  Should I pop up the radWindow from javascript or from code-behind? 

Any help would be appriciecated
Princy
Top achievements
Rank 2
 answered on 22 Jan 2013
10 answers
350 views
I've configured an ajax manager so that a button inside a radwindow would update the radwindow in which it resides. Instead of working properly the button caused a full pledged postback. Any help would be much appreciated. 
John
Top achievements
Rank 1
 answered on 21 Jan 2013
3 answers
1.1K+ views
I'm trying to get the last position of the cursor when the user clicks outside of the RadTextbox, but I'm not quite sure it's working how I was hoping. I added an OnBlur client event in the mark-up:

<telerik:RadTextBox ID="rtxtTemplateContent" Runat="server" Height="100px" TextMode="MultiLine" Width="250px">  
    <ClientEvents OnBlur="setCursorPosition" /> 
</telerik:RadTextBox> 

Next I have my JavaScript:

function setCursorPosition(sender) {  
    var cursorPosition = sender.get_caretPosition()  
    document.getElementById("hdnCursorPosition").value = cursorPosition;  

My goal is to trap the last cursor position and save it in a hidden field on the page for use w/ drag'n'drop functionality from a RadListBox to the RadTextBox. It seems like it's working correctly except the numbers come out really random. For instance, I put 10 characters in the textbox and then put the cursor in the middle and clicked out of the textbox, but the number returned by get_caretPosition() was 80? Doesn't make sense to me... any ideas or suggestions? Is what I'm doing possible or has the cursor position been lost by the time the OnBlur event is fired?
Darwin
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
128 views
Hello,
I was using asp.net DataList to display image previously. Now I want to use RadListView control so that i can provide reorder the image. I was using following line of code in listview
  <div id="<%# Container.ItemIndex+1 %>" class='<%# Eval("CssStyle") %>'>
This line gives error in RadListView. Then what is substitute of "Container.ItemIndex" in RadListView. Please tell me if anything else we have to do when we migrate from asp.ner datalist to RadListView.
Kevin
Top achievements
Rank 2
 answered on 21 Jan 2013
2 answers
95 views
I have a page that loads dates into a hidden field.

I'm using Javascript to parse and hilight the dates.  Using an onClick function works perfectly, but I need this to load when the document is ready.  Every time I try this I get "Cannot call method 'selectDates' of null" - which implies that the calendar is not yet loaded.  I tried using the onLoad and onInit events - same error.

Here's the code:
<script type="text/javascript">
    //-------------------------------------------------------------------------------
    function renderDates() {
        //---------------------------------------
        var calendar = $find("<%= cal_Calendar.ClientID %>");
        var hf_Dates = document.getElementById("<%= hf_SelectedDates.ClientID %>");  //hidden field
        var DateStrings = hf_Dates.value.split('|');
        //---------------------------------------
        var Dates = new Array(DateStrings.length);
        for (var i = 0; i < DateStrings.length; i++) {
            var dt = convertToTriplet(DateStrings[i]);  //see function below...
            Dates[i] = dt;
        }
        //---------------------------------------
        calendar.selectDates(Dates);  //ERROR OCCURRS HERE!
    }
    //-------------------------------------------------------------------------------
    function convertToTriplet(dateString) {
        var dp = dateString.split('/');
        var array = new Array(dp[2], dp[0], dp[1]);
        return array;
    }
    //-------------------------------------------------------------------------------   
</script>


If I call this using jQuery, I still get the error - what the hell is going on?

Gimzani

 

 

Benjamin Hall
Top achievements
Rank 1
 answered on 21 Jan 2013
6 answers
344 views
Hi,

Sorry, the title should say "Cannot" instead of "Can" :)

I am using a custom combobox which inheritates from the RadComboBox. I have added some public properties which are

[PersistenceMode(PersistenceMode.Attribute)]


I need to access these custom properties from a javascript function called from the OnClientBlur client side event. Unfortunately they are not acessible. I must be missing something very obvious but I am stuck as some code in this function must only be performed depending on the values of these properties. How can I achieve that?

Thank you for your help!
Kevin
Top achievements
Rank 2
 answered on 21 Jan 2013
5 answers
180 views
Hi, I am trying to freeze the first four columns of my telerik radgrid. However, on implementation I get the following UI issue as seen in the attached screenshot.
The telerik version used by me is 2010.3.1109.35.
And , the code snippet used is :
 <ClientSettings> 
        <Scrolling AllowScroll="true" FrozenColumnsCount="4" SaveScrollPosition="true" UseStaticHeaders="true" /> 
    <ClientEvents  /> 
    </ClientSettings> 


  How can I fix it?

Looking forward to your suggestions.
Pavlina
Telerik team
 answered on 21 Jan 2013
4 answers
167 views
Is it possible to use the RadAsyncUpload to upload a picture to a web site that has windows auth. enabled?  This is for an internal site and I can't use forms or annoyomus auth. 

I am looking for any sample code or possible work arounds to get this functionality to work with Safari and iOS 6.

Andreas
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
77 views
Hi all,
I've tryed to use an autocompletebox inside a tooltipmanager but when I start writing an error like this was thrown " The target  for the callback could not be found or did not implement ICallbackEventHandler."
I need to solve it quickly...some ideas?
Thanks
Nencho
Telerik team
 answered on 21 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?