Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
413 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
210 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
    892 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
    393 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
    62 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
    297 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
    344 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
    2 answers
    192 views
    Hi,

    I am using RadRadialGauge in my application I wanted to add text at the point where the needle starts  or below the needle.

    Please let me know how I can do this.

    Thanks,
    Rahul
    Top achievements
    Rank 1
     answered on 18 Jan 2013
    11 answers
    305 views
    Hi,

    I have a radwindowmanager problem as implementing with radscheduler.

    On the appointment is clicked, the window's visibleonpageload set to be true.  After the things are done and  the window is closed.  However, each time radscheduler is navigated, the window is popped up again.  I am not sure what causes the problem.

    I set the ajax update control(radscheduler, radwindowmanager).

    Regards,

    Duy
    Balakrishna Reddy
    Top achievements
    Rank 1
     answered on 18 Jan 2013
    1 answer
    176 views
    Hi,

    I have a combobox which i've setup to use the EnableAutomaticLoadOnDemand. This works fine. When you click on the combobox, the dropdown list is populated using the ItemsRequested event.
    However, looking at the demo examples on the telerik site, the load on demand examples have a "loading..." msg appear by default while the combobox is being populated. But my combobox has lost this msg & so it never appears. After you click on the combobox, a blank drop down list appears & then a few sconds later it is populated with the data items. I would like to have the loading msg visible but i can't seem to get it working (even though i have specifically set the msg text in my combobox). See below for my code:
    <telerik:RadComboBox ID="ApprovalItem" runat="server" AllowCustomText="false"
    AppendDataBoundItems="True" CssClass="ComboBoxPadding"
    DataSourceID="DS_CostCentre" DataTextField="CCDesc" DataValueField="costcentre"
    DropDownWidth="420px" EmptyMessage="Select Approval Item:" Enabled="False"
    Font-Names="Verdana" Font-Size="8pt" HighlightTemplatedItems="true"
    MarkFirstMatch="true" TabIndex="9" EnableAutomaticLoadOnDemand="True"
    EnableVirtualScrolling="true" ShowMoreResultsBox="true"
    ShowWhileLoading="true" LoadingMessage="Loading..." ShowDropDownOnTextboxClick="true"
    onitemsrequested="ApprovalItem_ItemsRequested">
    </telerik:RadComboBox>

    Am i doing something wrong in my combobox? I've tried the code without the LoadingMessage value to see if it appears by default but i just get a blank.

    Thanks in advance for any help.

    Shuja

    Dimitar Terziev
    Telerik team
     answered on 18 Jan 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?