Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
90 views
http://demos.telerik.com/aspnet-ajax/slider/examples/rangeslider/defaultcs.aspx

SelectionStart: $0
SelectionEnd: $300


I am trying to do something like the example on the link does. Use a range slider and update the selectionstart and selectionend. without doing a postback.
How can I do this? I have tried using :

This does not work since get_oldValue()  brings back the old value regardless of whether left or right handle is dragged.


function HandlePassengerValueChanged(sender, eventArgs) {
                     var myval = sender._selectionEnd;
                     if (eventArgs.get_oldValue() == $('#<%= lblPassengerNoStart.ClientID %>').html()) {
                         $('#<%= lblPassengerNoStart.ClientID %>').html(myval);
                     }
                     else  {
                         $('#<%= lblPassengerNoEnd.ClientID %>').html(myval);
                     }
                 }

tried:
1. var activeHandle = sender.get_activeHandle();
2. sender._valueOnSlideStart
3. var myval = sender.get_value();
.
.
. and lot mor options without any luck.

I have spent hours on this now. Please help.

Regards
Anup
Anup
Top achievements
Rank 1
 answered on 15 Feb 2011
3 answers
64 views
Hi 
1. select a font name from Arial to Verdana
2. select font size to 10px to 12px
3. font name reset to Arial.

my css file for radeditor:

body 
{
    font-family: Arial;
    font-size: 10px;
}

P  
{  
    margin:0px;  
}   

Is there a way not to cause the reset? same to 'Paragraph Style' tool

thank you
Charles





Rumen
Telerik team
 answered on 15 Feb 2011
3 answers
236 views
Hi

i am using File Explorer control. i want to change the order of default functional menu items (Open,Delete,Rename) and as well as add new custom menu item to Context Menus. i want to do this for Treeview,Grid Context Menus in the File Explorer Control.

Whether it is possible. and send me sample Code. 

Thanks

Thanks
Dobromir
Telerik team
 answered on 15 Feb 2011
1 answer
243 views
Does Telerik Controls work with Load Runner? If so can we get some guidance.

All your help is greatly appreciated.

Thanks
Prashant  
Bodevain Svensson
Top achievements
Rank 1
 answered on 15 Feb 2011
4 answers
148 views
I have a single radcontext menu on a page. This context menu gets filled with items from a scriptservice using the radscriptmanager.
Now the problem lies in that the screen boundary detection doesn't work, my context menu is always clipped on the bottom and on the right of the page. The scrollbars apear but the context menu doesn't scroll into view. The code to open the context menu :

DocroomPageController.prototype.ShowContextMenu = function(e, row, LoadDelegate, subparam) {
    PageController().PreventContextTimeout();
    PageController().HideContextMenu();

    var menu = PageController().GetContextMenu();
    menu.hide();

    if (menu.get_items().get_count() > 0) {
        menu.get_items().clear();
    }
    this.contextevent = e;
   
    if (!subparam) {
        LoadDelegate(row);
    }
    else {
        LoadDelegate(row, subparam);
    }
   
    menu.show(e);

    $telerik.cancelRawEvent(e);

}

DocroomPageController.prototype.ContextCompleteCallback = function(ResponseObject, ResponseAsXml, ResponseAsText) {

    var menu = this.GetContextMenu();
    var i;

    for (i = 0; i < ResponseObject.length; i++) {
        var childItem
        var exists = false;
        if (menu.get_items().getItem(i)) {
            exists = true;
            childItem = menu.get_items().getItem(i);
            childItem.set_text(ResponseObject[i].Text);
            childItem.set_value(ResponseObject[i].Value);

        }
        else {
            childItem = new Telerik.Web.UI.RadMenuItem();
            childItem.set_text(ResponseObject[i].Text);
            childItem.set_value(ResponseObject[i].Value);

        }
        if (ResponseObject[i].isSeparator == true) {
            childItem.set_isSeparator(ResponseObject[i].isSeparator);
        }

        if (ResponseObject[i].Image) {
            // alert(ResponseObject[i].Image);
            childItem.set_imageUrl('./Images/' + ResponseObject[i].Image);
        }
        if (!exists) {
            menu.get_items().add(childItem);
        }
        childItem.set_navigateUrl(ResponseObject[i].NavigateUrl);

        if (!childItem.get_visible()) {
            childItem.show();
        }
    }

}

with an example of a loaddelegate :

 

DocroomPageController.prototype.LoadContextItems =

function(item) {

 

ContextMenus.GetObjectContextMenuItems(item, delegate(PageController(), PageController().ContextCompleteCallback), delegate(PageController(), PageController().ErrorCompleteCallback));

}



We are using the context menu within pages loaded in a radpane.
Kate
Telerik team
 answered on 15 Feb 2011
1 answer
90 views

hi,

i have this in the <ItemTemplate>
...
<asp:LinkButton ID="DelCom" runat="server" Visible="true" CommandName="TOTO"></asp:LinkButton>
...

in the itemdatabound i have this 
...
    Dim DD As String = Session("CLE_REF_LANGUAGE")
            Dim cle_lien_com As String = CType(DataBinder.Eval(CType(e.Item, RadListViewDataItem).DataItem, "CLE_LIEN_COMMENTAIRE"), String)

            Dim LnkDelCom As LinkButton = CType(e.Item.FindControl("DelCom"), LinkButton)
            LnkDelCom.Text = TClass.TRAD_OBJ("TXT_SUPPRIMER", DD)
            LnkDelCom.CssClass = "Del_LnkCom"
            LnkDelCom.Visible = True
            LnkDelCom.CommandArgument = cle_lien_com
            LnkDelCom.CommandName = "DelCom"
            AddHandler LnkDelCom.Command, AddressOf LnkDelCom_Click
...

the linkbutton appear ok !
but when i click on the link in IE, i have no event...

normaly listview start this event ???

Private Sub RAD_LV_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListViewCommandEventArgs) Handles RAD_LV.ItemCommand

        Dim z As String = e.CommandName
        Dim v As String = e.CommandArgument

    End Sub

Veli
Telerik team
 answered on 15 Feb 2011
1 answer
64 views
Hey we are using Telerik controls for our site. We use HP QTP for recording our test scripts . Our research gave solutions for RADCombo but just wanted to check if all Telerik controls are now supported for HP QTP. If this is not the right place to ask the question can you guide us to the right place.


Thanks
Prashant  
Bodevain Svensson
Top achievements
Rank 1
 answered on 15 Feb 2011
4 answers
150 views
Hi,
I was exploring how to highlight correct 'today' in scheduler depending on the time zone (my application is set up in a way that the admin sets in which time zone the application is being used, enabling the application to be hosted in one time zone and used in another) and came across this help page. I feel the TimeZoneOffset property does not offer perfect solution to display events according to the time zone.

Consider the following scenario, where you have two events:
(a) at 11AM, 2nd April 2011
(b) at 11AM, 4th April 2011

Your time zone is Brisbane, Australia, which is UTC+10
Upon setting the TimeZoneOffset to timespan of 10 hours, you'll see both the events at their correct times.

But say your time zone is Melbourne, Australia which is UTC+10, but it practices daylight saving (whereas Brisbane does not). At the time of (a), DST is on, and at the time of (b), DST is off. (Note that DST for Melbourne will be switched off on 3rd April 2011)
If you set the TimeZoneOffset to 11 hours, only event (a) will be displayed correctly.
If you set the TimeZoneOffset to 10 hours, only event (b) will be displayed correctly.

Hence I feel it does not handle DST's correctly in the scheduler. Did I miss anything here?

Best regards,
Anuruddha



Nikolay Tsenkov
Telerik team
 answered on 15 Feb 2011
3 answers
115 views
I'm trying to produce a result similar to this:

http://www.telerik.com/help/aspnet-ajax/grdcustomizewithgridtemplatecolumn.html

However the problem is that I HAVE to be able to click the individual column headers to sort the grid, so I really need to use GridBoundColumn and the rest.  Is there any way to add the "parent" header item whilst using the normal Telerik column objects?

cheers
Pavlina
Telerik team
 answered on 15 Feb 2011
6 answers
104 views
Hello, 

I'm having a special issue on IE 6 and the scheduler.

Yes, only on IE 6, when I click on a day (in the month view) it fire the event : RadSchedulerPlanning_FormCreating (perfect !) but the e.Appointment.Start is half of the time the second cell of the active month view half of the time the correct date I click.

This issue is only on IE 6... So it's quite awkward!

Thank you to help me on this issue

Jean-Yves
Nikolay Tsenkov
Telerik team
 answered on 15 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?