Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
161 views
Hello,

As was noted in the 2012 Q3 release notes, RadComboBox is no longer decorated by RadFormDecorator.  I understand that there may be very good reasons for this change, but it now leaves us with the ugly default IE check boxes instead of the nice looking check boxes rendered by RadFormDecorator.  Is there a simple way to recover the check box appearance within RadComboBox that was available in 2012 Q2 and prior?

[Edit #1: I must revise my comments slightly.  I performed a trace on the styles and noticed that there are actually check box images included, but the images are rendered in IE9 BEHIND the standard check box provided by IE 9.  Is there a fix for this?]

Regards,

Bradford
Ivan Zhekov
Telerik team
 answered on 18 Jan 2013
4 answers
164 views
Hello everyone!

I'm developing a web application (aspx), and I have a radMenu in a master page. I have modified the CSS of the RadMenu, but I have a little detail wich I don't know how to fix. 

When I hover on a submenu, the parent back color goes white. I attached a .jpg that will explain better the situation.

What I want is to change the white back color of the image. 

thanks
Kate
Telerik team
 answered on 18 Jan 2013
1 answer
80 views
How can i set focus to radtextbox in radtooltip? 
Princy
Top achievements
Rank 2
 answered on 18 Jan 2013
1 answer
57 views
As usual I'm on a deadline and tinkering with aspects of Telerik I don't fully understand.  
I've been looking at your splitter demo (http://demos.telerik.com/aspnet-ajax/splitter/examples/clientsideapi/defaultcs.aspx)

I have a form with regions divided up by splitters.  

Like your demo I need to be able to expand and collapse the end pane in Javascript, depending on the value set in a combobox.  

Unlike your demo, the page is supposed to start off with the endpane collapsed.  The toggle in my checkForValue function when the pane is initially collapsed,  initially didn't work.  

To fix this, on the server side, in the Page_Load event, to initially expand the pane, I put:
 RadPaneEnd.Width = new System.Web.UI.WebControls.Unit("55%");

On the client side, I put this, to fire on load, and collapse the pane:
  $(document).ready(function () {        
            var splitter = $find("<%=RadSplitter1.ClientID%>");
            var endPane = splitter.getEndPane();
            endPane.collapse(Telerik.Web.UI.SplitterDirection.Backward);
        })

The expand/collapse function itself is:
  function checkForValue(sender, args) {
     var splitter = $find("<%=RadSplitter1.ClientID%>");
     var endPane = splitter.getEndPane();
     var curVal = sender.get_text();
     if (curVal == 'Value1') {
         endPane.expand(Telerik.Web.UI.SplitterDirection.Backward);
     }
     else {
        endPane.collapse(Telerik.Web.UI.SplitterDirection.Backward);
     }           
  }


Vessy
Telerik team
 answered on 18 Jan 2013
1 answer
55 views
How to add print functionality in radcalendar? 
Shinu
Top achievements
Rank 2
 answered on 18 Jan 2013
3 answers
285 views
I'm using a RadGrid with drag & drop (using the DragDropColumn) to move the items of a detail table around (even between items on the master table). My problem is that when the row is accidentally dragged into the expand/collapse column of the master table, the eventArgs in OnRowDrop (server-side) don't tell me where it was dropped.

e.DestDataItem is null
e.HtmlElement is an empty string
e.DestinationTableView is the master table (not null, but not informative unless something else gets set there).

What I want is to be able to figure out which detail table row I'm next to. Failing that, I'd at least like to be able to tell which master table row I'm beneath so that I can add the item to the top of that detail table.

I'd appreciate any assistance in figuring this out.

--Christina Noel
Maria Ilieva
Telerik team
 answered on 18 Jan 2013
8 answers
143 views
I noticed the release statement in Q2 2010.
  • Fixed: RadDatePicker client validation with ASP validators when an invalid value is entered.
  • Does it mean that RadDatePicker would support ASP CompareValidator with Operator="DataTypeCheck" as Date, or support PeterBlum's DataTypeCheckValidator?

    Vasil
    Telerik team
     answered on 18 Jan 2013
    3 answers
    737 views
    I have a ComboBox and a button. The ComboBox is bound to a table of 'groups'. The button allows you to add a new 'group' record to that table if whatever is currently typed in the ComboBox doesn't match anything in the dropdown by calling the button's click event 'btnAddGroup_Click'
    .

    My problem is, even though my javascript function addGroup is being called with no problem... when the confirm is true... the server side click even 'btnAddGroup_Click' is not being called. When the confirm is false, I do not want the click even to to called.

    Strangely, when I remove the 'return' from "return addGroup();" it will trigger my server side click event whether I say yes or no to the confirm. Am I making some fundamental JavaScript mistake?


        function addGroup() {

            var addgroupbutton = document.getElementById('<%= btnAddGroup.ClientID %>');
            var changegroupbutton = document.getElementById('<%= btnSave.ClientID %>');


            if (confirm('Are you sure you want to add a new group?')) {
                
                addgroupbutton.disabled = true;
                changegroupbutton.disabled = false;
                alert("1");
                return true;
            }
            else {
                alert("2");
                addgroupbutton.disabled = false;
                changegroupbutton.disabled = true;
                return false;
            }
        }


                            <telerik:RadComboBox ID="rcbAddCompanyGroup" runat="server" Width="310px" Height="150"
                                EmptyMessage="Select a Company Group" DataSourceID="SqlDataSource2" 
                                DataTextField="CompanyGroup" OnClientItemsRequested="OnClientItemsRequested" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"
                                DataValueField="CompanyGroup" EnableAutomaticLoadOnDemand="True" ItemsPerRequest="20"
                                ShowMoreResultsBox="true" EnableVirtualScrolling="true" Filter="Contains">
                            </telerik:RadComboBox>
                            <asp:Button ID="btnAddGroup"
                            OnClick="btnAddGroup_Click"
                            OnClientClick="return addGroup();" 
                            runat="server" Text="Add Group" Visible="true" Width="87px" />





        Protected Sub btnAddGroup_Click(sender As Object, e As System.EventArgs)
            If rcbAddCompanyGroup.Text.Trim.Length <> 0 Then
                insertCompanyGroup()
            End If
        End Sub
    Eyup
    Telerik team
     answered on 18 Jan 2013
    2 answers
    312 views
    Hi,
    I'm getting this error in a page containing a radscheduler
    "The requested operation requires a SqlClr context, which is only available when running in the Sql Server process."

    I'm quite sure it comes from the sqlDatasource specified on radscheduler and its ResourceTypes, If I remove those DataSourceID, error does not happen (nothing works of course)


    Here is the radscheduler
    <telerik:RadScheduler runat="server" ID="RadScheduler1"            
               DataSourceID="SqlDataSource1"
              SelectedView="TimelineView"
              DayEndTime="23:59:59"            
              DataKeyField="ID"
              DataSubjectField="Subject"
              DataStartField="StartDate"
              DataEndField="EndDate"
              DataRecurrenceField="RecurrenceRule"
              DataRecurrenceParentKeyField="RecurrenceParentID"
              DataDescriptionField="Description"
              DataReminderField="Reminder"
              AdvancedForm-EnableCustomAttributeEditing="true"
              CustomAttributeNames="VisibleFrom, VisibleTo, AvailableFrom, AvailableTo, IDTimeLineResource, LastModified"
              OverflowBehavior="Expand"            
              Localization-HeaderMultiDay="Work Week"
              OnNavigationComplete="RadScheduler1_NavigationComplete"           
              EnableDescriptionField="True"
              Culture="it-IT"
              RowHeight="70px"
              AppointmentStyleMode="Default"
              OnClientAppointmentContextMenu="appointmentContextMenu"           
              OnClientAppointmentContextMenuItemClicked="appointmentContextMenuItemClicked"
              OnClientAppointmentContextMenuItemClicking="appointmentContextMenuItemClicking"   
              OnClientTimeSlotContextMenu="OnClientTimeSlotContextMenu"             
              OnTimeSlotContextMenuItemClicking="RadScheduler1_TimeSlotContextMenuItemClicking"
              onclientappointmentmoveend="RadScheduler1_AppointmentMoveEnd"
              onclientappointmentmovestart="RadScheduler1_AppointmentMoveStart"                 
              >
               
               
              <AdvancedForm EnableCustomAttributeEditing="True" />
              <TimelineView HeaderDateFormat="dddd, d MMMM yyyy" />
              <TimelineView ColumnHeaderDateFormat="ddd d/M" />
     
              <AdvancedForm Modal="true" />
     
     
     
              <AppointmentTemplate>               
                   <div class="rsAptSubject" style="height:20px">
                       <%# Eval("Subject") %>
                   </div>                
                   <div style="vertical-align:top;height:20px;background-color:Gray" >
                   Vis: <%# FormatDateTime(Eval("VisibleFrom"))%> - <%# FormatDateTime(Convert.ToDateTime(Eval("VisibleTo")).AddDays(-1))%>
                   </div>
                   <div style="vertical-align:top;height:20px;background-color:Orange" >
                   Disp: <%# FormatDateTime(Eval("AvailableFrom"))%> - <%# FormatDateTime(Convert.ToDateTime(Eval("AvailableTo")).AddDays(-1))%>
                   </div>
               </AppointmentTemplate>
     
     
               <AdvancedEditTemplate>
                   <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
                       Subject='<%# Bind("Subject") %>'
                       Description='<%# Bind("Description") %>'
                       Start='<%# Bind("Start") %>'
                       End='<%# Bind("End") %>'
                       RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'                                                                              
                       CategoriaID='<%# Bind("IDTimeLineResource") %>'         
                       VisibleFrom='<%# Bind("VisibleFrom") %>'
                       VisibleTo='<%# Bind("VisibleTo") %>'
                       AvailableFrom='<%# Bind("AvailableFrom") %>'
                       AvailableTo='<%# Bind("AvailableTo") %>'                    
                       />
               </AdvancedEditTemplate>
     
               
               <AdvancedInsertTemplate>
                   <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
                       Subject='<%# Bind("Subject") %>'
                       Start='<%# Bind("Start") %>'
                       End='<%# Bind("End") %>'
                       Description='<%# Bind("Description") %>'
                       RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                       CategoriaID='<%# Bind("IDTimeLineResource") %>'    
                       VisibleFrom='<%# Bind("VisibleFrom") %>'
                       VisibleTo='<%# Bind("VisibleTo") %>'
                       AvailableFrom='<%# Bind("AvailableFrom") %>'
                       AvailableTo='<%# Bind("AvailableTo") %>'              
                       />
               </AdvancedInsertTemplate>
               
               
              <ResourceTypes>
                  <telerik:ResourceType   KeyField="IDTimeLineResource"
                                          DataSourceID="SqlDataSource2"
                                          ForeignKeyField="IDTimeLineResource"
                                          Name="Categoria"
                                          TextField="ResourceName"                                                                                
                                          AllowMultipleValues="False" />              
              </ResourceTypes>
     
     
     
              <Localization HeaderMultiDay="Work Week" />
               
              <TimelineView GroupBy="Categoria"
                              GroupingDirection="Vertical" 
                              UserSelectable="False"/>
               
              <MultiDayView UserSelectable="false" />
               
              <DayView UserSelectable="false" />
              <WeekView UserSelectable="false" />
              <MonthView UserSelectable="false" />
              <Reminders Enabled="false" />
     
     
          <%--<AppointmentTemplate>
              <div class="rsCustomAppointmentContainer <%# Eval("IDTimeLineResource") %>">
                  <h2>
                      <%# Eval("Subject") %>
                  </h2>
                  <div>
                  </div>
              </div>
          </AppointmentTemplate>--%>
     
        
              <AppointmentContextMenus>
               <%--The appointment context menu interaction is handled on the client in this example--%>
               <%--See the JavaScript code above--%>
                  <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                      <Items>
                          <telerik:RadMenuItem Text="Apri" Value="CommandEdit" />
                          <telerik:RadMenuItem IsSeparator="True" />
                          <telerik:RadMenuItem Text="Categorizza">
                              <Items>
                                  <%--
                                  <telerik:RadMenuItem Text="Development" Value="1" />
                                  <telerik:RadMenuItem Text="Marketing" Value="2" />
                                  <telerik:RadMenuItem Text="Personal" Value="3" />
                                  <telerik:RadMenuItem Text="Work" Value="4" />
                                  --%>
                              </Items>
                          </telerik:RadMenuItem>
                          <telerik:RadMenuItem IsSeparator="True" />
                          <telerik:RadMenuItem Text="Elimina" Value="CommandDelete" />
                      </Items>
                  </telerik:RadSchedulerContextMenu>
              </AppointmentContextMenus>
     
              <TimeSlotContextMenus>
                  <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
                      <Items>
                          <telerik:RadMenuItem Text="Nuovo" Value="CommandAddAppointment" />
                          <telerik:RadMenuItem Text="Nuovo (ricorrente)"  Value="CommandAddRecurringAppointment" />
                          <telerik:RadMenuItem IsSeparator="true" />
                          <%-- Custom command --%>
                          <telerik:RadMenuItem Text="Oggi" Value="CommandGoToToday" />
                          <telerik:RadMenuItem IsSeparator="true" />
                          <telerik:RadMenuItem Text="Avanti 1 mese" Value="CustomCommandPlus1Month" />
                          <telerik:RadMenuItem Text="Indietro 1 mese" Value="CustomCommandMeno1Month" />
                          <telerik:RadMenuItem IsSeparator="true" />
                          <telerik:RadMenuItem Text="Vedi Settimana" Value="CustomCommandWeekView" />
                          <telerik:RadMenuItem Text="Vedi 15gg" Value="CustomCommand15ggView" />
                          <telerik:RadMenuItem Text="Vedi Mese" Value="CustomCommandMonthView" />
                           
                      </Items>
                  </telerik:RadSchedulerContextMenu>
              </TimeSlotContextMenus>
     
     
     
          </telerik:RadScheduler>

    here is datasources
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
            ConnectionString="Data Source=DEV;Initial Catalog=GM2;Persist Security Info=True;User ID=sa;Password=***;Connect Timeout=120;Context Connection='true'"
            SelectCommand="SELECT [IDTimeLineResource], [ResourceName], [ResourceDescription] FROM [SCH_RESOURCES_0]">
        </asp:SqlDataSource>
     
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="Data Source=DEV;Initial Catalog=GM2;Persist Security Info=True;User ID=sa;Password=***;Connect Timeout=120;Context Connection='true'"
            SelectCommand="SELECT [ID], [StartDate], [EndDate], [Subject], [Description], [Reminder], [RecurrenceRule], [RecurrenceParentID], [IDTimeLineResource], [VisibleFrom], [VisibleTo], [AvailableFrom], [AvailableTo], [LastModified] FROM [SCH_Appointements_0]" >
        </asp:SqlDataSource>
    (password is correct, I just hide it here)

    I attached a screen shot of the 2 db-table involved.

    Last thing, this worked fine until some days ago. I don't know why it does not now. 

    Thank you





    Jean-Marc
    Top achievements
    Rank 1
     answered on 18 Jan 2013
    1 answer
    48 views
    Hi,

    I have a radgrid, in which i am adding 5 empty  rows. I would like the initial 5 rows to be in insert mode, so that users can key in the values for the first 5 rows. Currently they are shown in edit mode.

    How to achieve this?
    Eyup
    Telerik team
     answered on 18 Jan 2013
    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
    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
    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?