Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views

Hi:

  In my current project, a scheduler control is displayed in the page. However, it seems the page will be showed in more than 5 seconds. Hence i set the scheduler as invisible initially and then set it visible in the runtime. But the control will be showed 3-5 seconds after the scheduler.visible = true and the relevant databinding operation.

  Now what i want to know is which event will be triggered after the scheduler is showed or the end of the databinding operation. It seems the OnClientDataBound and OnDataBound are not available.

   Anyone has idea about it?

Peter
Telerik team
 answered on 27 Nov 2009
6 answers
224 views
I have seen many post on this issue but I cannot get the dialog boxs to show properly. I have added all the correct settings in Webconfig :

<httpHandlers> 
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> 
      <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>  
    </httpHandlers> 
  </system.web> 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <handlers> 
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" /> 
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" /> 
    </handlers> 
  </system.webServer> 


Here is my Radeditor code can anyone tell me why I can't get any dialogs working?
  <EditFormSettings EditFormType="Template">  
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
        <FormTemplate> 
              
            <telerik:RadEditor ID="Radeditor1" Runat="server"   
                Content='<%# Eval("Document") %>' Height="600px" Width="850px" viewpaths="~/Templates" uploadpaths="~/Templates" > 
                <Content> 
</Content> 
            </telerik:RadEditor> 
            <br /> 
            <asp:Button ID="Button1" runat="server" Text="Accept" CommandName="update"   
                onclick="Button1_Click" /> 
            <asp:Button ID="Button2" runat="server" Text="Cancel" CommandName="cancel"  /> 
        </FormTemplate> 
    </EditFormSettings> 


Robert
Top achievements
Rank 1
 answered on 27 Nov 2009
4 answers
234 views
I have a splitter and divided vertically and placed two radwindows between them to use as popups. The left is used as a master pane and the right as a details pane.
My problem!
The details pane does not allow positioning of the radwindow at left :0px Top: 0px SEE image
I am not getting the gap between both panes to be 2px no matter how hard I try!!.
Any help in solving this is most welcomed.

My code is below:

<telerik:RadSplitter
      ID="RadSplitter1"
      runat="server"
      CssClass="myaccountsplitter"
      Width="860px"
      Height="622px"
      PanesBorderSize="2"
      Skin="">
    <telerik:RadPane
        ID="masterpane"
        runat="server"
        BackColor="#749F57"
        Width="30%">
        <telerik:RadMenu
          ID="RadMenu1"
          runat="server"
          Flow="Vertical"
          Width="255px"
          Height=""
          Skin="Forest"
          BackColor="#749F57" >
        </telerik:RadMenu>
        <asp:Image
          ID="Image1"
          runat="server"
          ImageUrl="~/Images/3DObjects/3FOLD2.jpg" />
    </telerik:RadPane>
    <telerik:RadPane
          ID="detailspane"
          runat="server"
          CssClass="myaccountmargin"
          BackColor="#999966"
          Width="70%">

    </telerik:RadPane>
  </telerik:RadSplitter>
  <telerik:RadWindowManager
            ID="RadWindowManager1"
            runat="server"
            ShowContentDuringLoad="False"
            Skin="Forest"
            Left="0px"
            Top="0px"
            InitialBehaviors="Maximize"
            KeepInScreenBounds="True"
            RestrictionZoneID="ctl00_ContentPlaceHolder1_detailspane"
            Behaviors="None">
          <Windows>
             <telerik:RadWindow
                  ID="RadWindow1"
                  runat="server"
                  VisibleOnPageLoad="true"
                  NavigateUrl="http://www.css3.info">
             </telerik:RadWindow>
             <telerik:RadWindow
                  ID="RadWindow2"
                  runat="server"
                  VisibleOnPageLoad="true"
                  NavigateUrl="http://www.dhtmlgoodies.com">
             </telerik:RadWindow>
             <telerik:RadWindow                   
                  ID="RadWindow3"
                  runat="server"
                  VisibleOnPageLoad="true"
                  NavigateUrl="http://www.lightflowtech.com">
             </telerik:RadWindow>
          </Windows>
  </telerik:RadWindowManager> 

bigrich legend
Top achievements
Rank 1
 answered on 27 Nov 2009
1 answer
122 views
Hi there!
I was very excited when I heard about the RTL support for RadSplitter. unfortunately, I'm not able to use this feature properly!
It seems like Horizental orientation works fine but when I set orientation to vertical, splitbars are locked and even the collapse button is hidden!
I couldn't find any documentation about RTL support for Splitter, I did this by  adding it to a panel with RTL attribute for its Direction property, are there any properties that has  to  be set in order to do this?
Thank you.
Svetlina Anati
Telerik team
 answered on 27 Nov 2009
5 answers
122 views
Hi everybody!

What I need to do is to be able to copy an appointment in the scheduler, using drag and drop.

I've created a very simple JS function to do that. It should make a copy of the dragged appointment and insert it in the scheduler, and by not calling the eventArgs.set_cancel(true) the initial appointment would be updated to the new timeslot:

function RadScheduler_ClientAppointmentMoveEnd(sender, args) { 
        var Appointment = args.get_appointment(); 
        sender.insertAppointment(Appointment); 
    } 

The problem is that the resources of the appointment are not sent together with the appointment back to the server, and when I'm trying to access a resource in my custom provider:

public override void Insert(RadScheduler owner, Appointment appointmentToInsert) 
{ 
//some other code here 
int TaskID = (int)appointmentToInsert.Resources.GetResourceByType("Task").Key; 
} 

I'm getting a NullReferenceException.

On the client side I've checked the properties of the appointment before inserting it and it does indeed hold the resources.
On the server however, the resources seem to disapperar, although the other properties are sent correctly.

How should I solve this problem?

Thanks,
Stefan


Peter
Telerik team
 answered on 27 Nov 2009
5 answers
123 views
can some on fix the spelling mistake in the topic "preserve"

When i drag'n'drop appointments in the MonthView the date and duration is correct but the start time is set to mid-night. What am I doing wrong?

protected void AppointmentUpdate(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e) 
{ 
    // The problem is here: 
    e.Appointment.Start; // 08:00 
    e.Appointment.End; // 10:00 
    e.ModifiedAppointment.Start; // 00:00 (the date has changed but the time is wrong) 
    e.ModifiedAppointment.End; // 02:00
}

Peter
Telerik team
 answered on 27 Nov 2009
9 answers
267 views

Here is what I have:
I have a radgrid and in one of its column I show another radgrid. Parent(StudentsGrid) and Child(AttendanceGrid). For each student record there can be more than one attendance. I provide a checkbox in attendancegrid so the user can delete a particular attendance. I would like to get the selected attendance records. below is the code that I have until now. I would like to do this on client side not on server side.

pls let me know how to solve this.

 

 

 

 

function rowSelected() {

 

 

 

      var grid = $find("<%= rgStudents.ClientID %>");

 

 

      var masterTable = grid.get_masterTableView();

 

 

      var rows = masterTable.get_dataItems();

 

 

      for (var i = 0; i < rows.length; i++) {
             var
cell = masterTable.getCellByColumnUniqueName(rows[i], "Attendance");

 

              // how to get the reference to attendance radgrid and loop through its checked items????
}

 

 

 

 

 


<telerik:RadGrid ID="rgStudents" runat="server" AutoGenerateColumns="false">                     
            <MasterTableView DataKeyNames="StudentId">
                <Columns>     
                   
                    <telerik:GridBoundColumn DataField="StudentId" UniqueName="StudentId" Visible="false" />
                    <telerik:GridBoundColumn DataField="FName" UniqueName="FName" HeaderText="First Name" />
                    <telerik:GridBoundColumn DataField="LName" UniqueName="LName" HeaderText="Last Name" />                   
                     <telerik:GridTemplateColumn HeaderText="Attendance" UniqueName="Attendance">
                        <ItemTemplate>
                            <telerik:RadGrid ID="rgAttendance" runat="server" AutoGenerateColumns="false" AllowMultiRowSelection="true" >
                               <ClientSettings>
                                        <Selecting AllowRowSelect="true" />
                                         <ClientEvents OnRowSelected="rowSelected" OnRowDeselected="rowDeselected" />                               
                               </ClientSettings>
                               <MasterTableView DataKeyNames="AttendanceID">
                                   
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="AttendanceId" UniqueName="AttendanceId" Visible="false" />                                       
                                        <telerik:GridBoundColumn DataField="CourseNo" HeaderText="CourseNo" />
                                        <telerik:GridBoundColumn DataField="Attendance" HeaderText="Date" />                                       
                                        <telerik:GridClientSelectColumn UniqueName="checkboxDelete"/>
                                    </Columns>
                               </MasterTableView>                               
                            </telerik:RadGrid>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>             
                </Columns>       
            </MasterTableView>
        </telerik:RadGrid>

Pavlina
Telerik team
 answered on 27 Nov 2009
5 answers
286 views
I am attempting to prevent a RadDock from being dragged outside of a div containing three RadDockZones. The reason I am trying to do so is that I want RadDocks to be confined to a particular region on the page without being able to drag off that region.

The PortalSite demo shows that the current implementation doesn't prevent you from dragging RadDocks into infinity off the right and bottom hand of your page, allowing the user to scroll well beyond the page. If the dock could be confined to a div area then this could be prevented and could also be useful for other scenarios, though I would accept not being able to drag the docks infinitely off the page as Google IG does.

I assume confining the docks is a question of constantly evaluating the div's position on the OnClientDockPositionChanging event and if the area of the dock is outside the boundary of the current div's positioning, then we'd have to find a way to prevent the position change without exiting the drag, but this would likely greatly affect performance.
Pero
Telerik team
 answered on 27 Nov 2009
1 answer
456 views
I try to use a custom DataTable for the datasource. But i got no error, but nothing are displayed.

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
 
        Dim dtTable As New DataTable  
        Dim dtRow As DataRow  
 
        dtTable.Columns.Add(New DataColumn("ID", System.Type.GetType("System.Int32")))  
        dtTable.Columns.Add(New DataColumn("Title", System.Type.GetType("System.String")))  
        dtTable.Columns.Add(New DataColumn("URL", System.Type.GetType("System.String")))  
        dtTable.Columns.Add(New DataColumn("ParentID", System.Type.GetType("System.Int32")))  
        dtTable.TableName = "SiteMap" 
        dtRow = dtTable.NewRow  
        dtRow.Item("ID") = 1  
        dtRow.Item("Title") = "Entreprise" 
        dtRow.Item("URL") = System.DBNull.Value  
        dtRow.Item("ParentID") = System.DBNull.Value  
        dtTable.Rows.Add(dtRow)  
 
        dtRow = dtTable.NewRow  
        dtRow.Item("ID") = 2  
        dtRow.Item("Title") = "Test" 
        dtRow.Item("URL") = "" 
        dtRow.Item("ParentID") = 1  
        dtTable.Rows.Add(dtRow)  
 
 
        SiteMap1.DataSource = dtTable  
    End Sub 

    <telerik:RadSiteMap runat="server" ID="SiteMap1"  Skin="WebBlue" 
        ShowNodeLines="true" MaxDataBindDepth="2" DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Title" > 
        <LevelSettings> 
            <telerik:SiteMapLevelSetting Level="0">  
                <ListLayout RepeatColumns="3" AlignRows="true" /> 
            </telerik:SiteMapLevelSetting> 
        </LevelSettings> 
    </telerik:RadSiteMap> 

any suggestion?
Paul
Telerik team
 answered on 27 Nov 2009
5 answers
170 views
Hi, this my sql code:

SELECT     Customer.CustomerID, StateAfi.Icono, Customer.FirstName, Customer.Parentafi  
FROM       Customer INNER JOIN 
           StateAfi ON Customer.Stateafi = StateAfi.Stateafi   
           WHERE Parentafi>=@Parentafi or CustomerID=@Parentafi 

and my data:

CustomerID     parentafi
1                      NULL
2                      1
3                      2
4                      2
5                      2
6                      5

my problem is when i choose like this:

@Parentafi  =  2

my first row is CustomerID = 2 and his Parentafi = 1, not "Null" and always i see a message error, how i can fix this problem,  please thx!
Veselin Vasilev
Telerik team
 answered on 27 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?