Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
what i am trying to do is create a multi tiered radgrid that looks similart o this concept

the 1st line of grid would hold Personnel information, then I want to make 3 sub grids of this that are dental, medical and admin.
Then under these it would hold the records for those categories, is this type of grid possible

Personel information   1level
    Dental  Count of records and ID   2nd level
        All Dental records asssociated with personnel   3rd level
    Medical Count of records and Id   2nd level
        all medical records associated with personnel   3rd level
    Admin Count of records and ID   2nd level
         all admin records   3rd level
Fortune
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
88 views
Hi,

How to set the height of the grid row so that each row can show 2+ lines? No need to be determined the height dynamically.


Thanks,
Elton
Gimmik
Top achievements
Rank 1
 answered on 09 Jun 2011
5 answers
327 views
Hi

I have a ComboBox filter in a grid that has an 'All' state, which is the default.

I have written some client side code to invoke a filter operation on my grid, and it filters
just fine if I select.

However after the postback occurs my Combo has the 'All' item selected.

So I can never trigger a client side event to revert my grid to unfiltered.

Helpppppppp
Gimmik
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
95 views
I have a project were we have the RadAjaxManager on the MasterPage. The MasterPage declares functions that are attached to the RadAjaxManager's OnRequestStart and OnResponseEnd client events.

No problem so far.

On an individual page in the project I find myself needing to assign a function to the OnResponseEnd event. If I do this, I'm going to lose the regular handler for that page, aren't I?

Is there a properly defined way of chaining these handlers?

-- 
Stuart
Fortune
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
50 views
Hi guy,

I have a little problem. I'm using a hierarchy grid. The "parent" grid show the roles in my table aspnet_Roles. The nested grid show the user related to the role. For populating my grid, I'm using a dataSet. My problem is that I don't know how to delete the relation between a user and a role using a context menu. I tried the seconde example on this page, but I still have some problems. In fact, this is how I do :

string[] args = Request.Form["radGridClickedRowIndex"].Split('_');
int indice = Convert.ToInt32(args[args.Length - 1]);
string UId = Request.Form["radGridClickedTableId"];
 
GridTableView tableView;
 
tableView = this.Page.FindControl(UId) as GridTableView;
string userName = ((tableView as GridTableView).Items[indice] as GridDataItem)["UserName"].Text;
string roleName = ((tableView as GridTableView).Items[indice] as GridDataItem)["RoleName"].Text;
 
Roles.RemoveUserFromRole(userName, roleName);
 
tableView.Rebind();


When I tried it, this message appears :  Cannot find a cell bound to column name 'RoleName'

The only way I find to correct this problem is to add the column RoleName to the nested grid, but I don't really like showing the name of the role for each user. So, is it possible to find to which row the nested grid is related and access his data (in my case, RoleName). 

Thank you,
David Lefaivre-B.
David
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
64 views
Application Environment: .net Framework 4.0, C#, ASP.net, Telerik RadControls for ASP.NET Ajax version 2010.3.1317.40.

We have been using the Treeview control in our application for a while. We load a lot of nodes in the Tree and in order to improve the performance we decided to use the PageAdapter to maintain the viewstate on the server instead of the client. It significantly improved the performance of the Tree but sometimes the Tree does not load on postbacks and refresh. We have the Tree in the leftpane of a frame set and on postbacks and refresh the the left pane stays blank. On refresh it loads again fine. It does not happen consistently and there is no set sequence of events to replicate the behavior. I was wondering if anyone has experienced this behavior before. Please let us know of any solutions, suggestions or ideas.

Thanks
Som
Nikolay Tsenkov
Telerik team
 answered on 09 Jun 2011
1 answer
224 views
I got 3 radiobuttons who all are linked to execute the same OnCheckedChanged command when they are selected, here is my code:
<asp:RadioButton ID="RadioButtonWork" runat="server" Checked="true" GroupName="Invoice" AutoPostBack="true" OnCheckedChanged="RadioButtonsInvoice_OnCheckedChange" />
<asp:RadioButton ID="RadioButtonInvoice" runat="server" Checked="false" GroupName="Invoice" AutoPostBack="true" OnCheckedChanged="RadioButtonsInvoice_OnCheckedChange" />
<asp:RadioButton ID="RadioButtonHome" runat="server" Checked="false" GroupName="Invoice" AutoPostBack="true" OnCheckedChanged="RadioButtonsInvoice_OnCheckedChange" />

They do work as they should when i have put my RadAjaxManager to not enable Ajax.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="false">...</telerik:RadAjaxManager>

Rad Ajax settings
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadioButtonWork">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="PlaceHolderInvoiceAddress" />
                <telerik:AjaxUpdatedControl ControlID="PlaceHolderHomeAddress" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadioButtonInvoice">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="PlaceHolderInvoiceAddress" />
                <telerik:AjaxUpdatedControl ControlID="PlaceHolderHomeAddress" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadioButtonHome">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="PlaceHolderInvoiceAddress" />
                <telerik:AjaxUpdatedControl ControlID="PlaceHolderHomeAddress" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

But when i enable ajax, the default radiobutton (checked="true") never fire the event. Why is this ?
We are using Telerik.Web.UI version 2011.1.315.40.
Also worth mentioning is that this is inside a usercontrol, thats why the proxy control is used and not a managager for ajax.
Fortune
Top achievements
Rank 1
 answered on 09 Jun 2011
2 answers
136 views

Hi All,

I actually have two questions:

How can I extend the width of the column in my RadGridview. Also, I only have one item in my gridview.I want to see the vertical lines, but i don't see any. may be because there is only one item in the whole gridview. Is it possible that I can see  vertical line in my gridview. I have gridLines set to both

Thanks.

Anjali
Top achievements
Rank 1
 answered on 09 Jun 2011
3 answers
126 views
Hello,
I am doing all my data handling in the code behind. If I create a daily recurring appointment the parent RecurrenceRule gets updated correctly and I end up with, for example: DTSTART:20110606T073000Z\n\rDTEND:20110606T083000Z\n\rRRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR\n\rEXDATE:20110609T073000Z

I can edit everything about the series except removing the the exceptions.

I notice that in the examples resetting exceptions reflects immediately in the UI, before clicking save. For me, this does not happen. It says Working... Then it says Done.. But the deleted day does not return. And when I click Save, in the code behind, the AppointmentUpdate event, e.ModifiedAppointment.RecurrenceRule shows the exceptions I was trying to remove.

Is there an event server or client side that I need to be handling?

Here is my aspx and codebehind:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="CRMScheduler.ascx.vb" Inherits="CRM_TestClient.CRMScheduler" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %>
 
<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="RadAjaxManager1" />
            </UpdatedControls>
        </rad:AjaxSetting>
        <rad:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="Scheduler" />
            </UpdatedControls>
        </rad:AjaxSetting>
        <rad:AjaxSetting AjaxControlID="Scheduler">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="Scheduler" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
</rad:RadAjaxManager>
 
<rad:RadScheduler runat="server" ID="Scheduler" Width="753px" Height="600px" Skin="Vista"
  EnableExactTimeRendering="true" StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true"
  DataKeyField="Schedule_id" DataStartField="Start" DataEndField="End" DataSubjectField="Subject" DataDescriptionField="Description" DataRecurrenceField="RecurrenceRule"
  DataReminderField="Reminder" DataRecurrenceParentKeyField="RecurrenceParentSchedule_id" AppointmentContextMenuSettings-EnableDefault="false" TimeSlotContextMenuSettings-EnableDefault="false" TimelineView-UserSelectable="false" >
    <AdvancedForm Modal="true"  />
 
</rad:RadScheduler>


Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports Telerik.Web.UI
 
Public Class CRMScheduler
    Inherits System.Web.UI.UserControl
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            ' 2011-06-03 10:00:00
            Scheduler.SelectedDate = Now()
            Scheduler.SelectedView = SchedulerViewType.WeekView
            Scheduler.DayStartTime = New TimeSpan(7, 0, 0)
            Scheduler.DayEndTime = New TimeSpan(20, 0, 0)
            Scheduler.WorkDayStartTime = New TimeSpan(8, 0, 0)
            Scheduler.WorkDayEndTime = New TimeSpan(18, 0, 0)
            Scheduler.FirstDayOfWeek = DayOfWeek.Monday
            Scheduler.LastDayOfWeek = DayOfWeek.Saturday
            BindSchedule()
        End If
    End Sub
 
    Private Sub BindSchedule()
        Dim ds As List(Of objCRM.Schedule) = objCRM.Schedule.SelectScheduleByDealer(Session("Dealer_id"))
        For i As Int32 = 0 To ds.Count - 1
            If ds(i).RecurrenceRule = "" Then
                ds(i).RecurrenceRule = Nothing
            End If
        Next
        Scheduler.DataSource = ds
        Scheduler.DataBind()
    End Sub
 
    Private Sub Scheduler_AppointmentDataBound(sender As Object, e As Telerik.Web.UI.SchedulerEventArgs) Handles Scheduler.AppointmentDataBound
        Dim RecurrenceRule As String = e.Appointment.RecurrenceRule
        If e.Appointment.RecurrenceParentID = -1 Then
            e.Appointment.RecurrenceParentID = Nothing
        End If
 
    End Sub
    Private Sub Scheduler_AppointmentDelete(sender As Object, e As Telerik.Web.UI.AppointmentDeleteEventArgs) Handles Scheduler.AppointmentDelete
        objCRM.Schedule.DeleteSchedule(e.Appointment.ID)
        BindSchedule()
    End Sub
    Private Sub Scheduler_AppointmentInsert(sender As Object, e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles Scheduler.AppointmentInsert
        Dim User_id As Int32 = -1
        Dim Subject As String = e.Appointment.Subject
        Dim Description As String = e.Appointment.Description
        Dim Start As String = e.Appointment.Start.ToString
        Dim [End] As String = e.Appointment.End.ToString
        Dim RecurrenceRule As String = e.Appointment.RecurrenceRule.ToString
        Dim RecurrenceParentSchedule_id As String = IIf(e.Appointment.RecurrenceParentID Is Nothing, -1, CInt(e.Appointment.RecurrenceParentID))
        Dim Reminder As String = e.Appointment.Reminders.ToString
        Dim s As objCRM.Schedule = New objCRM.Schedule(Session("Dealer_id"), User_id, Subject, Description, Start, [End], RecurrenceRule, RecurrenceParentSchedule_id, Reminder)
        BindSchedule()
    End Sub
    Private Sub Scheduler_AppointmentUpdate(sender As Object, e As Telerik.Web.UI.AppointmentUpdateEventArgs) Handles Scheduler.AppointmentUpdate
 
        Dim s As objCRM.Schedule = New objCRM.Schedule(e.Appointment.ID)
 
        ' Dim User_id As Int32 = -1
        s.Subject = e.ModifiedAppointment.Subject
        s.Description = e.ModifiedAppointment.Description
        s.Start = e.ModifiedAppointment.Start.ToString
        s.[End] = e.ModifiedAppointment.End.ToString
        s.RecurrenceRule = e.ModifiedAppointment.RecurrenceRule.ToString
        s.RecurrenceParentSchedule_id = IIf(e.ModifiedAppointment.RecurrenceParentID Is Nothing, -1, CInt(e.ModifiedAppointment.RecurrenceParentID))
        s.Reminder = e.ModifiedAppointment.Reminders.ToString
 
        s.Update()
 
        BindSchedule()
    End Sub
    Private Sub Scheduler_NavigationCommand(sender As Object, e As Telerik.Web.UI.SchedulerNavigationCommandEventArgs) Handles Scheduler.NavigationCommand
        BindSchedule()
    End Sub
 
End Class
Dan Lehmann
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
93 views
Hi,

I have a scenario where professional log in into the site and he adds his available time slots during the day. The client will log in to the site and he sees the professional available slots and client books an appointment with the professional based on available slot. Is it possible to achieve this scenario using telerik RadScheduler. We are looking for two way i.e. professional adds the available slot timings and client sees the professional availability and books the appointment.

Can you please advice this scenario is possible to implement by using telerik RadScheduler. If you have any samples or demos please provide.

Regards,
Sarath
Plamen
Telerik team
 answered on 09 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?