Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
115 views
I intend to implement 'Drag and Drop' in rearranging Tabs at run-time.
I choose to work with the RadGrid's 'Drag and Drop' feature for Column header rearranging. 

Changing the Layout/CSS for every column header item seems doable. But, I need scroll features like in TabStrip without a scrollbar. Any idea how I could do this? 

I am using ASP.NET AJAX Q3 2010 and have upgrade up to Q3 2011.

Thanks,
Shravan
Shravan
Top achievements
Rank 1
 answered on 15 Mar 2012
2 answers
92 views
I have the trial version. I drag and drop the RadUpload onto my page. I do not see the "Upload All" button for uploading the file. Is this due to because it was a trial version only?

I got this error when I tried to load the page with the RadUpload control and RadScriptManager.

Server Error in '/' Application.

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Plamen
Telerik team
 answered on 15 Mar 2012
1 answer
118 views
Hi,

We are having some problems with the Opera 11 and AutoResize of the RadWindow.
We are setting an url to the window. If the content of the window is small (less than 350px) our RadWindow still becomes 350px high (with white space below).

When checking out the autosize source code in Telerik, I discovered the following lines of code:
            if ($telerik.isIE || $telerik.isFirefox)
            {
                sizingElement = contentFrame;
            }

When I did a prototype on the entire autoSize function and including Opera in the if statement, everything worked as expected!!!
Don't know if there are side-effect of this, but normally Opera behaves like these browsers so it should be OK.

Is this something you might fix in a future release?

Regards
Caesar
Marin Bratanov
Telerik team
 answered on 15 Mar 2012
12 answers
506 views
I'm trying to get a basic Schedule running, but I'm getting an error:

Provider 'SchedulerData' has not been declared in web.config

Here is my web.config section that defines it:

<configuration> 
    <configSections> 
    <sectionGroup name="telerik.web.ui">  
      <section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication"/>  
    </sectionGroup> 
    </configSections> 
  <telerik.web.ui> 
    <radScheduler defaultAppointmentProvider="Integrated">  
      <appointmentProviders> 
        <add name="SchedulerData" type="Telerik.Web.Scheduler.MyDbSchedulerProvider" connectionStringName="LocalSqlServer" persistChanges="true" /> 
      </appointmentProviders> 
    </radScheduler> 
  </telerik.web.ui> 
    <appSettings/> 
    <connectionStrings> 
        <remove name="LocalSqlServer"/>  
        <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|sc.mdf"/>  
    </connectionStrings> 

and here's the very basic tag I'm using to initiate it:

<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="Month" DayStartTime="08:00:00" DayEndTime="18:00:00" ProviderName="SchedulerData" ReadOnly="false"

Can anyone see what I'm doing wrong? I'm using the MyDbSchedulerProvider.cs file that was included and I've changed it to match up to my database table and fields. Thanks.
David
Top achievements
Rank 1
 answered on 15 Mar 2012
19 answers
493 views
Hi,

I got a RadUpload Ajax callback error when I put a RadUpload and RadUploadProgressHandler on a web form hosted in IIS7. The error message is as following:

System.NullReferenceException: Object reference not set to an instance of an object. 
    at Telerik.Web.UI.RadProgressContext.Serialize(TextWriter writer) 
    at
Telerik.Web.UI.RadUploadProgressHandler.ProcessRequest(HttpContext context)

Telerik.RadUploadProgressHandler.ashx?RadUrid=......

Did you register the RadUploadProgressHandler in web.config?

Please ....


The error message only appears in a popup message box when the IIS is restarted and the the page is visited (and a button/link is clicked) for the first time. It is not just triggered by an upload. A normal postback gets the same thing. Yet after that it never happens again even when the page is loaded in a seperate browser on a different computer. It does not affect any operations either, but still having an error poped out is not ideal.

I have triple checked my web.config to make sure that I have done everything suggested in the documentation. The fact that this error only happens once at the start suggests that it might have something to do with the way the RadUploadProgressHandler component is registered with the web server or how it is initialized.

Has anyone else here got the similar error? Any suggestions will be appreciated. Thanks.


Kate
Telerik team
 answered on 15 Mar 2012
3 answers
125 views
Hi sir,
Iam using Radscheduler for my batch planner...In Time line View Appointment is showing in wrong slot as shown in attachment
batch no 143 starting from 6th  december but in timeline view appointment is showing from november Where as in other views i.e day view,month view... etc appointment is showing correctly.i traced it in appointment data bound event using debugger ...the appointment start time is showing correctly...but not dispalying correctly(only in timeline view) below is the code i written.


<telerik:RadScheduler runat="server" ID="RadScheduler1"  SelectedDate="01/01/2011" al <br>        SelectedView="TimelineView" DayEndTime="19:00:00" DataKeyField="BatchNo" DataDescriptionField="BatchNo" <br>        DataStartField="StartDate" DataEndField="EndDate" DataSubjectField="StartDate" <br>            OverflowBehavior="Expand" DataSourceID="DetailsDataSource" Height="" ReadOnly="true"><br>            <AdvancedForm Modal="false" /><br>             <AppointmentTemplate><br>            <asp:Label ID="Label2" Text="BatchNo:" runat="server"><%#  Eval("Description")%></asp:Label>&nbsp;&nbsp;<br>            <asp:Label ID="EndDate" Text="StartDate:" runat="server"><%#  Eval("Start").ToString().Split(' ')[0] %></asp:Label>&nbsp;&nbsp;<br>            <asp:Label ID="lblEnddate" runat="server"></asp:Label><br>             </AppointmentTemplate><br>            <ResourceTypes><br>                <telerik:ResourceType KeyField="BatchNo" Name="Batch" ForeignKeyField="BatchNo" TextField="BatchNo"<br>                    DataSourceID="DetailsDataSource"/><br>            </ResourceTypes><br>            <TimelineView UserSelectable="true" HeaderDateFormat="MMM-yyyy" ShowResourceHeaders="true" ShowInsertArea="false"  ReadOnly="true" SlotDuration="31:00:00"  ColumnHeaderDateFormat="MMM" NumberOfSlots="12" GroupBy="Batch" GroupingDirection="Vertical" /><br>            <MultiDayView UserSelectable="true" /><br>            <DayView UserSelectable="true" /><br>            <WeekView UserSelectable="true" /><br>            <MonthView UserSelectable="true" /><br>        </telerik:RadScheduler>
related events
protected void Page_Load(object sender, EventArgs e)<br>    {<br>        ClientScript.RegisterStartupScript(this.GetType(), "abc", "pageload();", true);//Registering client side page load function<br>        RadScheduler1.AppointmentDataBound += new Telerik.Web.UI.AppointmentDataBoundEventHandler(RadScheduler1_AppointmentDataBound);<br>        RadScheduler1.AppointmentCreated += new Telerik.Web.UI.AppointmentCreatedEventHandler(RadScheduler1_AppointmentCreated);<br>        RadScheduler1.SelectedDate = DateTime.Now.Date;<br>    }<br><br>    void RadScheduler1_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)<br>    {<br>        if (e.Appointment.ID != null)<br>        {<br>            Label Enddate = e.Container.FindControl("lblEnddate") as Label;<br>            Enddate.Text = "End date:" + e.Appointment.End.AddDays(-1).ToShortDateString();<br>        }<br>    }<br><br>   void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e)<br>    {<br>        if (e.Appointment.ID != null)<br>        {<br>            e.Appointment.ToolTip = "StartDate:" + e.Appointment.Start.ToShortDateString() + " " + "EndDate:" + e.Appointment.End.ToShortDateString();<br>          //  e.Appointment.End = e.Appointment.End.AddDays(1);<br>        }<br>    }
please give me a solution for this ASAP as it is already in production


Thanks
Rajesh


  
Plamen
Telerik team
 answered on 15 Mar 2012
4 answers
87 views
Hey folks,

Why is it in my scheduler project that there's always a cell on the month view calendar that is styled as today's date, even if I am not on the correct month?

For example, I am viewing July 2011 and July 18th is styled as today's date.

For some reason the TodayCell class is getting assigned to some cells incorrectly.

I am using the 2011.1.413.40 DLL.

regards,
Plamen
Telerik team
 answered on 15 Mar 2012
3 answers
227 views

Hi I am using radscheduler on my .net application,

I wanted to apply different color on my appointments depending upon the customized status field ,
RadScheduler_ AppointmentDataBound is applying same color on all the appointmets.

Below is my code:

protected

void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)

 

{

appointment = GetAppointments();

foreach (DataRow row in appointment.Rows)

{

statusValue = row["Status"].ToString();

switch (statusValue)

{

    case "1"
        
e.Appointment.BackColor = Color.Blue;

    break;

    case "2"
        e.Appointment.BorderColor = Color.Black;
    break;

    case "3":
        
e.Appointment.ForeColor = Color.DarkKhaki;

    break;

    default:
   break;

}

}

}


Can you please help me on that ?
Thanks.


Plamen
Telerik team
 answered on 15 Mar 2012
1 answer
114 views
Dear Support,

I try to attach a second events to the AjaxManager by using jQuery:

$('<%= this.AjaxManager.ClientID %>').on('OnRequestStart', function(sender, args)
{                   
   //Do something
});

 or (I thinks it's 'RequestStart')
$('<%= this.AjaxManager.ClientID %>').on('RequestStart', function(sender, args)
{                   
   //Do something
});

but the addition event will not be fired?

Why?

Thanks in advance!

Christian
Richard
Top achievements
Rank 1
 answered on 15 Mar 2012
2 answers
1.9K+ views
Hello,

Is it possible to count the number of child nodes of a node and display it on the parent node?

I tried this: http://www.telerik.com/help/aspnet/treeview/tree_show_child_count.html, but it only counts the number of the first level child nodes… What I need is to count all level nodes and display it next to the parent node text. Somehing like this:
-root (8)
---node_1 (4)
------node_1.1 (2)
----------node_1.1.1 (0)
----------node1.1.2 (0)
------node_1.2 (0)
---node_2 (4)
------node_2.1 (0)
------node_2.2 (1)
----------node_2.2.1 (0)
------node_2.3 (0)

How can I make this?

Thanks
Borralis
Top achievements
Rank 1
 answered on 15 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?