I have a button in which I don't want to use the alert box for a confirmation and I intend to use a jquery modal window for but I can't seem to get it to work.
$('#grid').kendoGrid({
     ...
     editable: { confirmation:false, mode:'popup' } // this turns off the delete confirmation alert but allows popups
     ...
});
I've tried adding a click event inside the grid script and outside, but nothing is triggering the event.
As a test, I used the 'a' tag but nothing is working yet.
$('a').click(function(e){
        e.preventDefault();
        e.stopPropagation();
        var title = '<span class="warning">Warning</span>';
        $.get('/main/test'), function(data){
               test(data, modal.large, title);
        });
});
I'd use a custom kendotemplate but I am using a custom jquery modal instead and I can't seem to trigger it.
I have a button in which I don't want to use the alert box for a confirmation and I intend to use a jquery modal window for but I can't seem to get it to work.
$('#grid').kendoGrid({
...
editable: { confirmation:false, mode:'popup' } // this turns off the delete confirmation alert but allows popups
...
});
I've tried adding a click event inside the grid script and outside, but nothing is triggering the event.
As a test, I used the 'a' tag but nothing is working yet.
$('a').click(function(e){
        e.preventDefault();
        e.stopPropagation();
        var title = '<span class="warning">Warning</span>';
$.get('/main/test'), function(data){
test(data, modal.large, title);
});
});
I'd use a custom kendotemplate but I am using a custom jquery modal instead and I can't seem to trigger it.
Hi,
First of all, I'm using the latest version of your Telerik.Web.UI.dll (2016.3.914.40). I'm trying to set RadDropDownTree HeaderTemplate dynamically as I did for RadComboBox. Here is my code :
<telerik:RadDropDownTree ID="RadDropDownTree" runat="server" EnableViewState="false" CheckBoxes="None"      OnNodeDataBound="RadDropDownTree_NodeDataBound" <br>    DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Text" DataValueField="Value"<br>    Width="100%" RenderMode="Lightweight" Visible="false" Skin="Metro"><br></telerik:RadDropDownTree>
I'm really struggling to work this out. My grid columns are currently:
columns.ForeignKey(c => c.CustomerId, (System.Collections.IEnumerable)ViewData["CustomersDropDown"], "Id", "Name").Title("Customer Name");columns.Bound(c => c.Filename).Title("File"));columns.Bound(c => c.Schema).Title("Schema"));//.EditorTemplateName("EnumDropDown");
The ForeignKey field displays fine and I'm happy with it. The "Schema" field (last line) is an enumerated type. Now the way this dropdown looks when the grid is in edit mode is vastly different to what the ForeignKey dropdown looks like. OK, so I just want to apply the same CSS in edit mode. However, I can't seem to find out how. I've tried adding a template which I don't think I got right (code below, or at least my last attempt at it) in order to add the CSS. It seems, from searching, that my only recourse is to take the enumerated type, turn it into a selectlist in the back end simply so I can use the ForeignKey property of Kendo UI instead of Bound. This seems a little long way to go simply to apply some CSS while in edit mode. The grid, functionally works fine otherwise.
My EnumDropDown as it stands now, though has gone through many previous edits in an effort to get it going. This current incarnation seems to format it, but displays no data.
@model Common.Schema@(Html.Kendo().DropDownListFor(m => m)    .BindTo(Enum.GetNames(typeof(Common.Schema)))    .HtmlAttributes(new { style = "k-dropdown" }))
hi
how do i change the background color all white? As you can see from the attachment there are some white and gray. Thanks a lot

The group panel for drag and drop grouping at the top of the grid contains nested tables. See sample markup below. Those tables contain empty TH elements which are not displayed (display=none), but still generate errors by our WAI accessibility checker tool. Is there a property I can set that will set the text for those TH elements? I've set the 3 offending TH elements in bold below.
Thanks,
Ray
<div id="ctl00_MasterHolder_rgdUsrReport_GroupPanel" style="width:100%;">
<table id="ctl00_MasterHolder_rgdUsrReport_GroupPanel_TB" class="rgGroupPanel" summary="The table which holds all grouping nested tables and is used as a wrapper." style="width:100%;border-spacing:0;border-collapse:separate;" role="presentation">
<caption>
MainTable
</caption><thead>
<tr style="display:none;">
<th scope="col"></th>
</tr>
</thead><tbody>
<tr>
<td><table summary="The nested grouping table which holds the group items table holding all grouped column items." style="width:100%;border-spacing:0;">
<caption>
Nested Grouping Table
</caption><thead>
<tr style="display:none;">
<th scope="col"></th>
</tr>
</thead><tbody>
<tr>
<td><table cellpadding="2" summary="The table holding all group items which are positioned in the group panel." style="border-style:None;width:100%;border-spacing:0;">
<caption>
Group Items Table
</caption><thead>
<tr style="display:none;">
<th scope="col"></th>
</tr>
</thead><tbody>
<tr>
<th scope="col" title="Drag out of the bar to ungroup" class="rgGroupItem" style="white-space: nowrap; cursor: move;">Data Collection Name <input type="button" name="ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl03" value=" " onclick="javascript:__doPostBack('ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl03','')" title="Sorted asc" class="rgSortAsc"> <input type="button" name="ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl04" value=" " onclick="$find('ctl00_MasterHolder_rgdUsrReport').get_masterTableView()._ungroupByExpression('0:0'); return false;__doPostBack('ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl04','')" title="Click here to ungroup" class="rgUngroup"></th><td>-</td><th scope="col" title="Drag out of the bar to ungroup" class="rgGroupItem" style="white-space: nowrap; cursor: move;">Institution Name <input type="button" name="ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl06" value=" " onclick="javascript:__doPostBack('ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl06','')" title="Sorted asc" class="rgSortAsc"> <input type="button" name="ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl07" value=" " onclick="$find('ctl00_MasterHolder_rgdUsrReport').get_masterTableView()._ungroupByExpression('0:1'); return false;__doPostBack('ctl00$MasterHolder$rgdUsrReport$GroupPanel$ctl07','')" title="Click here to ungroup" class="rgUngroup"></th><td style="width:100%;"></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</div>

Hi,
I can assign css style for Radgrid Frozen div using Radgrid name
div.RadGrid #rgGrid_Frozen
      {
           overflow-y: auto !important;
           overflow-x: auto !important;
      }
But i want to use this one globally like without Radgid ID.
This code is not working
div.RadGrid div#_Frozen
      {
           overflow-y: auto !important;
           overflow-x: auto !important;
      }
Please let me know
Thanks,

<telerik:RadCodeBlock ID="mainRadCodeBlock" runat="server">            <script type="text/javascript">                function saveChanges() {                    var grid = $find("<%=GridExample.ClientID %>");                grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());            }            </script>        </telerik:RadCodeBlock>        <asp:Button ID="btnSave" runat="server" Text="Save" ToolTip="Save changes to database" OnClientClick="saveChanges();return false;" />        <telerik:RadGrid ID="GridExample" runat="server" AutoGenerateColumns="false"            Skin="Simple"            AllowPaging="False"            AllowSorting="false"            AllowFilteringByColumn="true"            OnBatchEditCommand="GridExample_BatchEditCommand"            OnNeedDataSource="GridExample_NeedDataSource">            <GroupingSettings CaseSensitive="false" />            <ClientSettings>                <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />                <Selecting AllowRowSelect="true" />            </ClientSettings>            <MasterTableView HeaderStyle-HorizontalAlign="Center" Width="100%" AutoGenerateColumns="false"                DataKeyNames="ID_COUNTRY"                EditMode="Batch">                <BatchEditingSettings EditType="Cell" OpenEditingEvent="MouseOver" />                <Columns>                    <telerik:GridBoundColumn DataField="COMMENTS" HeaderText="Comments" HeaderTooltip="Comments" HeaderStyle-Width="100px" ItemStyle-Width="100px" AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterControlWidth="100%"></telerik:GridBoundColumn>                    <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterControlWidth="100%" UniqueName="SLOT" HeaderText="Slot" DataType="System.Int32" DataField="ID_SLOT" SortExpression="SLOT" ColumnGroupName="Devices" HeaderStyle-Width="150px" ItemStyle-Width="150px">                        <ItemTemplate>                            <%# Eval("SLOT") %>                        </ItemTemplate>                        <EditItemTemplate>                            <telerik:RadComboBox ID="ddlSLOT" runat="server"                                EnableLoadOnDemand="true"                                Filter="Contains"                                AllowCustomText="false"                                DataTextField="SLOT"                                DataValueField="ID_SLOT"                                OnItemsRequested="ddlSLOT_ItemsRequested"                                Style="width: 135px;" class="caronte-portfolio-ddl-slot">                            </telerik:RadComboBox>                        </EditItemTemplate>                    </telerik:GridTemplateColumn>                </Columns>            </MasterTableView>        </telerik:RadGrid>protected void GridExample_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)    {        DataTable table = new DataTable();        table.Columns.Add("ID_COUNTRY", typeof(int));        table.Columns.Add("COMMENT", typeof(string));        table.Columns.Add("ID_SLOT", typeof(int));        table.Columns.Add("SLOT", typeof(string));        DataRow row = null;        for (int i = 0; i < 5; i++)        {            row = table.NewRow();            row["ID_COUNTRY"] = i;            row["ID_SLOT"] = 1;            row["SLOT"] = "Flagship < 4,5\" SP";            table.Rows.Add(row);        }        (sender as RadGrid).DataSource = table;    }    protected void ddlSLOT_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)    {        DataTable table = new DataTable();        table.Columns.Add("ID_SLOT", typeof(int));        table.Columns.Add("SLOT", typeof(string));        DataRow row = table.NewRow();        row["ID_SLOT"] = 1;        row["SLOT"] = "Flagship < 4,5\" SP";        table.Rows.Add(row);        RadComboBox ddlSlot = sender as RadComboBox;        ddlSlot.DataSource = table;        ddlSlot.DataBind();    }    protected void GridExample_BatchEditCommand(object sender, GridBatchEditingEventArgs e)    {        foreach (GridBatchEditingCommand command in e.Commands)        {                     }    }
I am trying to use the RadProgressArea to show a progress bar for processing 100,000+ records.
It worked fine in my sample application but when deploying it failed to show. I narrowed down the problem to tasks that occur prior to this progress bar loop that take upwards of 12 seconds. Then after some testing I found that if I manually add a .Sleep() to the thread for anything more than 5 seconds (to simulate the delay) it would cause the RadProgressArea to not show at all. Basically if I take the Telerik example and simply add a 6s delay in front of it then it never works.
Am I missing something obvious here? Thank you in advance for my sanity.
System.Threading.Thread.Sleep(5000) ' ANYTHING 5s OR HIGHER MAKES PROGRESS BAR NEVER SHOW' initialize variablesDim progress As RadProgressContext = RadProgressContext.Current' loop through recordsFor i As Integer = 0 To TotalRecords - 1    ' update progress bar    UpdateProgressBar(progress, dtStarted, TotalRecords, i)    ' SOME WORK STUFF GOES HERENext
Selection out of rangeParameter name: value 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.ArgumentOutOfRangeException: Selection out of rangeParameter name: valueSource Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [ArgumentOutOfRangeException: Selection out of rangeParameter name: value]   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +259   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +10   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +83   Telerik.Web.UI.RadComboBox.PerformSelect() +21   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73   System.Web.UI.Control.DataBindChildren() +211   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102   System.Web.UI.Control.DataBind() +15   System.Web.UI.Control.DataBindChildren() +211   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102   System.Web.UI.Control.DataBind() +15   Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +515   Telerik.Web.UI.GridTableView.CreateFilteringItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead) +100   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +496   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +499   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142   Telerik.Web.UI.GridTableView.PerformSelect() +4   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73   Telerik.Web.UI.GridTableView.DataBind() +239   Telerik.Web.UI.GridTableView.Rebind() +48   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +515   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +38   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +115   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +46   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +5990   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565  --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618<telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name" HeaderStyle-Width="160px">                        <FilterTemplate>                            <telerik:RadComboBox ID="RadComboBoxTitle" DataType="System.Int32" UniqueName="Name"                                Height="200px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Name").CurrentFilterValue %>'                                runat="server" OnClientSelectedIndexChanged="TitleIndexChanged">                                <Items>                                    <telerik:RadComboBoxItem Text="All" />                                </Items>                                                             </telerik:RadComboBox>                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">                                <script type="text/javascript">                                    function TitleIndexChanged(sender, args) {debugger;                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");                                        tableView.filter("Name", args.get_item().get_value(), "EqualTo");                                    }                                </script>                            </telerik:RadScriptBlock>                        </FilterTemplate>                    </telerik:GridBoundColumn>  protected void Page_Load(object sender, EventArgs e)        {                    }protected void VariableGrd_ItemDataBound(object sender, GridItemEventArgs e)        {            if (e.Item is GridFilteringItem)            {                //RadComboBox combolist = (e.Item as GridEditableItem).FindControl("RadComboBoxTitle") as RadComboBox;                //combolist.DataSource = variableCollection["Name"];                //combolist.DataBind();                GridFilteringItem filterItem = (GridFilteringItem)e.Item;                RadComboBox combo = (RadComboBox)filterItem.FindControl("RadComboBoxTitle");                var test = variableCollection.Select(var => new { Name = var.VariableAliasName, Value = var.VariableAliasName }).Distinct().ToList();                combo.DataSource = test;               // combo.DataSource = perso;                                 combo.DataTextField = "Name";                combo.DataValueField = "Value";                combo.ClearSelection();                combo.DataBind();            }