Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
Hi all,

I am passing some data back to AjaxRequest through e.Argument. I pass the data in as an array, it comes out as a comma separated list. Is there any way to maintain my object? I am working with a large set of data and it is confusing to have a huge list of CSVs not associated with any titles. 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    //TODO: This needs extensive work still.
    Logger.InfoFormat("Received an ajax request. Arguments are: {0}", e.Argument);
 
    string[] arguments = e.Argument.Split(',');
    if (arguments[0] == "Update Local Settings")
    {
        string dockID = arguments[1];
 
        Logger.InfoFormat("Dock ID: {0}", dockID);
        CormantRadDock dock = Utilities.FindControlRecursive(Page, dockID) as CormantRadDock;

etc... would like to do arguments["Command Name"] == "Update Local Settings";
Shinu
Top achievements
Rank 2
 answered on 01 Jun 2011
1 answer
129 views
2 Issues,
1. When I export to a pdf file it does not center the text of my columns under their headings, they are off a bit.  They are centered in the grid but not in the PDf Export.

2. When exporting to a Excel file, there seems to be 3 buttons that export along with the header that they are in, i am assuming its the export buttons I turned on, is there a way to shut this off and only export the actuall data in grid.

Thanks
Princy
Top achievements
Rank 2
 answered on 01 Jun 2011
1 answer
112 views
Hello 
Here's the problem : I have a telerik radscheduler project linked with a database project . In order to update the database when a modification is done on the radscheduler i have decided to override the default on appointmentupdate method .
 protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
    {
        AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);
        ai.CopyInfo(e.ModifiedAppointment);
        try
        {
            Business.DatabaseAccess myAccess = new Business.DatabaseAccess();
            AppointmentSet to_modify = myAccess.getAppointmentByDate(e.ModifiedAppointment.Start);
            myAccess.modifyAppointmentDate(e.ModifiedAppointment.Start, e.ModifiedAppointment.End, to_modify.Id);
        }


        catch
        {
            throw new Exception("unknown problem");
        }


    }

My solution is very close to the binding to generic list example in your site : http://demos.telerik.com/aspnet-ajax/scheduler/examples/bindtolist/defaultcs.aspx.  

This solution seems to work fine but each time i launch the avanced edit template the radscheduler project crashed . Could you explain to me what did i miss ?
Peter
Telerik team
 answered on 01 Jun 2011
1 answer
94 views
Hello. Is it possible to change the loading graphic on the radWindow to a custom graphic. Currently, it displays the windows 7 default loading graphic (the animated circle..).

any help is appreciated.

thanks
Shinu
Top achievements
Rank 2
 answered on 01 Jun 2011
1 answer
93 views
Hello,
I have solution in witch there is on page - default, that contains iframe.
in the iframe i loads pages inherituing from masterpage.
In my masterpage i have radajaxmanager and all postbacks go beyond it.
Now i need radajaxmanager in my default, because it contains except of the iframe also a <table> of menu, and i want to use asp timer, that on every tick will update specific span in one of my <td>.
I have put radajaxmanager in my default, also radscriptmanager, and wrote in page_load the next statement:

DefaultAjaxManager.AjaxSettings.AddAjaxSetting(tmrRefreshTaskTitle, spnMyCommitteeTask);

when writing this line my solution is compiled but cannot run - the page doesnt being drown.
if i remove this line, but give the radajaxmanager stay on page design, there is no error.

Does anybody know what is my problem?

thanks,
gila

Shinu
Top achievements
Rank 2
 answered on 01 Jun 2011
1 answer
171 views
Hello,

I am creating a web page in which i am using a rad ajax manager, in the page i have one tag defined for another web user controller file(.ascx file) which has its own rad ajax manager. Now i am getting this error for 2 rad ajax managers. I need both rad ajax managers, Please suggest me any solutions for the problem.

Thank you.
Shinu
Top achievements
Rank 2
 answered on 01 Jun 2011
2 answers
170 views

I'm trying to find a way to change the background colour of a row/cell.

Currently, our asset booking system looks like late-current.gif - whereas the red highlighted booking indicates that that resource it is overdue and hasn't been returned. What is required is for the whole row of the timeline to turn red if the asset is overdue, as indicated in late-required.gif.

The appointments change colour using the following code:

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
     {
        DateTime now = DateTime.Now;
        if (e.Appointment.Resources.GetResource("Status", 1) != null)
           e.Appointment.CssClass = "rsCategoryOrange";

And I was trying to do something similar to change the entire row background.

Note: all the resources are populated from the database and are not hardcoded.

Any ideas anyone?
MfE_Developer
Top achievements
Rank 1
 answered on 01 Jun 2011
2 answers
77 views
when i use RadUpload,  i did using RadProgressArea
File Uploading worked well but.. RadProgress Area is not working.(don't update ProgressArea)

Environment :

  Windows 2008 R2
  Telerik (Runtime Version : v4.0.30319, Version : 2011.1.413.40) Ajax
  IIS 7.5 (Pool : .NET 4.0, Identity : LocalSystem)

i tried  following
0. Default Web.Config(Telerik Template Project)
1. Replection Permission added to Web.Config
2. Telerik.Web.UI assembly added to GAC(.NET 4.0)

all not working.

i attached image file of Symptom
SangHyuk
Top achievements
Rank 1
 answered on 01 Jun 2011
1 answer
93 views
I am trying a test with the RadComboBox client side stuff and I can't get it to work. It should be a very simple thing to display the selected item text in an alert. The code is below. What I am doing wrong?

<script language="javascript" type="text/javascript">
      function OnClientSelectedIndexChangedHandler(item)
        {
            alert(item.Text);
        }
 </script>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <telerik:RadComboBox ID="DocumentsTypeRadComboBox" runat="server" Filter="StartsWith" DataTextField="Name" DataValueField="ObjectUID" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedHandler">
        <Items>
            <telerik:RadComboBoxItem Text="Item1" Value="1" />
            <telerik:RadComboBoxItem Text="Item2" Value="2" />
        </Items>
    </telerik:RadComboBox>
    </div>
Jennifer
Top achievements
Rank 1
 answered on 01 Jun 2011
2 answers
199 views
As I can catch the event to filter a column of the grid?
Carlos Rodriguez
Top achievements
Rank 1
 answered on 31 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?