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

I am using RadDatePicker in a user control, then loading user control dynamically into a div.

We applied KendoSortable function on that div for drag and drop.

Now if i add "<script src="Scripts/jquery-2.1.3.min.js"></script>" then date picker input enables but kendosortable gives error : "Uncaught TypeError: undefined is not a function"
and if i remove that line then Drag and drop works Calender input diable itself.


Can anyone help me out with this scenario??

Thanks in advance.

Regards,
Ruchi Patel
Konstantin Dikov
Telerik team
 answered on 01 Jan 2016
1 answer
658 views

 Hi again - I have what I thought should be a simple item but based on my searching - it is not so simple.

 I have a datagrid on my page - that is populated on the server side by a query level class.  The method returns a DataTable which populates to the data grid just fine.  I've set the datagrid to EditMode="Batch" to allow the users to make changes in multiple records then save them all to the database.

 My problem is that I want one of the columns to be a drop down list (of any type).  It would be fed with a datatable from a database call as well - based off my same query level classes.  I've done this all 50 times before except never with EditMode = "Batch".  That seems to cause some issues.  I can't populate the drop down server side in the ItemDataBound event because the:  if (e.Item is GridEditableItem && e.Item.IsInEditMode) never evaluates to true when dealing with batch.

 Someone must have solved this before.  I can't just do the standard thing and tie the grid and the list to datasources right on the screen - it has to be called using a query level object. 

I even tried using XML to populate the list - which worked - but then I still can't get the list to connect to the data because whenever I try to "FIND" the control it never gets found.

 

HELP?!?

 

Thanks,
Cory Aston

Konstantin Dikov
Telerik team
 answered on 01 Jan 2016
0 answers
109 views

On the RadDateTimePicker with TabIndex set...only the CalendarPopupButton inherits TabIndex from parent picker while TimePopupButton does not.

So user will tab to the DateTimeTextbox and then tab to Calendar <a> tag...then tab order will skip over the TimeButton.

I have this workaround.

$(function () {
    setTimeout(function () {
        var fromToDatePicker = $find("<%=RadDatePickerFromTo.ClientID%>");
        var fromToTimeControl = fromToDatePicker.get_timePopupButton();
        fromToTimeControl.tabIndex = fromToDatePicker.get_textBox().tabIndex;

swegele
Top achievements
Rank 1
 asked on 31 Dec 2015
1 answer
85 views

When I give focus to my TreeView and push the Down-Arrow...the first node is selected but the OnClientKeyPressing event never fired.  From then on it fires as expected.  

 Am I missing something?  Really frustrating because I am already in hack-ville trying to create my own OnClientNodeSelected behavior (because that even isn't on the TreeView) and now it doesn't even work for the first selection!?

 Thanks,

 Sean

Ivan Danchev
Telerik team
 answered on 31 Dec 2015
1 answer
438 views

I'm trying to style a table on a page like a normal RadGrid to fit with our sites theme, but I'm having trouble with it. I've copied all the styles and matched the layout I saw on the DOM for RadGrids, but the classes seem to have no effect.

Is what I'm trying to do here possible?

Here is the markup ode for the table: 

 

<div tabindex="0" class="RadGrid Radgrid_Default">
               <table  style="width:20%; margin:0 auto;" class="rgMasterTable">
                   <colgroup>
                       <col></col>
                       <col></col>
                       <col></col>
                       <col></col>
                       <col></col>
                       <col></col>
                       <col></col>
                       <col></col>
                   </colgroup>
               <thead>
                   <tr>
                       <th class="rgHeader" scope="col">Category</th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpSun" runat="server" Text="Sunday"></asp:label></th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpMon" runat="server" Text="Monday"></asp:label></th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpTues" runat="server" Text="Tuesday"></asp:label></th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpWed" runat="server" Text="Wednesday"></asp:label></th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpThurs" runat="server" Text="Thursday"></asp:label></th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpFri" runat="server" Text="Friday"></asp:label></th>
                       <th class="rgHeader" scope="col"><asp:label ID="_lblExpSat" runat="server" Text="Saturday"></asp:label></th>
                   </tr>
               </thead>
                   <tbody>
               <asp:Repeater ID="_rptExpenses" runat="server" >
                   <ItemTemplate>
                       <tr class="rgRow">
                           <td>
                               <telerik:RadDropDownList ID="_ddCategory" SelectedValue='<%# Bind("ExpenseID") %>' runat="server" DataSourceID="_srcGetCategories" DataValueField="ExpenseID" DataTextField="CategoryDesc" ExpandDirection="Up" ></telerik:RadDropDownList>
                               <asp:SqlDataSource ID="_srcGetCategories" runat="server" SelectCommand="TimeTracker.sp_getExpenseCategories" SelectCommandType="StoredProcedure" ConnectionString='<%$ ConnectionStrings:FMS_Conn %>'></asp:SqlDataSource>
                           </td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpSun" DbValue='<%# Convert.ToInt32(Eval("Sunday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpMon" DbValue='<%# Convert.ToInt32(Eval("Monday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpTues" DbValue='<%# Convert.ToInt32(Eval("Tuesday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpWed" DbValue='<%# Convert.ToInt32(Eval("Wednesday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpThurs" DbValue='<%# Convert.ToInt32(Eval("Thursday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpFri" DbValue='<%# Convert.ToInt32(Eval("Friday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                           <td>
                               <telerik:RadNumericTextBox ID="_txtExpSat" DbValue='<%# Convert.ToInt32(Eval("Saturday")) %>' runat="server" Width="50" MinValue="0" MaxValue="24" NumberFormat-DecimalDigits="1" Value="0"></telerik:RadNumericTextBox></td>
                       </tr>
                   </ItemTemplate>
               </asp:Repeater>
               <tr class="rgRow">
                   <td colspan="8" style="text-align:center">
                       <telerik:RadButton ID="_btnSubmitExpenses" runat="server" Text="Add Expense"></telerik:RadButton>
                   </td>
               </tr>
                   </tbody>
           </table>
           </div>

Daniel
Telerik team
 answered on 31 Dec 2015
3 answers
442 views

Hi, thanks for looking at my question.

I am wanting to display numeric data that is retrieved to the RadGrid - GridBoundColumn with dashes inserted.  Currently the column shows a 15 digit number, what I want to do is break up the number with dashes related to how we use the number in our system.

I have worked with RadMaskedTextBoxes so I am familiar with setting the mask and the display mask for the inclusion of dashes.

From what I understand I can use GridMaskedColumn, but that will only show the dashes in edit mode.  As I am doing no editing, I just want it to display the data in the grid column with the dashes inserted.

 

Thank you for your time, Dale

 

 

 

 

Eyup
Telerik team
 answered on 30 Dec 2015
1 answer
51 views
hello i have two grids one with customers and one with vehicles connected with row click(row click only from customers grid to vehicles,via vb).So everytime i click a row at the first grid  then the second grid brings me the vehicles of the selected customer.Everytime i try to clear both of them via vb or javascript only one clears and the other remains.How can i clear both of them at the same time?thanks
Eyup
Telerik team
 answered on 30 Dec 2015
1 answer
245 views

Hi,

I am using Telerik Controls version 2015.1.401.40

I am trying to Export Grid data to excel. But nothing happening

Here is my code

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Grid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
  <telerik:RadGrid ID="Grid1" runat="server" AllowPaging="true" AllowSorting="true" Width="100%"                                 Height="100%" AllowFilteringByColumn="true" Skin="Bootstrap"  AutoGenerateColumns="false"
        PageSize="25" AllowMultiRowSelection="true" OnNeedDataSource="Grid1_NeedDataSource"
         OnItemCommand="Grid1_ItemCommand">
                <HeaderStyle HorizontalAlign="Left" Font-Bold="true" Font-Size="10pt"></HeaderStyle>
                <GroupingSettings CaseSensitive="false" />
                <MasterTableView Name="Master"  Width="100%">
                    <PagerStyle Position="Bottom" PageSizeControlType="RadDropDownList" Mode="NextPrevNumericAndAdvanced"
                        ShowPagerText="true" PageSizes="25,50,100,200" />
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                            <HeaderStyle HorizontalAlign="Left" Width="25px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" Width="25px"></ItemStyle>
                        </telerik:GridClientSelectColumn>
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" AllowFiltering="false">
                            <HeaderStyle HorizontalAlign="Left" Wrap="false"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" Wrap="true"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Address" HeaderText="Address" AllowFiltering="false">
                            <HeaderStyle HorizontalAlign="Left" Wrap="false"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" Wrap="true"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="E-Mail" HeaderText="E-Mail" AllowFiltering="false">
                            <HeaderStyle HorizontalAlign="Left" Wrap="false"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" Wrap="false"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone"     AllowFiltering="false">
                            <HeaderStyle HorizontalAlign="Left" Wrap="false"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" Wrap="true"></ItemStyle>
                        </telerik:GridBoundColumn>                      
                    </Columns>                  
                </MasterTableView>
                <ClientSettings>                   
                </ClientSettings>
            </telerik:RadGrid>

 on my ASPX.cs page

protected void Grid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        try
        {
            switch (e.CommandName)
            {
                case "ExportToExcel":
                    GridLeads.GridLines = GridLines.Both;
                    GridLeads.MasterTableView.GridLines = GridLines.Both;
                    GridLeads.MasterTableView.HeaderStyle.BackColor = System.Drawing.Color.LightGray;
                    
                    GridLeads.MasterTableView.ItemStyle.BackColor = System.Drawing.Color.LightYellow;
                    GridLeads.MasterTableView.AlternatingItemStyle.BackColor = System.Drawing.Color.LightYellow;
                    GridLeads.Columns.FindByUniqueName("ClientSelectColumn").Visible = false;
 
                    GridLeads.MasterTableView.AllowFilteringByColumn = false;
                    GridLeads.MasterTableView.PagerStyle.Position = GridPagerPosition.Bottom;
                    GridLeads.ExportSettings.ExportOnlyData = true;
                    GridLeads.ExportSettings.OpenInNewWindow = true;
                    GridLeads.ExportSettings.IgnorePaging = true;
 
                   
                    GridLeads.ExportSettings.FileName = "Lead(s) Report";
                    GridLeads.MasterTableView.ExportToExcel();
                    break;
            }
 
        }
        catch (Exception ex)
        {
            throw new Exception("Error While Loading Grid ItemCommand", ex);
        }
    }

  my ASPX page

<asp:Button ID="btnExport" runat="server" OnClientClick="ExportToExcel();return false;"
                                       ToolTip="Export To Excel" class="btn btn-default btn-sm" Text="Export" />
 
 
 
       <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
       <script type="text/javascript">
 
          function onRequestStart(sender, args) {
               if (args.get_eventTarget().indexOf("btnExport") >= 0)
               {                 
                   args.set_enableAjax(false);
               }
            
 
           function ExportToExcel() {
               $find('<%= Grid1.ClientID %>').get_masterTableView().fireCommand("ExportToExcel");
           }

 </script>
    </telerik:RadCodeBlock>

 

 

Eyup
Telerik team
 answered on 30 Dec 2015
1 answer
83 views
Is there a way to have the appointment autosize so that it displays the entire title when it wraps?  Please see the attached image for an example of what we are currently seeing.  Below is the current schedule definition.
<telerik:RadScheduler ID="rdSchedule" runat="server" Skin="Default"
    AdvancedForm-Enabled="False" AllowDelete="False" AllowEdit="False"
    AllowInsert="False" EnableAdvancedForm="False" FirstDayOfWeek="Monday"
    HoursPanelTimeFormat="htt" LastDayOfWeek="Friday"
    ReadOnly="True" ShowViewTabs="false" ValidationGroup="Displays"
    SelectedView="MonthView" ShowHoursColumn="False" ShowResourceHeaders="False" TimelineView-UserSelectable="false"
    Visible="False" OverflowBehavior="Expand" MonthView-VisibleAppointmentsPerDay="25" MonthView-AdaptiveRowHeight="true" AppointmentStyleMode="Default">
    <WeekView UserSelectable="False" />
    <Localization AdvancedAllDayEvent="All day"></Localization>
    <DayView UserSelectable="False" />
</telerik:RadScheduler>
Veselin Tsvetanov
Telerik team
 answered on 30 Dec 2015
1 answer
116 views

The rad captcha audio link is not working in Safari browser Mobile and Desktop.

any solution for this problem? thanks in advance for any help

Vessy
Telerik team
 answered on 30 Dec 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?