Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
279 views

Dear Guru's,

New here and I've been trying to implement the radcombobox to replace a lot of my current listboxes. That all seemed to go quite well, but I ran into an issue that I can't seem to solve with either documentation, google or this forum. 

Our webapplication is used in multiple large companies and it should work under any browser the client chooses to use. I found out that the vertical alignment of the text in IE is lower than in, for example Google Chrome. I can't seem to figure out how to resolve this.

Please see that attached image for an example. It's the exact same page, left is IE, right is Chrome. I used the "j" because you can clearly see the difference at the bottom.

Thank you for your time!

Best regards,

-Rem

Rumen
Telerik team
 answered on 31 Aug 2018
4 answers
156 views

Hi,

I want to be able to open the RadGrid headercontextmenu on left click instead of right. Currently when I left click, it just changes the sorting, but the sorting can already be accomplished in the context menu. This is the same issue as this thread: https://www.telerik.com/forums/how-to-show-the-radgrid-context-menu-on-left-click-instead-of-right-click but that was a while ago and currently when I implement, the context menu flashes but then disappears. Is there anyway to achieve the appropriate functionality? Here is my code that implements it: 

 

<script type="text/javascript">
     function OnColumnClick(sender, args){                 
        args.get_gridColumn().showHeaderMenu(args.domEvent);
     }
</script>

 

… In the RadGrid …

 

<ClientEvents OnColumnClick="OnColumnClick" />

Ryan
Top achievements
Rank 1
 answered on 30 Aug 2018
1 answer
190 views

I'm currently updating a chart from asp.net chart to telerik htmlchart.

I have a line series chart and for one of the series I would like to add a +/- range at each marker to replicate an ErrorBar series from traditional .net chart control.

If I set the + and - line series as having Fillstyle.BackgroundColor as transparent (hide the line) and set the MarkersAppearance.BackgroundColor to black, I was hoping that the marker appearance would overwrite the series color and display only the marker. however this is not working as the fillstyle appears to be the master. 

 

Is there any way of showing only the marker or will I have to re-write and go with a scatter and scatterline chart? Is there any equivalent to the ErrorBar type?

 

Thanks in advance.

 

 

 

 

Richy
Top achievements
Rank 1
 answered on 30 Aug 2018
3 answers
206 views
I have a rad editor on my page. The user selects a code from the drop down list and then hits edits and it pulls all the values into the page from the database. After so many times of clicking edit and changing the values I receiving an error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


How can I fix this?
I've tried this so far in the page directive.
ValidateRequest="false" 
Rumen
Telerik team
 answered on 30 Aug 2018
1 answer
277 views

Hi,

I am trying to read the value of the radtext box. It comes out empty.

Anything wrong with this code?

var addr1Text, addr2Text;
var Addr1 = $find("<%= txtAddr1.ClientID %>");
addr1Text = Addr1.get_value();
alert("Addr1Text: " +  addr1Text );
 
 <telerik:RadTextBox ID="txtAddr1" runat="server" OnTextChanged="txtAddr1_TextChanged" AutoPostBack="false">
                </telerik:RadTextBox>

 

Rumen
Telerik team
 answered on 30 Aug 2018
10 answers
1.2K+ views
Hi,

For the last few weeks I have been trying to populate the datasource of a raddropdownlist inside a radgridcolumn -but without success.  I have looked at various examples online and in the help files -but none of them seem to work for me. 

I thought that maybe one of you knew why I can't get my code to populate the dropdownlist.


The problem seems to be that (e.Item is GridEditableItem && e.Item.IsEditMode) is never true in my grid and therefore never evaluates the code inside the if statement that would bind the dropdownlist... Thanks in advance. YMA

Here is an example of the grid and the dropdownlist (CategoryIDDropDown) that I can't populate :

private void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem item = e.Item as GridEditableItem;
        // access/modify the edit item template settings here
        DropDownList list = item.FindControl("CategoryIDDropDown") as DropDownList;
        list.DataSource = mydatasource;
        list.DataBind();

{

{



<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"

            AllowAutomaticInserts="True" PageSize="10" Skin="Default" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"

            OnItemUpdated="RadGrid1_ItemUpdated" AllowAutomaticUpdates="True" AllowPaging="True"

            AutoGenerateColumns="False" OnBatchEditCommand="RadGrid1_BatchEditCommand" DataSourceID="SqlDataSource1" Height="500px" OnItemCommand="RadGrid1_ItemCommand" Visible="True">

            <ExportSettings>

                <Pdf>

                    <PageHeader>

                        <LeftCell Text="" />

                        <MiddleCell Text="" />

                        <RightCell Text="" />

                    </PageHeader>

                    <PageFooter>

                        <LeftCell Text="" />

                        <MiddleCell Text="" />

                        <RightCell Text="" />

                    </PageFooter>

                </Pdf>

            </ExportSettings>

            <MasterTableView AutoGenerateColumns="False" BatchEditingSettings-EditType="Row" CommandItemDisplay="Bottom" DataKeyNames="ProductID" DataSourceID="SqlDataSource1" EditMode="Batch" HorizontalAlign="NotSet">

                <EditFormSettings>

                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">

                    </EditColumn>

                </EditFormSettings>

                <BatchEditingSettings EditType="Cell" />

                <SortExpressions>

                    <telerik:GridSortExpression FieldName="ProductID" SortOrder="Descending" />

                </SortExpressions>

                <CommandItemSettings ExportToPdfText="Export to PDF" />

                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">

                </RowIndicatorColumn>

                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">

                </ExpandCollapseColumn>

                <Columns>

                    <telerik:GridBoundColumn DataField="ProductName" HeaderStyle-Width="210px" HeaderText="ProductName" SortExpression="ProductName" UniqueName="ProductName">

                        <ColumnValidationSettings EnableRequiredFieldValidation="true">

                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required">

                            </RequiredFieldValidator>

                            <ModelErrorMessage Text="" />

                        </ColumnValidationSettings>

                        <HeaderStyle Width="210px" />

                    </telerik:GridBoundColumn>

                    <telerik:GridTemplateColumn DataField="CategoryID" HeaderStyle-Width="180px" HeaderText="Category" UniqueName="CategoryID">

                        <ItemTemplate>

                            <%# Eval("CategoryName") %>

                        </ItemTemplate>

                        <EditItemTemplate>

                            <telerik:RadDropDownList ID="CategoryIDDropDown" runat="server" DataTextField="CategoryName" DataValueField="CategoryID">

                            </telerik:RadDropDownList>

                        </EditItemTemplate>

                        <HeaderStyle Width="180px" />

                    </telerik:GridTemplateColumn>

                    <telerik:GridNumericColumn ColumnEditorID="NumericEditor1" DataField="UnitsInStock" HeaderStyle-Width="80px" HeaderText="Units In Stock" SortExpression="UnitsInStock" UniqueName="UnitsInStock">

                        <ColumnValidationSettings>

                            <ModelErrorMessage Text="" />

                        </ColumnValidationSettings>

                        <HeaderStyle Width="80px" />

                    </telerik:GridNumericColumn>

                    <telerik:GridBoundColumn ColumnEditorID="TextEditor" DataField="QuantityPerUnit" HeaderStyle-Width="135px" HeaderText="Quantity Per Unit" SortExpression="QuantityPerUnit" UniqueName="QuantityPerUnit">

                        <ColumnValidationSettings>

                            <ModelErrorMessage Text="" />

                        </ColumnValidationSettings>

                        <HeaderStyle Width="135px" />

                    </telerik:GridBoundColumn>

                    <telerik:GridCheckBoxColumn DataField="Discontinued" HeaderStyle-Width="80px" HeaderText="Discontinued" SortExpression="Discontinued" UniqueName="Discontinued">

                        <HeaderStyle Width="80px" />

                    </telerik:GridCheckBoxColumn>

                    <telerik:GridTemplateColumn ColumnEditorID="NumericEditor1" DataField="UnitPrice" HeaderStyle-Width="80px" HeaderText="UnitPrice" SortExpression="UnitPrice" UniqueName="TemplateColumn">

                        <ItemTemplate>

                            <asp:Label ID="lblUnitPrice" runat="server" Text='<%# Eval("UnitPrice", "{0:C}") %>'></asp:Label>

                        </ItemTemplate>

                        <EditItemTemplate>

                            <span>

                            <telerik:RadNumericTextBox ID="tbUnitPrice" runat="server" Width="55px">

                            </telerik:RadNumericTextBox>

                            <span style="color: Red">

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbUnitPrice" ErrorMessage="*Required">

                                    </asp:RequiredFieldValidator>

                            </span></span>

                        </EditItemTemplate>

                        <HeaderStyle Width="80px" />

                    </telerik:GridTemplateColumn>

                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delete this product?" ConfirmTitle="Delete" HeaderStyle-Width="50px" HeaderText="Delete" Text="Delete" UniqueName="DeleteColumn">

                        <HeaderStyle Width="50px" />

                    </telerik:GridButtonColumn>

                </Columns>

                <PagerStyle PageSizeControlType="RadComboBox" />

            </MasterTableView>

            <HeaderStyle BackColor="Silver" ForeColor="White" />

            <PagerStyle PageSizeControlType="RadComboBox" />

            <FilterMenu EnableImageSprites="False">

            </FilterMenu>

        </telerik:RadGrid>

        <telerik:GridNumericColumnEditor ID="NumericEditor1" runat="server">

            <NumericTextBox ID="NumericTextBox1" runat="server" Width="60px" />

        </telerik:GridNumericColumnEditor>

        <telerik:GridTextBoxColumnEditor runat="server" ID="TextEditor">

            <TextBoxStyle Width="120px" />

        </telerik:GridTextBoxColumnEditor>

    </telerik:RadAjaxPanel>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"

        DeleteCommand="DELETE FROM [Products] WHERE [ProductID] = @ProductID" InsertCommand="INSERT INTO [Products] ([ProductName], [CategoryID], [UnitPrice], [Discontinued], [QuantityPerUnit], [UnitsInStock]) VALUES (@ProductName, @CategoryID, @UnitPrice, @Discontinued, @QuantityPerUnit, @UnitsInStock)"

        SelectCommand="SELECT [ProductID], [ProductName], [Products].[CategoryID], [Categories].[CategoryName] as CategoryName, [UnitPrice], [Discontinued], [QuantityPerUnit], [UnitsInStock] FROM [Products] JOIN Categories ON Products.CategoryID=Categories.CategoryID"

        UpdateCommand="UPDATE [Products] SET [ProductName] = @ProductName, [CategoryID] = @CategoryID, [UnitPrice] = @UnitPrice, [Discontinued] = @Discontinued, [QuantityPerUnit] = @QuantityPerUnit, [UnitsInStock] = @UnitsInStock WHERE [ProductID] = @ProductID">

        <DeleteParameters>

            <asp:Parameter Name="ProductID" Type="Int32"></asp:Parameter>

        </DeleteParameters>

        <InsertParameters>

            <asp:Parameter Name="ProductName" Type="String"></asp:Parameter>

            <asp:Parameter Name="CategoryID" Type="Int32"></asp:Parameter>

            <asp:Parameter Name="UnitPrice" Type="Decimal"></asp:Parameter>

            <asp:Parameter Name="Discontinued" Type="Boolean"></asp:Parameter>

            <asp:Parameter Name="QuantityPerUnit" Type="String"></asp:Parameter>

            <asp:Parameter Name="UnitsInStock" Type="Int16"></asp:Parameter>

        </InsertParameters>

        <UpdateParameters>

            <asp:Parameter Name="ProductName" Type="String"></asp:Parameter>

            <asp:Parameter Name="CategoryID" Type="Int32"></asp:Parameter>

            <asp:Parameter Name="UnitPrice" Type="Decimal"></asp:Parameter>

            <asp:Parameter Name="Discontinued" Type="Boolean"></asp:Parameter>

            <asp:Parameter Name="QuantityPerUnit" Type="String"></asp:Parameter>

            <asp:Parameter Name="UnitsInStock" Type="Int16"></asp:Parameter>

            <asp:Parameter Name="ProductID" Type="Int32"></asp:Parameter>

        </UpdateParameters>

    </asp:SqlDataSource>

    

Eyup
Telerik team
 answered on 30 Aug 2018
3 answers
157 views

 

Hi, we're trying to export a page and running into problems with Chrome (68.0.3440.106) 64-bit. It attempts to download the file (PDF) and fails with a network error (see attached). I suspect it can't write to the location it's trying to download to but can't see where. Everything else in Chrome just downloads to C:\Users\user\Downloads. We've tried Incognito mode with same result. We're not experiencing the issue with IE11 or Edge. Also, we're using version 2018.2.710 of the controls.

Thanks

Daniel

Rumen
Telerik team
 answered on 30 Aug 2018
3 answers
860 views

Just wanted to get feedback from developer community in choosing either the Library for User control (ASP.net Ajax) or (MVC & Kendo UI)

Just was trying to see what would be ideal path if I was doing fresh new  development

 

Wanted to get User feedback how these two different libraries behave for Web/Tablet/Mobile platform

if there is any meaningful advantage of one over the other

 

Which one of the two libraries is easier to customize for emerging display tech

 

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 29 Aug 2018
4 answers
123 views

Hi

An issue appear while selecting date, if we see in html code a style left:-1000px apply on RadCalendarPopup RadCalendarPopupShadows that disturb style by creating extra space on the page (pic attach)

Another important point here, i use dir="ltr" on body tag for english language and dir="rtl" on body tag for arabic language, the style issue only appear for arabic case in which we use dir="rtl". how we can fix this ? 

 

Rumen
Telerik team
 answered on 29 Aug 2018
0 answers
224 views

Hi 

We have implemented a Multi column, Multi selection Rad Combobox with Radgrid as itemtemplate,  we able to create multiple selection effect by clicking on grid rows area (not using check box column for selection) and able to persist selection on filtering and sorting, the issue we face is selection text doesn’t appear on combobox header on first time selection without using checkbox (clicking on row), however its working fine on 2nd, 3rd click.

ASPX code:

<telerik:RadComboBox ID="cmbUser" runat="server" Width="180px" Height="200px" DropDownWidth="180px"
  EmptyMessage="Please select..." OnClientDropDownClosing="OnEmployeeDropdownClosing" AutoPostBack="true">
<ItemTemplate>
<div style="max-height: 200px; overflow: auto;">

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"  >

<asp:Button ID="btnHidden" ClientIDMode="Static" runat="server" Style="display: none;" CausesValidation="false" />
<telerik:RadGrid ID="rGrdUsers4DDL" runat="server" AllowSorting="True" AutoGenerateColumns="False"
AllowMultiRowSelection="true" AllowFilteringByColumn="true"
CellSpacing="0" GridLines="None" OnNeedDataSource="rGrdUsers4DDL_NeedDataSource"
Width="180px" ClientSettings-EnableRowHoverStyle="True">
<ClientSettings>
<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" UseClientSelectColumnOnly="false" ></Selecting>
</ClientSettings>
<GroupingSettings CaseSensitive="false" />
<MasterTableView DataKeyNames="UserID,FullDesc,EmployeeID,Firstname" ClientDataKeyNames="UserID,FullDesc,EmployeeID,Firstname">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

<Columns>
<telerik:GridClientSelectColumn  UniqueName="SelectColumn"  ></telerik:GridClientSelectColumn>

<telerik:GridBoundColumn DataField="UserID" Visible="false" FilterControlAltText="Filter column column"
HeaderText="User ID" UniqueName="column">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EmployeeID" FilterControlAltText="Filter column1 column" CurrentFilterFunction="Contains" FilterDelay="3000" ShowFilterIcon="false"
HeaderText="Employee Code" UniqueName="column1" AutoPostBackOnFilter="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Firstname" FilterControlAltText="Filter column2 column" CurrentFilterFunction="Contains" FilterDelay="3000" AutoPostBackOnFilter="false" ShowFilterIcon="false"
HeaderText="Firstname" UniqueName="column2">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Lastname" FilterControlAltText="Filter column3 column" CurrentFilterFunction="Contains" FilterDelay="3000" AutoPostBackOnFilter="false" ShowFilterIcon="false"
HeaderText="Lastname" UniqueName="column3">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<ClientEvents OnGridCreated="OnddlEmployeeGridCreated"  OnRowCreated="OnddlEmployeeRowCreated"
OnRowDeselected="OnddlEmployeeRowDeSelected" OnRowSelected="OnddlEmployeeRowSelected"
OnRowClick="OnddlEmployeeRowClick"></ClientEvents>
</ClientSettings>
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="true" />
</div>

</ItemTemplate>
<Items>
<telerik:RadComboBoxItem runat="server" Text=""></telerik:RadComboBoxItem>
</Items>
</telerik:RadComboBox>
Java script functions:

        var clickedItemIndex;
            var selected;
            var chkbxClicked;
            var PersistSelctionArray = {};


            function OnddlEmployeeGridCreated(sender, eventArgs) {
                //alert('grid created');

                //To create array selected length of dataitems
                selected = new Array(sender.get_masterTableView().get_dataItems().length);

                //To set the select all checkbox with respect to the selected dataitems
                var masterTable = sender.get_masterTableView();
                var selectColumn = masterTable.getColumnByUniqueName("SelectColumn");
                var headerCheckBox = $(selectColumn.get_element()).find("[type=checkbox]")[0];

                if (headerCheckBox) {
                    headerCheckBox.checked = masterTable.get_selectedItems().length ==
                        masterTable.get_dataItems().length;
                }
            }

            function ClearSelection() {
                PersistSelctionArray = {};
            }

            function OnddlEmployeeRowClick(sender, args) {
                //alert('Row clicked');
                var master = sender.get_masterTableView();
                var index = args.get_itemIndexHierarchical();
                selected[index] = master.get_dataItems()[index].get_selected()
                clickedItemIndex = index;
                //alert(selected[index]);
                //master.get_dataItems()[index].set_selected(!master.get_dataItems()[index].get_selected());
            }

            function OnddlEmployeeRowSelected(sender, args) {
                //alert('Row Selected');

                var e = args.get_domEvent(); 
                //IE - srcElement, Others - target 
                var targetElement = e.srcElement || e.target;
                if (typeof (targetElement) != "undefined") {
                    //is the clicked element an input checkbox? <input type="checkbox"...> 
                    if (targetElement.tagName.toLowerCase() != "input" &&
                        (!targetElement.type || targetElement.type.toLowerCase() != "checkbox"))// && currentClickEvent) 
                    {
                        chkbxClicked = false;
                    }
                    else {
                        chkbxClicked = true;
                    }
                }
                else {
                    //args.set_cancel(true);
                }
                //alert('chkbxClicked=' + chkbxClicked);
                var index = args.get_itemIndexHierarchical();
                var UserID = args.getDataKeyValue("UserID");
                if (!chkbxClicked) {
                    //alert("row clicked=" + selected[index]);
                    if (clickedItemIndex == index && selected[index]) {
                        //args.set_cancel(true);
                        args.get_gridDataItem().set_selected(false);
                    }
                    else {
                        //To keep record of selection state
                        if (!PersistSelctionArray[UserID]) {
                            //alert('saved index=' + index);
                            PersistSelctionArray[UserID] = true;
                        }

                    }
                }
                else {
                    //To keep record of selection state
                    if (!PersistSelctionArray[UserID]) {
                        //alert('saved index=' + index);
                        PersistSelctionArray[UserID] = true;
                    }
                }

                //To set the selected text
                var grid = $find(sender.ClientID);
                var MasterTable = grid.get_masterTableView();
                var selectedRows = MasterTable.get_selectedItems();
                //alert(selectedRows.length);
                var headerValues = '';
                for (var i = 0; i < selectedRows.length; i++) {
                    var row = selectedRows[i];
                    var cell = MasterTable.getCellByColumnUniqueName(row, "column1")
                    if (headerValues != '')
                        headerValues = headerValues + ',';
                    headerValues = headerValues + cell.textContent;
                }
                var combo = $find(sender.ClientID.replace('_i0_rGrdUsers4DDL', ''));
                //alert('header values='+headerValues);
                combo.set_text(headerValues);
//combo.commitChanges();
                //$('#btnHidden').click();
                //alert(combo.get_text());
            }
            function OnddlEmployeeRowDeSelected(sender, args) {
                //alert('Row DeSelected');

var e = args.get_domEvent(); 
                //IE - srcElement, Others - target 
                var targetElement = e.srcElement || e.target;
                if (typeof (targetElement) != "undefined") {
                    //is the clicked element an input checkbox? <input type="checkbox"...> 
                    if (targetElement.tagName.toLowerCase() != "input" &&
                        (!targetElement.type || targetElement.type.toLowerCase() != "checkbox"))// && currentClickEvent) 
                    {
                        chkbxClicked = false;
                    }
                    else {
                        chkbxClicked = true;
                    }
                }
                else {
                    //args.set_cancel(true);
                }
                //alert('chkbxClicked=' + chkbxClicked);
                var index = args.get_itemIndexHierarchical();
                var UserID = args.getDataKeyValue("UserID");
                if (!chkbxClicked) {
                    if (clickedItemIndex != index) {
                        //args.set_cancel(true);
                        //alert('clickedItemIndex=' + clickedItemIndex + ' index=' + index)
                        args.get_gridDataItem().set_selected(true);
                    }
                    else {
                        //To keep record of selection state
                        if (PersistSelctionArray[UserID]) {
                            //alert('Removed index=' + index);
                            PersistSelctionArray[UserID] = false;
                        }
                    }
                }
                else {
                    //To keep record of selection state
                    if (PersistSelctionArray[UserID]) {
//alert('Removed index=' + index);
                        PersistSelctionArray[UserID] = false;
                    }
                }

                //To set the selected text
                var grid = $find(sender.ClientID);
                var MasterTable = grid.get_masterTableView();
                var selectedRows = MasterTable.get_selectedItems();
                var headerValues = '';
                for (var i = 0; i < selectedRows.length; i++) {
                    var row = selectedRows[i];
                    var cell = MasterTable.getCellByColumnUniqueName(row, "column1")
                    if (headerValues != '')
                        headerValues = headerValues + ',';
                    headerValues = headerValues + cell.textContent;
                }
                var combo = $find(sender.ClientID.replace('_i0_rGrdUsers4DDL', ''));
                combo.set_text(headerValues);
            }

            function OnddlEmployeeRowCreated(sender, args) {
                //var index = args.get_itemIndexHierarchical();
                var UserID = args.getDataKeyValue("UserID");
                if (PersistSelctionArray[UserID]) {
                    args.get_gridDataItem().set_selected(true);
                }
            }

            function OnEmployeeDropdownClosing(sender, args) {
                var e = args.get_domEvent();
                //IE - srcElement, Others - target 
                var targetElement = e.srcElement || e.target;
                if (typeof (targetElement) != "undefined") {
                    if (targetElement.tagName.toLowerCase() == "td")// && currentClickEvent) 
                    {
                        if (clickedItemIndex>-1) {
                            args.set_cancel(true);
                        }
                    }
                }
                else {
                    //args.set_cancel(true);
                }

                clickedItemIndex = -1;
            }

 

 

Zain
Top achievements
Rank 1
 asked on 29 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?