Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
138 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
81 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
55 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
141 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
102 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
94 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
3 answers
98 views
IE8 display radbuttons placed next to one another a little jumpy (please see screen shot).
Pero
Telerik team
 answered on 15 Feb 2011
3 answers
112 views
Dear All,

I have a radgrid which have some column with data value is html code, for examples of two the following data row :
  • <nobr><span><a href="/_layouts/userdisp.aspx?ID=9">Developing Lead-Hai Nguyen</a><img border="0" height="1" width="3" src="/_layouts/images/blank.gif"/><img border='0' height='12' width='12' class='ms-imnImg' src='/_layouts/images/blank.gif' alt='' /></span></nobr>
  • <nobr><span><a href="/subsite01/_layouts/userdisp.aspx?ID=14">Conductor Lead-Truc Bui</a><img border="0" height="1" width="3" src="/_layouts/images/blank.gif"/><img border='0' height='12' width='12' class='ms-imnImg' src='/_layouts/images/blank.gif' alt='' /></span></nobr>

And them will appear in radgrid with the link string as follow :
So when i sort this column to ascending, the result will appearing as follow :
And else when i sort this column to descending, it will appearing as follow :
I would like radgrid will show as the follow when i was sorted it :
- Ascending sort :
- Descending sort :
please help me solve this problem, thanks in advance.

Phu Dang.

Phu
Top achievements
Rank 1
 answered on 15 Feb 2011
7 answers
142 views
Hello,

i would like to know how easy or hard can be use the RadSchedulerRecurrenceEditor control on Sharepoint 2010. My webpart works with sharepoint calendar lists, but with it´s own interface to add, edit....

The main requirement is, that my webpart must be transparent to sharepoint. I mean if the users goes straight to the sharepoint list, Sharepoint must recognize the recurrence rule, caml querys...

Thanks
Kalina
Telerik team
 answered on 15 Feb 2011
1 answer
144 views
Hello Telerik,

I initially posted this in the Reporint forum because I am using the chart in a Telerik Report, but I haven't recevied a response.  Seems like maybe this is a more appropiate place... 

I am creating a chart from a SQL datasource.  I have two series that are bound to columns on the datasource.  If I preview the chart, it looks good and the chart matches the data.  My next step is to display my own custom X-Axis labels.  I do this by setting PlotArea.XAxis.AutoScale = false and create the items manually.  However when I do this and preview the chart, the chart does not look correct (the line does not match the data from the database).

This forum post seems to be related: http://www.telerik.com/community/forums/aspnet/chart/trouble-with-custom-xaxis-labels.aspx
It suggests that I do not set the xvalue inside my chart series.  However, I am adding the series by binding to a datasource, so I do not see how to make this work in my case.

//set the datasource 
chart1.DataSource = this.sqlDataSource1; 
//COMMENT OUT THIS SECTION AND THE CHART LOOKS GOOD 
//add new xaxis series items 
chart1.PlotArea.XAxis.AutoScale = false
chart1.PlotArea.XAxis.AddRange(1, 7, 1); 
chart1.PlotArea.XAxis[0].TextBlock.Text = "12/1/10"
chart1.PlotArea.XAxis[1].TextBlock.Text = "12/5/10"
chart1.PlotArea.XAxis[2].TextBlock.Text = "12/10/10"
chart1.PlotArea.XAxis[3].TextBlock.Text = "12/15/10"
chart1.PlotArea.XAxis[4].TextBlock.Text = "12/20/10"
chart1.PlotArea.XAxis[5].TextBlock.Text = "12/25/10"
chart1.PlotArea.XAxis[6].TextBlock.Text = "12/30/10"
    
//add the series 1 
ChartSeries seriesAvg = new ChartSeries(); 
seriesAvg.DataYColumn = "Average"
seriesAvg.Type = ChartSeriesType.Area; 
seriesAvg.DefaultLabelValue = ""
chart1.Series.Add(seriesAvg); 
//add the series 2 
ChartSeries seriesMax = new ChartSeries(); 
seriesMax.DataYColumn = "Max"
seriesMax.Type = ChartSeriesType.Line; 
seriesMax.DefaultLabelValue = ""
chart1.Series.Add(seriesMax);

Am I doing this totally wrong, or is there a work around?

Thanks, Chris
Missing User
 answered on 15 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?