Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
237 views
Hello,

Using Q3 2009 & IE7, I have the following scheduler code (advanced template code taken from here):

<telerik:RadScheduler ID="RadScheduler1" runat="server" OnAppointmentDelete="RadScheduler1_AppointmentDelete" 
                OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" 
                Skin="WebBlue" OnDataBinding="RadScheduler1_DataBinding" SelectedView="WeekView" 
                StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" ShowAllDayRow="false" 
                OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" 
                CustomAttributeNames="avail_type" EnableCustomAttributeEditing="true"
                <AdvancedForm Modal="true" /> 
                <TimelineView UserSelectable="false" /> 
                <AdvancedInsertTemplate> 
                    <div class="rsAdvancedEdit" style="position: relative"
                        <%-- Title bar.--%> 
                        <div class="rsAdvTitle"
                            <%-- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%> 
                            <h1 class="rsAdvInnerTitle"
                                <asp:Label runat="server" ID="titleBarLabel"
               <%# Container.Appointment.Owner.Localization.GetString("AdvancedInsertTitleBar_Callback")%> 
                                </asp:Label></h1
                            <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose" 
                                CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'
       <%# Container.Appointment.Owner.Localization.AdvancedClose%> 
                            </asp:LinkButton> 
                        </div> 
                        <div class="rsAdvContentWrapper"
                         
                        <table> 
                        <tr><td
                        <asp:Label runat="server" ID="AvailabilityLabel"
                        <%# Container.Appointment.Owner.Localization.GetString("AvailabilityLabel_Callback")%> 
                        </asp:Label> 
                        </td> 
                        <td> 
                         
                        <telerik:RadComboBox runat="server" ID="AvailComboBox" OnDataBinding="AvailComboBox_DataBinding" Skin="WebBlue" DataValueField="avail_type" DataTextField="avail_name" HighlightTemplatedItems="True" EmptyMessage='<%# Container.Appointment.Owner.Localization.Save %>'
                        <ItemTemplate> 
                        <asp:Image runat="server" ID="AvailabilityDDImage" ImageUrl='<%# "~/images/colors/" + Eval("color").ToString().Trim() + ".gif" %>' ToolTip='<%# "~/images/colors/" + Eval("color").ToString().Trim() + ".gif" %>' /> 
                        <asp:Label runat="server" ID="AvailabilityDDLabel" Text='<%# Eval("avail_name") %>'></asp:Label> 
                        <asp:HiddenField runat="server" ID="hidAvailType" Value='<%# Bind("avail_type") %>' /> 
                        </ItemTemplate> 
                        </telerik:RadComboBox> 
                        </td> 
                      
                        </tr> 
                        </table> 
              
                            Custom content here... 
                            <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea"
                                <div class="rsAdvButtonWrapper"
                   <asp:LinkButton CommandName="Insert" runat="server" ID="InsertButton" CssClass="rsAdvEditSave"
<span><%# Container.Appointment.Owner.Localization.Save%></span
                   </asp:LinkButton> 
                   <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel" 
                       CausesValidation="false"
<span><%# Container.Appointment.Owner.Localization.Cancel%></span
                   </asp:LinkButton> 
               </div> 
                            </asp:Panel> 
                        </div> 
                    </div> 
                </AdvancedInsertTemplate> 
            </telerik:RadScheduler> 

Here is the codebehind:
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) 
        { 
            string test = e.Appointment.Attributes["avail_type"]; 
        } 
 
        protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) 
        { 
        } 
 
        protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e) 
        { 
        } 
 
protected void AvailComboBox_DataBinding(object sender, EventArgs e) 
        { 
            (sender as RadComboBox).Items.Clear(); 
            DataTable table = new DataTable(); 
            table.Columns.Add("color"); 
            table.Columns.Add("avail_name"); 
            table.Columns.Add("avail_type"); 
 
            DataRow row = table.NewRow(); 
            row["color"] = "Green"
            row["avail_name"] = "Available"
            row["avail_type"] = "AVAIL"
            table.Rows.Add(row); 
 
            row = table.NewRow(); 
            row["color"] = "Red"
            row["avail_name"] = "Not Available"
            row["avail_type"] = "NOTAVAIL"
            table.Rows.Add(row); 
 
            DataView AvailabilityView = table.DefaultView; 
 
            (sender as RadComboBox).DataSource = AvailabilityView; 
            (sender as RadComboBox).SelectedIndex = 0; 
        } 

In particular, I am having great trouble with the combobox (on appointment insert); I simply cannot get the value of it. The string 'test' always returns null. If I try using DataValueField='<%# Bind("avail_type") %>' in the combobox, the string becomes empty instead. I simply wish to get the selected value of the combobox as a custom appointment attribute so that it may be stored in the database. Any help will be appreciated.

Thank you
Josh
Top achievements
Rank 1
 answered on 02 Jul 2010
4 answers
526 views
Is there a way to fire a server-side event based on a row select of a rad-grid? Basically, I want to take a column value (that is the key value for the dataset) and use that to re-direct the page to a different page to view more information based on that key value. Right now, I can select a row, and then have a button that does the same thing  based on the selected row, but I want to eliminate a click. Also, is there any way to make it only fire on a double-click event?
Matt Tapia
Top achievements
Rank 1
 answered on 02 Jul 2010
2 answers
84 views
I have the tool FindAndReplace with the shortcut CTRL+F, but it is interfering with the browser ctrl+F, so both find dialog are appearing. I saw that the behavior can be reproduce in the telerik demos(http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx) using IE but seems to work fine in firefox. It is not a major bug, but if you have any suggestion on how to override this specific browser shortcut.

Thanks,
Sébastien
Sébastien
Top achievements
Rank 1
 answered on 02 Jul 2010
11 answers
236 views
The first time I drop down the RadComboBox there is a blank line at the bottom (empty item). In other words the length of the drop down is off. Then the second time I drop it down it is correct and there is no blank item at bottom.

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadComboBox ID="cmbQueryBy" runat="server" Width="98px">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="Today" Value="1" />
                <telerik:RadComboBoxItem runat="server" Text="Tomorrow" Value="2" />
                <telerik:RadComboBoxItem runat="server" Text="Next 7 Days" Value="3" />
                <telerik:RadComboBoxItem runat="server" Text="Specific Date" Value="4" />
            </Items>
        </telerik:RadComboBox>
    </div>
    </form>
</body>
</html>
Simon
Telerik team
 answered on 02 Jul 2010
2 answers
109 views
I am trying to access the radcombobox on my page from javascript, when the page is finished loading, using javascript and when I make a reference to the control using the following:

var radDdlGraphics = $find('radDdlGraphics');

It comes back as being null, which is weird, because I try to change a value within dropdown on the page itself. It fires the onchange event and references the object the same way.

Any ideas on why this doesn't work in the window.onload and yet works when the page is loaded, I would have thought they work the same way, but that is not the case.
IrishManInUSA
Top achievements
Rank 1
 answered on 02 Jul 2010
1 answer
90 views
Hi.
I'm trying to set FileBrowserContentProviderTypeName for every one mossradeditor on web application.
I wrote SPCustomContentProviderclass inherited from FileBrowserContentProvider and edited ConfigFile.xml.
<?xml version="1.0" encoding="utf-8" ?>
<!--  you should copy this file on environment to folder C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.2.3.0__1f131a624888eeed\Resources\
and replace existing one-->
<configuration>
  <property name="AllowThumbGeneration">True</property>
  <property name="ConvertToXhtml">True</property>
  <property name="EnableDocking">False</property>
  <property name="ShowHtmlMode">True</property>
  <property name="ShowPreviewMode">False</property>
  <property name="ToolbarMode">ShowOnFocus</property>
  <property name="ToolsWidth">680px</property>
  <property name="Skin">Telerik</property>
  <property name="ToolsFile">/_layouts/TelerikTools.xml</property>
  <property name="FileBrowserContentProviderTypeName">GenericUtils.SPCustomContentProvider, GenericUtils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5</property>
  <property name="ExternalDialogsPath">/_layouts/editordialogs</property>
</configuration>

But radeditor still use standard sharepoint provider. How can I change default provider?

P.S. I'm trying to add possibility for user to change site collections in image manager. I know about ImagesPaths but they allowing only access to current site's or root site's folders.
Stanimir
Telerik team
 answered on 02 Jul 2010
2 answers
129 views
Hi Telerik Support

I want to disable all the timeslots than had past in the current day, for example, if my clock says 3:54 pm, I want that my Scheduler disable all the timeslots in the current day and maybe update each 30 minutes in order to disable more timeslot.

I´ll be waiting for your support.

Best Regards!!
Jesus
Top achievements
Rank 1
 answered on 02 Jul 2010
2 answers
213 views

Fabian Raul Jofre
Top achievements
Rank 2
 answered on 02 Jul 2010
8 answers
244 views
Hello,

Is there any equivalent control to one shown below for date time input?
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MaskedEdit/MaskedEdit.aspx
It will be great if we can have calender icon along with it.

I tried input manager but it doesnt support the mask.

My project currently is in beta stage and i  have lots of user controls. Now when the user controls are added to page the html size increases due to large number of datetime input controls. I have to remove all telerik datetime input controls because it emits lots of html and javascript blocks that causes large page size. I do use sharedcalender and sharedtimeview but still the performance is not good.

While finding alternatives i found above link but i dont want to have ajax library in the project just to use one control.

Any help or sample project is appreciate.

To summarise
1) Want to get rid of telerik datetime input and calender and timeview controls.
2) find any light weight calender that just have a client side javascript library
3) Find light weight date time masked validator control with possible calender icon to support opening of calender incase user wants to.

regards
mac

Dimo
Telerik team
 answered on 02 Jul 2010
4 answers
171 views
My radEditor tools rendering is very strange. This is happening to me when I try to resize the page.

I do have an external tools file if this help!
Sébastien
Top achievements
Rank 1
 answered on 02 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?