Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
421 views
Using below code "kendo ui grid groupable" feature is working fine if not using "ClientRowTemplate", but if I enable the ClientRowTemplate the groupable feature working weirdly, I mean the expand/collapse grouped rows feature stops working in this case.

Please help me on this.

Thanks in advance

<div class="demo-section kendo-grid-override">
@(Html.Kendo().Grid<PM.Entities.Model.sp_Sel_WorkOrder_Result>()
    .Name("Grid")
    .Columns(columns =>
    {
    columns.Template(@<text></text>).HeaderTemplate("<input type='checkbox' id='chkOrderAll' title='Select all to Archive' />").Width(35);
        columns.Bound(p => p.WorkOrderNo).Title("Order").Filterable(e => e.Extra(true)).Width(90);
        columns.Bound(p => p.OrderDate).Title("Order Date").Filterable(e => e
        .UI("customDatePicker")
        .Extra(true)
        .Operators(opt => opt.ForDate(dt => dt
                .IsGreaterThan("Greater Than")
                .IsGreaterThanOrEqualTo("Greater Than Or Equal To")
                .IsLessThan("Less Than")
                .IsLessThanOrEqualTo("Less Than Or Equal To")
            ))).Width(120);
        columns.Bound(p => p.CustomerName).Title("Customer").Filterable(e => e.Extra(false)).Width(180);
        columns.Bound(p => p.ParnterName).Title("Partner").Filterable(e => e.Extra(false)).Width(120);
        columns.Bound(p => p.OrderStatus).Title("Order Status").Filterable(e => e
            .UI("orderStatusFilter")
            .Extra(false)
        ).Width(120);
        columns.Bound(p => p.TelcoApprovalStatus).Title("Status Details").Filterable(false).Width(200);
        columns.Bound(clm => clm.Id).Title("Actions").Filterable(false).Sortable(false).Width(200);
    })
    //.ClientRowTemplate(Html.Partial("Order/_OrderTabs").ToHtmlString())
    .DataSource(ds => ds
        .Ajax()
        .Read(read => read.Action("GetAppWorkOrders", "WorkOrder").Data("window.pm.order.filterWorkOrders"))
        .PageSize(PageSize)
    )
    .AutoBind(false)
    .Events(e => e.DataBound("window.pm.order.onDataBound"))
    .Pageable(page => page.PageSizes(PageSizes).Messages(msg => msg.Display("{0} - {1} of {2:n0} items")))
    .Groupable()
    .Scrollable(a => a.Height("auto"))
    .Sortable(s => s.SortMode(GridSortMode.MultipleColumn))
    .Resizable(e => e.Columns(true))
    .Reorderable(reorder => reorder.Columns(true))
    .Filterable(filterable => filterable
        .Operators(operators => operators
            .ForString(str => str.Clear()
                .Contains("Contains")
                .DoesNotContain("Not contains")
                .StartsWith("Starts with")
                .EndsWith("Ends with")
            )
        )
    )
     .NoRecords(NoRecordFound)
)
</div>
Viktor Tachev
Telerik team
 answered on 29 Jul 2016
1 answer
87 views

Hi,

Im using a TabStrip+RadMultiPage with ContentUrl to load local pages. When the page is loaded the first time it has no tabs and the user can create them dynamically using some kind of radtreeview/sitedataitem. Each time I add a new tab/pageview, tabs/pages loaded before lose its content and they are reloaded.

Once they're created, it works good and can navigate from tab to tab without problems until I add other tab.

I've read this Post which explained the same issue in 2012:

http://www.telerik.com/forums/multpage-created-issue

Is there any solution or alternative to this problem?

My English is not very good sorry.

Thanks in advance

Peter Milchev
Telerik team
 answered on 29 Jul 2016
1 answer
265 views

hi all

im working on project with RadPanelBar in master page iwant to hid some items depend on user roles , for example admin most see some items hidden for other users 

how to manage this senario 

Nencho
Telerik team
 answered on 29 Jul 2016
0 answers
196 views

Hi,

I want to upload image using kendo upload Async in order in which images are selected or listed. 

Rigel
Top achievements
Rank 1
 asked on 29 Jul 2016
1 answer
98 views

Is there a way we can show total number of events/appointments for each day in the month view

 

as a hyperlink /static text in the radscheduler control.

 

By Clicking on the total number user will be redirected to new page and not the typical edit appointment

 

 

Thx

Plamen
Telerik team
 answered on 29 Jul 2016
1 answer
109 views

I have radgrid inside a radajaxpanel, inside a master page. I set EnableHeaderContextFilterMenu="True" EnableHeaderContextMenu="True". I've also set FilterCheckListEnableLoadOnDemand="true" for all columns. Every other element of the menu loads fine except for the checklist. When the checklist tries to load O get an error that reads:

 

"The target 'ctl00ContentPlaceHolder1xxxxxx' for the callback could not be found or did not implement ICallBackEventHandler. " If I continue every other element of the menu functions fine. It looks like there's some issue when it tries to load the checklist on demand. I followed the demo from your site for excel-like filtering here:

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

 

Am I missing something? The only difference beween my code and the code in the above linked demo is that I'm using a master page and the demo uses a sqldatasource control to set the ata source for the grid, while I bind to the grid using ado.net in the page_load event (if there's no posback).

 

 

fred williams
Top achievements
Rank 1
 answered on 28 Jul 2016
1 answer
54 views

Hi

I have a RadGrid with RadDropDownList inside column.

RadGrid is in Batch EditMode.

 

When I'm in IE10 or IR 9, and when I want to display list of the RadDropDownList, there's a bug : 

The RadDropDownList is quicly showing list and quickly hide the list !

It is unusable !

 

It runs perfectly on Firefox or Chrome.

 

Could you help me please ?

 

Thanks in advance 

 

Version : 2015.3.1111.45

Viktor Tachev
Telerik team
 answered on 28 Jul 2016
0 answers
139 views

Hi,

I am using Telerik RadEditor (V 2013.2.611.35) in which I have to set the height to 30 px for Radeditor and when we press Enter in the control, then it should automatically increase the height as per text entered.

 

Right now I do not see any approach or existing function in the control to set this behavior. Can someone please help me to acheve this?

Also is there any way to completely hide the footer of the editor?

Thanks in advance.

Avinash
Top achievements
Rank 1
 asked on 28 Jul 2016
3 answers
336 views
I have been trying to create a RadToolBarButton Dynamically in C# with an ItemTemplate.  Does anyone have an example of how to do the following in code behind?

  <telerik:RadToolBar runat="server" ID="toolBarKeywordSearch" EnableRoundedCorners="true" Style="height35px;"
                EnableShadows="true" OnButtonClick="toolBarWorkItem_Onclick">
                <Items>
                    <telerik:RadToolBarButton Value="gridToolBarButton" CommandName="SearchTextEntered">
                        <ItemTemplate>
                            <asp:Label ID="lblKeyWord" runat="server" Text="Keyword search:"></asp:Label>
                            <telerik:RadTextBox ID="txtSearchQuery" runat="server" Width="110px" ToolTip="Type to search" />
                        </ItemTemplate>
                    </telerik:RadToolBarButton>
                     </Items>
            </telerik:RadToolBar>

Thanks,

Wes
Paul
Top achievements
Rank 1
 answered on 28 Jul 2016
1 answer
622 views

Greetings,

I am trying to copy a selection from 1 RadComboBox to 11 other RadComboBoxes within a RadGrid.  I am using BatchEdit mode so am using client-side script.  The dataitem.findElement("cboRadPerson") in my script returns a div and not a combo box. Maybe there is a complication because I have a button in the EditItemTemplate.

What is the best way to get the selected value of  a RadComboBox, and what is the best way to set the selected value in a RadComboBox?

Thanks, Sean

        function CopyPerson(event) {

            event = event || window.event;
            var id = event.srcElement.name;
            var moFrom = id.slice(-2);
            var masterTableView = $find('<%= gvLINE_ITEM.ClientID %>').get_masterTableView();
            var selectedrow = masterTableView.get_selectedItems()[0];
            var dataitem = masterTableView.get_dataItems()[selectedrow._itemIndex];

            var cboFrom = dataitem.findElement("cboRadPerson");
            var cboTo;
                         
            for (i = parseInt(moFrom) + 1 ; i < 12; i++) {
                cboTo = dataitem.findElement("cboRadPerson" + i);
                cboTo.findItemByValue(cboFrom.get_value()).select();
            }            
        }

              <telerik:RadGrid ID="gvLINE_ITEM" runat="server" Skin="Office2010Silver" ViewStateMode="Enabled"
                  DataSourceID="dsLINE_ITEM"  EnableViewState="true"
                  AllowSorting="True" AllowAutomaticDeletes="True" AllowAutomaticUpdates="False"
                  AllowPaging="false"  AllowAutomaticInserts="false" 
                  Height="670px" ShowFooter="True"
                  RenderMode="Lightweight" CssClass="DDGridView"
                  HeaderStyle-CssClass="th" 
                  EnableHeaderContextMenu="true" >
                    <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" 
                        AllowColumnsReorder="True" EnableRowHoverStyle="true" AllowKeyboardNavigation="true" >
                       <Scrolling AllowScroll="True" UseStaticHeaders="true" />
      <Selecting AllowRowSelect="True" />
      <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False" />         
                       <ClientEvents OnRowSelected="RowSelected" OnBatchEditSetEditorValue="BatchEditSetEditorValue" />               
                    </ClientSettings>
       <GroupingSettings ShowUnGroupButton="true" />                  
                    <MasterTableView CommandItemDisplay="Top" 
                        DataKeyNames="LINE_ITEM_ID"  
                        ClientDataKeyNames="LINE_ITEM_ID,PERSON_ID_01,PERSON_ID_02,PERSON_ID_03,PERSON_ID_04,PERSON_ID_05,PERSON_ID_06,PERSON_ID_07,PERSON_ID_08,PERSON_ID_09,PERSON_ID_10,PERSON_ID_11,PERSON_ID_12"
                        DataSourceID="dsLINE_ITEM" HorizontalAlign="NotSet" EditMode="Batch" AllowMultiColumnSorting="true"  
                        AutoGenerateColumns="False" > 
                        <BatchEditingSettings EditType="ROW"  />
                        <CommandItemSettings ShowAddNewRecordButton="true" ShowSaveChangesButton="true" ShowCancelChangesButton="true" ShowRefreshButton="false" ShowExportToExcelButton="false" />

                           <telerik:GridTemplateColumn ItemStyle-CssClass="td1"  SortExpression="PERSON.NAME" HeaderText="Jan" HeaderStyle-Width="135px"  
                               DataType="System.String"
                               DataField="PERSON_ID_01" UniqueName="PERSON_NAME" ColumnGroupName="colGroup1" >
                                <ItemTemplate>     
                                    <asp:LABEL ID="lblPERSON" runat="server" ToolTip='<%# Eval("PERSON_ID_01") %>'
                                        Text='<%# If(String.IsNullOrEmpty(Eval("PERSON.NAME")), "", If(Eval("PERSON.EXPENSE_LINE_TYPE_ID").ToString() = "1", Eval("PERSON.NAME") & " (e)", Eval("PERSON.NAME") & " (c)")) %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="cboRadPerson" runat="server" DataValueField="PERSON_ID" DataTextField="NAME" DataSourceID="dsPERSON_01" CssClass="DDDropDownList" />     
                                    <Button name="btnCopyPerson01" value="01" type="button"  onclick="CopyPerson();">
                                        Copy<img src='../img3/arrow right red16.jpg' alt="Copy Person" title="Copy selected value to the rest of year." ></Button>                                                                                                                                                                                                                
                                </EditItemTemplate>                                 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn ItemStyle-CssClass="td1"  SortExpression="PERSON1.NAME" HeaderText="Feb" HeaderStyle-Width="135px" 
                                DataField="PERSON_ID_02" UniqueName="PERSON1_NAME" ColumnGroupName="colGroup2" DataType="System.String" >
                                <ItemTemplate>     
                                    <asp:LABEL ID="lblPERSON1" runat="server" Text='<%# If(String.IsNullOrEmpty(Eval("PERSON1.NAME")), "", If(Eval("PERSON1.EXPENSE_LINE_TYPE_ID").ToString() = "1", Eval("PERSON1.NAME") & " (e)", Eval("PERSON1.NAME") & " (c)")) %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                     <telerik:RadComboBox ID="cboRadPerson1" runat="server" RenderMode="Lightweight" DataValueField="PERSON_ID" DataTextField="NAME" DataSourceID="dsPERSON_02" CssClass="DDDropDownList" />   
                                </EditItemTemplate>                                 
                            </telerik:GridTemplateColumn>
                        </Columns>
                        
                    </MasterTableView>                  
              </telerik:RadGrid>

 

Peter Milchev
Telerik team
 answered on 28 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?