Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
53 views
Hi
I am new to using Scheduler with Group By resources. I have created the page with all the necessary data. But the Scheduler displays multiple entries for the resources. 

You can see my multiple appointments  for resource Mary, though there is only one entry in the database
My Server side code as follows:

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Not IsPostBack Then
            'Dim ParamCol = New ParameterCollection
            'ParamCol.Add("Date", Now)
            Dim ds As DataSet = zDataFactory.GetAppointmentListAll()
            RadScheduler1.SelectedDate = Convert.ToDateTime(Now)
            RadScheduler1.SelectedView = SchedulerViewType.DayView
            RadScheduler1.TimelineView.NumberOfSlots = 10
            RadScheduler1.DataSource = ds
            RadScheduler1.DataKeyField = "AppointmentID"
            RadScheduler1.DataStartField = "FromTime"
            RadScheduler1.DataEndField = "ToTime"
            RadScheduler1.DataSubjectField = "ServiceDescription"
            RadScheduler1.GroupBy = "Consultant"
            RadScheduler1.GroupingDirection = GroupingDirection.Horizontal
            
            Dim rt As New ResourceType("Consultants")
            rt.ForeignKeyField = "ConsultantID"
            rt.KeyField = "ConsultantID"
            rt.TextField = "ConsultantName"
            rt.Name = "Consultant"
            rt.AllowMultipleValues = False
            rt.DataSource =zDataFactory.GetConsultantList()
            RadScheduler1.ResourceTypes.Add(rt)

         End If
    End Sub

The data this is returned by the zDataFactory.GetAppointmentListAll()

Where it is going wrong?

Shanmugam Narasimhan
Top achievements
Rank 1
 answered on 07 Jan 2015
2 answers
94 views
I am looking to place a radbutton which will open a radWindow from the marker tooltip. I cannot seem to get this to work.

I am setting the tooltip from the code behind which works great except for this one thing. The radbutton will not even show up. I can use a basic HTML <a href> tag and that will show up but no server controls.
 
 the following shows the code that I am using
TEMPLATE = TEMPLATE + "<button type=\"button\" onclick=\"function openRWdrillDown(){ alert('test test');}\" name=\"" + city + "\">View Details</button>";


                //<telerik:RadButton ID=\"btnDetails\" runat=\"server\" OnClientClicked=\"openRWdrillDown\" CommandArgument=\"" + city.Replace(' ', '@') + "\" Text=\"View Details\" ButtonType=\"LinkButton\" />
                mark.TooltipSettings.Content = TEMPLATE;

any guide as to how to get this to work either JavaScript or server side.

Danail Vasilev
Telerik team
 answered on 06 Jan 2015
2 answers
97 views
Hi,

I have a site using splitters and multiple radpanes. One of those radpane contains a graph reports. After a user logins, we have javascript that resizes the radpane that contains the report based on the actual size of the report (a multipage). The radpane in question is nested inside a splitter.
Now it all works most of the time but occasionally we get null when we try to get the radpane object. This is the code below:

var reportpane = $find("<%= RadPaneReporting.ClientID %>");

We noticed it happens on IE9. We have tried it on IE8, and IE11 and there seems to be no issue. FYI, we are using version 2011.3.1115.35 of the Telerik controls.

Hope you guys can shed some light on this strange issue.
Thanks.

Ricky.
Vessy
Telerik team
 answered on 06 Jan 2015
1 answer
83 views
I have a RadPanelBar.
I want to add RadPanelItem with Item template and into this Item template I want to add other controls (checkboxes and etc..)
This is my javascript function :

function AddRadPanelItem
{
      var panelBar = $find("<%= pbMain.ClientID %>");
      var panelItem = new Telerik.Web.UI.RadPanelItem();
      panelItem.set_text("FIRST PANEL ");

     //here I want to add Item template and my other controls in panelItem ?

      panelBar.trackChanges();
      panelBar.get_items().add(panelItem);
      panelBar.commitChanges();    

}


Ivan Danchev
Telerik team
 answered on 06 Jan 2015
6 answers
205 views
Hello

  I am using RadGrid in our application, i am having issue with the Pager Style it is not align to the Right, it is defaulting to the left. I am using the latest Telerik.Web.UI.dll.  Here is the code as bellow:

<PagerStyle HorizontalAlign="Right" Position="Bottom" VerticalAlign="Middle" Mode="NumericPages">

</PagerStyle>


Thank you

Murali
Pavlina
Telerik team
 answered on 06 Jan 2015
4 answers
117 views
I'm struggling with the inline EditType in the RadEditor.  I need all of the tools at the bottom of the RadEditor, mainly because if they're above the RadEditor, it goes off the top of the page.  If I set the DockingZone to Bottom, none of the controls show up at all.  (as a side note, if you set the EditMode to one type only, the tools disappear if the DockingZone is Bottom as well)  It doesn't matter if I try to form this on the ASPX or programmatically.

Is there a way I resolve this issue?

Thanks for any help you may have.
Ianko
Telerik team
 answered on 06 Jan 2015
1 answer
62 views
Hi 
when i am viewing the grid in small monitor screen  iam getting the pager allignment issue as in the attachment
Please help
Thanks
karthik
Pavlina
Telerik team
 answered on 06 Jan 2015
3 answers
141 views
I've noticed that when one uses Opera 9.27 and clicks the Editor's body in a new message, the cursor does not show up.  It only shows up when one clicks on the first line in the editor. Clicking anywhere in the editor body does not show the cursor and makes it appear that the editor is read-only. 

How can I make it so an Opera user can click anywhere in the Editor's body for a new message (other than the first line) and have the cursor show up?

Note this is not an issue with IE 7.x or Firefox 2.x.
Ianko
Telerik team
 answered on 06 Jan 2015
6 answers
968 views
In the folllowing help article: you indicated that:
Although the HTML Excel format doesn't show any grid lines in the worksheet, you can mimic them by adding the following style to the generated output:
body { border:solid 0.1pt #CCCCCC; }

but you never indicated where this code should be placed?
I was assuming it would be applied to some property related to the export, but could not figure out how to use it.

I ended up doing the following instead:

protected void RadGrid1_ExcelExportCellFormatting(object source, ExcelExportCellFormattingEventArgs e)
{
    GridDataItem item = e.Cell.Parent as GridDataItem;
    e.Cell.Style["border"] = "solid 0.1pt #000000";
}
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridHeaderItem && bIsExport)
    {
        GridHeaderItem item = e.Item as GridHeaderItem;
        item.Style["border"] = "solid 0.1pt #000000";
    }

which works, but the header row has a border on every cell in the entire workbook.
I only want borders on cells related to the output of the grid.
What is the best way to fix this?
Israel
Top achievements
Rank 1
 answered on 06 Jan 2015
4 answers
172 views
We generate most of our controls dynamically based on admin preferences in designing their input forms.  When we create the RadNumericTextBox control, the HTML that we generate it looks like this:

<telerik:RadNumericTextBox ID="txtMaskNumericExample" Runat="server" Width="250px" ShowButton="False" ShowSpinButtons="False" 
                    SkinID="OverrideRadDefaultSkinWithNonExistantSkin" Type="Currency" visible="false" SelectionOnFocus="None" /> 

However, when it's generated and displayed in the browser, the type is ignored and replaced with Type="text".  The view source for the control shows as follows:

<input id="ctl00_EPDetailBodyPlaceHolder_FieldProperties_txtMaskNumericExample" name="ctl00$EPDetailBodyPlaceHolder$FieldProperties$txtMaskNumericExample" class="riTextBox riEnabled" value="$14.20" type="text" /><input id="ctl00_EPDetailBodyPlaceHolder_FieldProperties_txtMaskNumericExample_ClientState" name="ctl00_EPDetailBodyPlaceHolder_FieldProperties_txtMaskNumericExample_ClientState" type="hidden" />

In order to see what the difference was between a dynamically generated control and a static control, I added the RadNumericTextBox directly to the page.  It looks like the second code block above, but appears as desired.  I put it on another page and again, it appears as the second code block above, but this time, it doesn't work as desired (e.g., Currency shows up as text).

What am I missing here?
Konstantin Dikov
Telerik team
 answered on 06 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?