Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
How can i set focus to radtextbox in radtooltip? 
Princy
Top achievements
Rank 2
 answered on 18 Jan 2013
1 answer
78 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
80 views
How to add print functionality in radcalendar? 
Shinu
Top achievements
Rank 2
 answered on 18 Jan 2013
3 answers
350 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
175 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
    836 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
    350 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
    58 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
    1 answer
    279 views
    Hi,
    How to hide the no records template. I want to show 5 empty rows in the radgrid.

    I have tried this without luck:
    <MasterTableView DataKeyNames="ProductNumber" ShowHeadersWhenNoRecords="true" EnableNoRecordsTemplate="false" AutoGenerateColumns="false" EditMode="InPlace"                     CommandItemDisplay="Bottom"  CommandItemSettings-AddNewRecordText="Add New Order">


    Thanks
    Eyup
    Telerik team
     answered on 18 Jan 2013
    14 answers
    296 views

    I created a test project and Added a RadScriptManager and a RadGrid.....this is a new project without any reference to OpenAccess...I do have OpenAccess on my computer.

    I have done a simple application without Telerik controls...and it works....

    I'm using Visual Studio 2010, Windows 7 and Radcontrols  2012.1.411.40

    How do I get past the OpenAccess issue ( Remove it.)



    Could not load file or assembly 'Telerik.OpenAccess, Version=2012.1.301.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.OpenAccess, Version=2012.1.301.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.

    Source Error: 

    Line 15:         <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    Line 16: &nbsp;<a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    Line 17: <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> Line 18:         </telerik:RadScriptManager>
    Line 19:     </p>
    Kate
    Telerik team
     answered on 18 Jan 2013
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Boardy
    Top achievements
    Rank 2
    Veteran
    Iron
    Benjamin
    Top achievements
    Rank 3
    Bronze
    Iron
    Veteran
    ivory
    Top achievements
    Rank 1
    Iron
    Iron
    Rob
    Top achievements
    Rank 3
    Bronze
    Bronze
    Iron
    ClausDC
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Boardy
    Top achievements
    Rank 2
    Veteran
    Iron
    Benjamin
    Top achievements
    Rank 3
    Bronze
    Iron
    Veteran
    ivory
    Top achievements
    Rank 1
    Iron
    Iron
    Rob
    Top achievements
    Rank 3
    Bronze
    Bronze
    Iron
    ClausDC
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?