Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
281 views
Can I know when was the latest version of RadTreeView posted?CssClass is being applied but where as SelectedCssClass and HoveredCssClass is not being applied even though .rtln is given beside the class specified in the stylesheet.

Can anyone help?
Veselin Vasilev
Telerik team
 answered on 16 Jul 2009
3 answers
154 views
I implemented this Month Year picker and it works great.  Does exactly what I need.

However, the problem I am running into is this, when a postback occurs, the month/year functionality is lost and the raddatepicker returns to the default settings.  Does anyone know how to keep those settings after a postback or how to call the function 

SetCalendarTable() each time a postback occurs.  I tried numerous ways to call that function with no success.

I have two of these calendars in a panel that is ajaxified.  Don't know if that makes any difference.

Thanks,
Zach

Martin
Telerik team
 answered on 16 Jul 2009
1 answer
110 views
Hi
 i already submitted many request for this ajax method is not working,
breakpoint is not going into the method which is given below

protected

 

void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

 

{

 

// RadScheduler1.ShowInlineInsertForm(ParseJavaScriptTime(e.Argument).AddHours(8));

 

RadScheduler1.SelectedView =

SchedulerViewType.DayView;

 

RadScheduler1.SelectedDate = ParseJavaScriptTime(e.Argument);

}

 

private DateTime ParseJavaScriptTime(string jsTime)

 

{

 

DateTime result = DateTime.ParseExact(jsTime, "yyyyMMddHHmm", null, DateTimeStyles.AssumeUniversal);

 

 

return result.ToUniversalTime();

 

}


inistialized

 

this.RadAjaxManager1.AjaxRequest += new RadAjaxManager.AjaxRequestDelegate(RadAjaxManager1_AjaxRequest);

 

 

this.RadAjaxManager1.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager1_AjaxRequest);

 


i tested both initialized but not working

regards

imtiyaz
 
Veselin Vasilev
Telerik team
 answered on 16 Jul 2009
3 answers
193 views
I read in the documentation that "Every collapse of a node causes a postback if the ExpandMode is set to ServerSide." Is there a way of canceling the postback? I tried this javascript function but it doesn't work.

(I set the ExpandMode on the c# code behind that isn't shown here)

  function ClientNodeCollapsed(sender, eventArgs) {
       var node = eventArgs.get_node();
       
       if (node)
       {
            node.collapse();
       }
    return false;
   }
  
.aspx side:

                <telerik:RadTreeView id="TreeVw" runat="server" OnClientNodeClicked="ClientNodeClicked" OnClientNodeCollapsed="return ClientNodeCollapsed(sender, eventArgs)"

This results in a javascript error. Can anyone help?
Veselin Vasilev
Telerik team
 answered on 16 Jul 2009
1 answer
119 views
Hi All,

I having some issues while updating Appointments using ObjectDataSource on Rad Scheduler.

Due to some reason, the appointment start,end time or resource details are not changed on the Scheduler, even though the underlaying database has been updated. Forexample If i move an appointment from one resouce to another, the resource details does not change. Only after I refresh the page, the page displays the accurate details.
I also tried rebinding the Scheduler after calling ObjectDataSource.Update() function under the Scheduler Appointment Update event, so that the system can retrieve the latest data from the database, but nothing happens.

Does anyone know what is causing this problem.

Here is my Appointment_Update event

 protected void rsSchedule_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
        {
          
            // My Custom DTO
            Activity activity = new Activity();
            activity.Id = e.ModifiedAppointment.ID.ToString()
            double duration = e.ModifiedAppointment.Duration.Hours;
            duration = duration + Convert.ToDouble(e.ModifiedAppointment.Duration.Minutes)/60;
            activity.Duration = duration;
            activity.StartDateTime = e.ModifiedAppointment.Start;
            activity.TechId = e.ModifiedAppointment.Resources[0].Key.ToString();

           odsSchedule.UpdateParameters.Clear();
           odsSchedule.UpdateParameters.Add(new Parameter("jobId", TypeCode.Int32, activity.Id));
           odsSchedule.UpdateParameters.Add(new Parameter("duration", TypeCode.Double, activity.Duration.ToString()));
           odsSchedule.UpdateParameters.Add(new Parameter("newDateTime", TypeCode.DateTime, activity.StartDateTime.ToString()));
           odsSchedule.UpdateParameters.Add(new Parameter("techCode", TypeCode.String, activity.TechId));

           odsSchedule.Update();


         }
 
Thanks in advance,
Haroon
Peter
Telerik team
 answered on 16 Jul 2009
1 answer
136 views
Hi
I ahve a grid .
I want to bind this grid woth the help of Datatables.

on Load grid will be empty.
after click a button which is outside the grid,a popup will open and in this popup i have a radcombobox.
i will select  an item and will click on the add button.
the selected item should be added to the grid  with five columns.
the first column should be the item selected and remaining columns should be blank.
no when i added this row there will be a link corresponding to this row.i will click on that link a new popup will open and that popup containds grid ,iwill select some rows from the grid and will click on the add button.
the selected rows should be added in the detailtable of the grid.
Pleas help me in this.

THNAKS IN ADVANCE
Veli
Telerik team
 answered on 16 Jul 2009
4 answers
144 views
Hello.

How can I programatically change PegerText in "NextPrevAndNumeric" mode?
I know I should use PagerTextFormat property.
But the nothing is happaned when I change it.
For example I want to change text "91 items in 19 pages" on "91 #items in# 19 #pages#  "
See link http://www.telerik.com/help/aspnet-ajax/grdpageritem.html

Thank you.
Alex R.
Top achievements
Rank 1
 answered on 16 Jul 2009
1 answer
147 views
Hi,

I was wondering if anyone could help with the issue I'm having. If I have varying dock heights in horizontal orientation, and I reduce the size of the browser window, the docks wrap around to the next line, but aren't flushed against the dock directly above it i.e. there's additional vertical spacing.

I could obviously float the docks to position them myself, but docking them is so much neater and requires less effort for the user.

Thanks
Mark

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="dockexample.aspx.vb" Inherits="dockexample" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
<style type="text/css">   
.RadDock 
    margin: 0px 5px 5px 0px !important; 
</style> 
<title></title
 </head> 
<body> 
    <form id="form1" runat="server">    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
               
       <telerik:RadDockLayout runat="server" ID="RadDockLayout1" StoreLayoutInViewState="true"
       <telerik:raddockzone runat="server" id="RadDockZone1" Width="100%" Orientation="Horizontal" BorderStyle="None"
         <telerik:RadDock ID="RadDock1" Title="Dock 1" runat="server" Width="220px" Skin="Vista" DockMode="Docked" DefaultCommands="None"
            <ContentTemplate> 
                <div style="padding: 11px;"
                    You can drag this object through the titlebar, no custom handle is defined. 
                    You can drag this object through the titlebar, no custom handle is defined.</div> 
            </ContentTemplate> 
        </telerik:RadDock> 
         
        <telerik:RadDock ID="RadDock2" Title="Dock 2" runat="server" Width="220px" Skin="Vista" DockMode="Docked" DefaultCommands="None"
            <ContentTemplate> 
                <div style="padding: 11px;"
                    You can drag this object through the titlebar, no custom handle is defined.<br /> 
                    You can drag this object through the titlebar, no custom handle is defined.<br /> 
                     You can drag this object through the titlebar, no custom handle is defined.<br /> 
                    You can drag this object through the titlebar, no custom handle is defined.<br /> 
                    You can drag this object through the titlebar, no custom handle is defined.<br /></div
            </ContentTemplate> 
        </telerik:RadDock> 
         
        <telerik:RadDock ID="RadDock3" Title="Dock 3" runat="server" Width="220px" Skin="Vista" DockMode="Docked" DefaultCommands="None"
            <ContentTemplate> 
                <div style="padding: 11px;"
                    You can drag this object through the titlebar, no custom handle is defined. 
                    You can drag this object through the titlebar, no custom handle is defined.</div> 
            </ContentTemplate> 
        </telerik:RadDock> 
         
        <telerik:RadDock ID="RadDock4" Title="Dock 4" runat="server" Width="220px" Skin="Vista" DockMode="Docked" DefaultCommands="None"
            <ContentTemplate> 
                <div style="padding: 11px;"
                    You can drag this object through the titlebar, no custom handle is defined.<br /> 
                    You can drag this object through the titlebar, no custom handle is defined.<br /> 
                    You can drag this object through the titlebar, no custom handle is defined.<br /> 
                    You can drag this object through the titlebar, no custom handle is defined.</div> 
            </ContentTemplate> 
        </telerik:RadDock> 
         
        <telerik:RadDock ID="RadDock5" Title="Dock 5" runat="server" Width="220px" Skin="Vista" DockMode="Docked" DefaultCommands="None"
            <ContentTemplate> 
                <div style="padding: 11px;"
                    You can drag this object through the titlebar, no custom handle is defined.</div> 
            </ContentTemplate> 
        </telerik:RadDock> 
         </telerik:raddockzone> 
        </telerik:RadDockLayout> 
    </form> 
</body> 
</html> 
Jim
Top achievements
Rank 1
 answered on 16 Jul 2009
1 answer
183 views
hi ,
    i had create one editable grid with popup edit template. But i am Unable to increase the width of the popup width.please help.

regards,
Bala.K
Princy
Top achievements
Rank 2
 answered on 16 Jul 2009
3 answers
256 views
I am wanting to have dock With Scroll and With Out scroll as configurable.  I have designed a Page to configure this height, width and scroll settings for each dock items. This docks are created dynamically during run time and the content is shown in the iframe. The height, width and scroll values is applied to both iframe and dock control as per this configurations but could not achieve the desired results.

as suggested in one of the forums, i included the following code to avoid scrolling for a particular dock.

dock.ContentContainer.Style.Add(HtmlTextWriterStyle.Overflow, "hidden"); 

The above code works fine but when we drag the dock, the scroll appears again. as suggested in another forum, i added the following overriding rdcontent code in ASPX but it makes all the docks as non scrollable.

<style type="text/css">    
    .rdContent  
    {     
        overflow: hidden !important;  
    }   
</style> 
Pero
Telerik team
 answered on 16 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?