Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views
Hi There,

I have a radgrid that is placed on the usercontrol. Grid is under RadAjaxManagerProxy.
I am not able to use the inbuilt Export to excel property of the grid

Although I have searched for the same and found that its because of asynchronous post back,
I have also written client side event(OnRequestStart) for the radajaxmanager on pageload event of the usercontrol, but not able to use the export inbuilt functionality.
Kindly suggest how to achieve this.

 RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);

           if (manager != null)
            {
                manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager_AjaxRequest);
                manager.ClientEvents.OnRequestStart = "onAJAXResponseStart";
                manager.ClientEvents.OnResponseEnd = "onAJAXResponseEnd";
            }


     

        function onAJAXResponseStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {

                args.set_enableAjax(false);
            }
            else {
                args.set_enableAjax(true);
            }

        }


Thanks
Saurabh
Saurabh
Top achievements
Rank 1
 answered on 15 Mar 2011
1 answer
136 views
Hello

I've looked at a lot of posts regarding formatting problems for appointments but am still having an issue...I want to increase the font size of appointments in day view to 14pt for printing purposes and have done so in the following way:

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataKeyField="ID" DataStartField="appStartTime"
                DataEndField="appEndTime" DataSubjectField="appSubject" DataSourceID="SqlDataSource2"
                Skin="Sitefinity" CustomAttributeNames="resourceLabelColour" >
</telerik:RadScheduler>


Private Sub RadScheduler1_AppointmentCreated...

        e.Appointment.BackColor = System.Drawing.Color.FromName(e.Appointment.Attributes("resourceLabelColour"))

        Dim i As System.Web.UI.WebControls.FontUnit
        i = 14
        e.Appointment.Font.Size = i

End Sub


In Chrome everything looks fine, however in IE 8 the bottoms of the letters get cut off (please see the two attached screenshots).  I have tried changing various CSS properties but am not able to get it looking right in IE...

Thanks for any suggestions

Brian

Peter
Telerik team
 answered on 15 Mar 2011
3 answers
95 views

I have developed my site in following environment.

.netframework 2.0
ajax 2.0 where there is no issue
 I am running my site in following environment.
.net framework 4.0 wihout converting it into 4.0  
Getting following types of error.
Microsoft JScript runtime error: 'RadMenu' is undefined
Microsoft JScript runtime error: 'RadTabStrip' is undefined
Microsoft JScript runtime error: 'RadControlsNamespace' is undefined
Microsoft JScript runtime error: 'RadGridNamespace' is undefined
Microsoft JScript runtime error: 'RadTabStrip' is undefined

what should be done to solve this issue?

Iana Tsolova
Telerik team
 answered on 15 Mar 2011
1 answer
88 views
I'm interested in shifting the right click column context menu to a left click.  I've gotten this to work by binding to the OnColumnClick event and showing the menu in that way (though i also have to put in a timer and disable closing the menu for a short time - otherwise it shows and immediately hides itself).  However, if the user clicks on the header text itself (rather than just the column background), the grid still wants to sort itself.  Disabling sort fixes that problem, but then it also removes the sort functions from the context menu.

My context menu already has a number of custom elements in it, and i could certainly just add my own custom entries there.  But i figured i would stop in here and see if there's an out of the box way to accomplish this goal.  Can you turn off click to sort, but maintain the menu entries?

-RP
Veli
Telerik team
 answered on 15 Mar 2011
6 answers
193 views
Hi!

Can someone show me an example how to accomplish the following in RadScheduler?

The user selects the desired time slots with the mouse pointer and then right click to bring up a TimeSlotContextMenu designed something like this:

<TimeSlotContextMenus>
    <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
    <Items>
        <telerik:RadMenuItem Text="Peter" />
        <telerik:RadMenuItem Text="Adam" />
        <telerik:RadMenuItem Text="Niclas" />
        <telerik:RadMenuItem Text="Jones" />
    </Items>
    </telerik:RadSchedulerContextMenu>
</TimeSlotContextMenus>

Then when the user choose one of the menu items a booking should be done without poping up a booking form.

Is it possible? If so, how do I do it?

I'm using C# and the Rad v2010.3.1317.40.

Sincerely, Thomas




Peter
Telerik team
 answered on 15 Mar 2011
1 answer
130 views
Hi,

Can we have RadMenu in our custome sharepoint 2010 Master page. Please suggest How we can achieve this?

Thanks
Ali
Kalina
Telerik team
 answered on 15 Mar 2011
1 answer
49 views
Hi,

I need to use the RAD Menu control in my Sharepoint 2010 Master Page. Kindly can you guide me how to go about it.

Thanks
Ali
Kalina
Telerik team
 answered on 15 Mar 2011
3 answers
139 views
Hi,

Our web applications are currently using the following versions of Telerik ASP.NET AJAX:
2008 Q3
2010 Q1
2010 Q2
2010 Q3


When browsing some of these web applications using IE8, the IE8's Compability View mode has to be switched on.

We are in the process of upgrading these web applications to use the latest version of Telerik ASP.NET AJAX which fully supports IE8.

Can you please tell us which version of Telerik ASP.NET AJAX to use so that the IE8's Compatibility View mode does NOT need to be switched on?

Regards
Sebastian
Telerik team
 answered on 15 Mar 2011
6 answers
156 views
Hi All,
I am just trying to remove the validation from the AdvancedInsert and Edit templates that require that a subject must be entered.
I want the subject to be optional.
Anybody know how to do this?
Thanks,
Steele.
Peter
Telerik team
 answered on 15 Mar 2011
5 answers
343 views
Hi i am doing change of page size of radgrid  on click of radpane event PaneCollapsed , but its not changing ? how to do this?


   function PaneCollapsed(sender, eventArgs) {
       var grid = $find('<%= radgvInbox.ClientID%>');
       grid.MasterTableView.PageSize = 20;
       var masterTable = $find("<%= radgvInbox.ClientID %>").get_masterTableView();
       masterTable.PageSize = 20;                  
   }

i tried the above two ways... how to do this?
Bhuvan
Top achievements
Rank 1
 answered on 15 Mar 2011
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?