Telerik Forums
UI for ASP.NET AJAX Forum
25 answers
825 views
I'm using The Q1 2009 Scheduler control with a Web Service data source.  I would like to pass some extra information to the GetAppointments web method that will determine which types of appointments are returned.  The only parameter of this method is of type SchedulerInfo and that object only has 2 properties: ViewStart and ViewEnd.  Is there a way to pass any additional information?  I would like to use the OnClientAppointmentsPopulating event to add more data to the Scheduler Info object.

Any ideas?

Thanks,
Dave
Plamen
Telerik team
 answered on 22 May 2013
1 answer
80 views
Hi,
This is possible using web services:
//RadScheduler Client side events
 function OnClientAppointmentsPopulating(sender, eventArgs) {
            debugger;
            eventArgs.get_schedulerInfo().physicianID = document.getElementById('PhysicianID1').value;
            eventArgs.get_schedulerInfo().visitStatus = status;
        }

in AppointmentSchedulerInfo class

    public int PhysicianID { get; set; }
    public string VisitStatus { get; set; }
    public AppointmentSchedulerInfo(ISchedulerInfo baseInfo, int physicianID,string visitStatus)
        : base(baseInfo)
    {
        PhysicianID = physicianID;
        VisitStatus = visitStatus;
    }
    public AppointmentSchedulerInfo()
    {
    }

how to achieve this functionality using WCF  ??

Please update me.

Regards,
Kuldeep
Plamen
Telerik team
 answered on 22 May 2013
1 answer
98 views
I am using radMenu inside a DIV tag and I am keeping text-align to right but menu still remains on the left of the DIV. Text inside the DIV aligns to right but menu keeps on left. I am using metro skin.
Princy
Top achievements
Rank 2
 answered on 22 May 2013
1 answer
59 views
MonthView:
on 21/05/2013, the color should be red (may be today is very important, need to flag the background color to red)
on 22/05/2013, the color should be green or other color.

Plamen
Telerik team
 answered on 22 May 2013
1 answer
104 views
I'm trying something very simple. I'm using a custom validator that needs to check the length of the RadEditor. I'm using Q1 2013.

Any ideas???

I get this:

Error: Unable to get value of the property 'get_html': object is null or undefined

From this:
alert($find("#<%=RE_ChangeComments.ClientID%>").get_html().length);
Princy
Top achievements
Rank 2
 answered on 22 May 2013
1 answer
169 views
I have an empty menu declaration and I add items to the menu client-side in response to various JavaScript events. I would like the menu items to expand up. I tried setting the DefaultGroupSettings ExpandDirection but the menu items still expand down. I have also tried setting the expand direction on the dynamically-added root menu items client-side, but I don't know if my syntax is right and this doesn't appear to work:

<telerik:RadMenu ID="rmTaskMenu"
                                                    runat="server"
                                                    EnableRoundedCorners="true"
                                                    EnableShadows="true"
                                                    style="position:absolute;"
                                                    OnClientItemClicked="TaskMenuClickedHandler_D">
                                        <DefaultGroupSettings ExpandDirection="Up" />
                                    </telerik:RadMenu>


function CreateItem_D(text, value) {
 
                var menuItem = new Telerik.Web.UI.RadMenuItem();
                menuItem.set_text(text);
                menuItem.set_value(value);
 
                return menuItem;
            }
 
function AddRootMenuItem_D(menu, category) {
 
      
                 var  categoryMenuItem = CreateItem_D(category, 'Category_' + category);
                 categoryMenuItem.get_attributes().setAttribute("category", category);
 
                 categoryMenuItem.get_groupSettings().set_expandDirection('Up'); // is this the correct syntax? If so, it isn't working
 
                 menu.get_items().add(categoryMenuItem);
                    
                return categoryMenuItem;
 
 
               
            }

Shinu
Top achievements
Rank 2
 answered on 22 May 2013
3 answers
225 views
Hi,

I am using View-Model binding in Rad-scheduler MVC. 
I have two RadComboBox.
1)AppointmentType
2)Appointment purpose
these RadCombobox in
when I select item of Appointment-type then i want to fill Appointment purpose resources dropdown on runtime.
Please help.

Thanks ,
Kuldeep

Plamen
Telerik team
 answered on 22 May 2013
2 answers
116 views
Hi,

Our requirement is to maintain the status of the grid when user navigates from parent page to child page. So, when child page link in the grid is clicked, we are saving entire page state (dropdown list control selected values, grid sort, display of columns etc). Upon coming back from child page, we are assigning dropdown values back to controls from session and binding the grid to object that gets data from db based on dropdownlist control values. Then we are planning to set grid state (like sort order, display of columns etc)..

For this, when saving grid state, I need to loop thru columns and get col sort order. This code is out of radgrid events. I am doing this way:

foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
{
   if (col is GridBoundColumn)
     {
          GridBoundColumn gbc = col as GridBoundColumn;
           object sortOrder = gbc.SortExpression;
     }

}

I know that I sorted column. But SortExpression (if I mouse over SortExpression, is always empty).
Please let me know how to get the sort expression or sort order programatically and also how to set grid sort order.

Thanks
Prathibarani
Top achievements
Rank 1
 answered on 21 May 2013
2 answers
100 views
We are having issues when applying refreshed combo box filters in addition to using NestedViews. Once we apply filters and rebind the NestedViews will no longer open/expand.

What I believe is happening is that Prerender is being invoked for both the filter as well as the NestedView expand. In PreRender I am calling a function that refreshes our filter combo boxes to relevant options post filter and rebinds the grid. At this point the filter is != string.Empty and when the row is clicked to expand the NestedView prerender fires again and my function is again called rebinding the grid and collapsing the NestedView. My question: is there any way to avoid this collision? Would it be possible to detect who invoked Prerender or move the combo refresh to Javascript?

We want to achieve the following goals:
  1. Refresh several combobox filter dropdowns after the user has filtered on a field, and rebind the grid
  2. Utilize nested views after filtering

Code is below:
protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            if (RadGrid1.MasterTableView.FilterExpression != string.Empty)
            {
                RefreshCombos();
            }
        }

protected void RefreshCombos()
{
SqlDataSourceVP.SelectCommand = SqlDataSourceVP.SelectCommand + " WHERE " +                               RadGrid1.MasterTableView.FilterExpression;
            SqlDataSourceTransStatus.SelectCommand = SqlDataSourceTransStatus.SelectCommand + " WHERE " + RadGrid1.MasterTableView.FilterExpression;
            SqlDataSourceTransType.SelectCommand = SqlDataSourceTransType.SelectCommand + " WHERE " + RadGrid1.MasterTableView.FilterExpression;
 RadGrid1.MasterTableView.Rebind();
}
Ulonda
Top achievements
Rank 1
 answered on 21 May 2013
1 answer
105 views
This is the first time I got this error.  Can someone please help?
I used a datetime picker on my form and choose the embedded skin called WebBlue.  My control is set to EnableEmbeddedSkins = true.
After I deploy the project, this is the error I get when trying to run the app:

Telerik.Web.UI.DatePickingInput with ID='dateInput' was unable to find an embedded skin with the name 'WebBlue'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.

Thanks for any and all help.
Gary
Top achievements
Rank 1
 answered on 21 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?