Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
45 views
I've created a templated ASP.NET user control based on the RadDock control. However, when adding such a control to a RadDockZone causes a runtime error stating that it can only contain RadDock controls. Is there any way to solve this?
See here for code: RadDockzone question on Stackoverlow.
Cheers
Slav
Telerik team
 answered on 10 Apr 2013
1 answer
54 views
Is there a RadEditor that will work with mcms2002 & css3/html5? I know mcms is no longer supported but we've more than a dozen major sites (including bccdc.ca) dependent upon it. Urgently looking for any content editor that will work. Thx!! ... Chris
Rumen
Telerik team
 answered on 10 Apr 2013
2 answers
67 views
I am facing a problem.
I am currently using Telerik version 2012.2.724.40 and everything is working.
However, I am unable to upgrade to version 2013.1.326.40. 
When I do, I get the following error:
Sys is undefined
"ASP.NET Ajax client-side framework failed to load."
 

I tried everything posted on your forum with no success so I decided to narrow the bug and found the cause.

I am using a RadButton in a composite control.
Because our clients are mainly using IE7, all our applications are designed in IE7 mode.
This is the cause of the bug.  I get no error if I remove the IE7 mode.
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title></title>
</head>

I must keep the Ie7 mode.  Is there a workaround ?
Here is a code sample reproducing the bug.

MyCompositeControl.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace TestCompositeControl
{
    public class MyCompositeControl : CompositeControl
    {
        protected override void CreateChildControls()
        {
            RadButton radButtonTest = new RadButton();
            radButtonTest.ID = "radButtonTest";
            radButtonTest.Text = "Test";
            Controls.Add(radButtonTest);
             
            base.CreateChildControls();
        }
    }
}

Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestCompositeControl.Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><%--Remove this line to hide the bug.--%>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="true" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"/>
        Remove the IE=EmulateIE7 to hide the bug.<br />
        <uc:MyCompositeControl id="MyCompositeControl1" runat="server"></uc:MyCompositeControl>
    </form>
</body>
</html>

Web.Config
<configuration>
...
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
        <add tagPrefix="uc" namespace="TestCompositeControl" assembly="TestCompositeControl" />
      </controls>
    </pages>
...
 </system.web>
...
</configuration>
Veronique
Top achievements
Rank 1
 answered on 10 Apr 2013
1 answer
128 views
Hello Experts,

  I have added ComboBox in RadGrid, In ComboBox i have options : eg: 1)Cutomers 2)Managers etc.
 If i have select Customers,Rad window should open with customer items and so.
  
I want to call javascript dynamically and below is the exact post : 

   http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

(But it is working with hyperlink, when i used with RadCombo box it is not working)

Code In RadGrid ->

<telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
                    <ItemTemplate>
                      
                         <telerik:RadComboBox ID="RadComboBox2" runat="server" AutoPostBack="true" OnClientSelectedIndexChanged="SelectedIndexChanged" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged">
                            <Items>
                                <telerik:RadComboBoxItem />
                                <telerik:RadComboBoxItem Text="Customers" Value="1" />
                                <telerik:RadComboBoxItem Text="Managers" Value="2" />
                            </Items>
                        </telerik:RadComboBox>  <%--OnClientSelectedIndexChanged="SelectedIndexChanged"--%>
                    
                    </ItemTemplate>
                </telerik:GridTemplateColumn> 


Code Behind:
-------------------------
                RadComboBox RadComboBox2 = (RadComboBox)e.Item.FindControl("RadComboBox2");
                RadComboBox2.Attributes["onclick"] = String.Format("return SelectedIndexChanged('{0}','{1}','{2}','{3}');",sender,e, row.Id, e.Item.ItemIndex);


Javascript
----------------------
<script type="text/javascript">
            function SelectedIndexChanged(sender, eventArgs, id, RowIndex) {
                var item = eventArgs.get_item();
               
                var txt = $get(sender.get_id());
                txt.value = item.get_value();
                txt.text = item.get_text();
                if (txt.text == "NewText4") {
                    if (confirm('Are you sure')) {
                        var grid = $find("<%= RadGrid1.ClientID %>");

                        var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                        grid.get_masterTableView().selectItem(rowControl, true);

                        window.radopen("EditUserDetail.aspx?UserID=" + id, "UserListDialog");
                    }
                    else {

                    }
                }

            }
    </script>
           

           Here the RadWindow is not opening. Please Help with this, 

Thanks in Advance.
   
Boyan Dimitrov
Telerik team
 answered on 10 Apr 2013
5 answers
343 views

Hi there,

Below is my fine-working ExportToExcel function.

Protected Sub btnExportToExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExportToExcel.Click     
    
        RadGrid1.MasterTableView.DetailTables(0).Visible = False ' purposely make DetailTable invisible but it shows us BLANK row in Excel..  
        RadGrid1.ExportSettings.ExportOnlyData = True    
        RadGrid1.ExportSettings.IgnorePaging = True    
        RadGrid1.ExportSettings.OpenInNewWindow = True    
        RadGrid1.MasterTableView.ExportToExcel()     
    
End Sub    
 

I am using a RadGrid attached with a DetailTable.
The only problem I am facing is when it come to Excel exporting, and I was trying to make the DetailTable not visible in Excel report.. but it was like a BLANK row appears alternately in between every data row. (refer to attached screenshot excel.jpg)

It causing problems when we doing data analyzing and formating. Would it be any solution for this issue?

Thank you very much. :)
waiwai
Peter
Top achievements
Rank 1
 answered on 10 Apr 2013
1 answer
203 views
Hi,

There is a drop down list and a RadTabStrip. When I select an item from the drop down, is it possible to select a corresponding page view  based on value and index? The drop down value and pageview index are same.

Thanks,
Karl.
Princy
Top achievements
Rank 2
 answered on 10 Apr 2013
1 answer
96 views
Wondering if/when/is this feature supported?  I calculate the numbers "on the fly"....
Antonio Stoilkov
Telerik team
 answered on 10 Apr 2013
3 answers
199 views
Hello,

I have a treelist which shows an overview of all contentpages. I have implemented a editbutton in the treelisttemplate which will navigate the user to another page to edit the specific contentpage. I want to achieve the same result when the user doubleclick on a specific row in the treelist. I have achieved in with a single click (ClientSettings-AllowPostBackOnItemClick="true") but is this also possible on a doubleclick event (client)

Thanks

Patrick
Maria Ilieva
Telerik team
 answered on 10 Apr 2013
3 answers
204 views
I'm using the example on your website with RadGrid autorefresh which includes UpdatePanel, UpdateProgress and ASP.NET AJAX Timer.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/aspajaxgridapplication/defaultcs.aspx?product=grid

I have 2 problems with this example and I couldn't make it work...

The scrollbar keeps jumping to the top everytime there's a refresh...
In your example you have just a few rows but if you have more rows the focus will jump to the top if the user is looking at a bottom row.

Another major issue for us is we need one column to be editable for user comments and the problem is the values are not stored in the datatable that is binded to the RadGrid.
When I remove the timer and updatepanel the edit works fine.

I would appreciate your help since our business requirement is to get the RadGrid auto refreshed but still allow it to be editable.

I appreciate your help.

Here's a snippet of my code:

<telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManager1" >
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="grid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid" />
                        <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                          
                          
                    </UpdatedControls>
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="btnLock">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid" />
                    </UpdatedControls>
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="btnRescan">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid" />
                    </UpdatedControls>
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="btnUpdate">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid" />
                         <telerik:AjaxUpdatedControl ControlID="UpdatePanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnCancel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                  
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
<div style="padding-left:5px;padding-top:20px;">
<span class="header2"> Document Scanning Dashboard</span>
      <br/>
<br />
 <asp:CheckBoxList ID="cbxSelectQueue" runat="server" AutoPostBack="true"  RepeatDirection="Horizontal" RepeatLayout="Table" OnSelectedIndexChanged="cbxSelectQueue_SelectedIndexChanged">
                 <asp:ListItem Value="1" Text="Blue Matrix Dashboard" Selected="True">
                </asp:ListItem>
                <asp:ListItem Value="2" Text="Manual Upload Dashboard" Selected="True">
                </asp:ListItem>
                </asp:CheckBoxList>
                    <br />
  
<table cellpadding="1" cellspacing="1" border="0">
<tr>
<td colspan="3">
     
    <table cellpadding="1" cellspacing="1"  border="0" >
      
    <tr>    
    <td>Start Date:</td>
    <td>
        <telerik:RadDatePicker ID="dtpStart" MinDate="2011/1/1" runat="server"  >
        </telerik:RadDatePicker>
    </td>
    <td>  </td>
    <td>End Date:</td>
    <td><telerik:RadDatePicker ID="dtpEnd" MinDate="2011/1/1" runat="server" >
        </telerik:RadDatePicker>
        </td>
    </tr>
    <tr>    
    <td>Status:</td>
    <td colspan="2">
        <telerik:RadComboBox ID="cbxStatus" runat="server" Width="123" >
        </telerik:RadComboBox>
    </td>
    <td>  </td>
    <td>
        <asp:Button ID="btnFilter" runat="server" Text="Filter" OnClick="btnFilter_Click">
        </asp:Button>
    </td>
    </tr>
      
    </table>
    
</td>
</tr>
<tr>
<td colspan="3"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="dtpStart" ErrorMessage="Enter a date!"></asp:RequiredFieldValidator>
 <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="dtpEnd" ErrorMessage="Enter a date!"></asp:RequiredFieldValidator>
 <asp:CompareValidator ID="dateCompareValidator" runat="server" ControlToValidate="dtpEnd" ControlToCompare="dtpStart" Operator="GreaterThanEqual" Type="Date" ErrorMessage="The end date must be after the start date."></asp:CompareValidator></td>
</tr>
<tr>
<td>
<asp:Label ID="Label1" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#FF8080" />
<asp:Label ID="Label2" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#00C000" />
</td>
<td colspan="2" align="right">
    <asp:Button runat="server" ID="btnRefresh" OnClick="btnRefresh_Click" Text="Refresh">
    </asp:Button>
</td>
</tr>
<tr>
<td colspan="3" style="height:auto;">
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
DisplayAfter="0">
                <ProgressTemplate>
                     
                </ProgressTemplate>
            </asp:UpdateProgress>
    <asp:Timer ID="refreshTimer" runat="server" Interval="5000" OnTick="refreshTimer_Tick" EnableViewState="False" >
                    </asp:Timer>
       <asp:UpdatePanel ID="UpdatePanel1" runat="server" EnableViewState="False" 
        ChildrenAsTriggers="False" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="refreshTimer" EventName="Tick" />
            
        </Triggers>
        <ContentTemplate>
             
<span class="header3">Active Documents</span>
    <telerik:RadGrid ID="grid" runat="server" AllowPaging="True" AllowSorting="True" 
                GridLines="Both" AutoGenerateColumns="False" CellSpacing="0" CellPadding="0" 
                OnNeedDataSource="grid_NeedDataSource" Skin="Office2007" PageSize="50" 
                OnDeleteCommand="grid_DeleteCommand" OnItemCreated="grid_ItemCreated" 
                OnItemUpdated="grid_ItemUpdated" OnItemInserted="grid_ItemInserted" Width="1035" AllowAutomaticUpdates="false" onupdatecommand="grid_UpdateCommand"  >
  
<MasterTableView DataKeyNames="DocumentQueueID">
  
    <Columns>
        <telerik:GridBoundColumn DataField="DocumentQueueID" 
            UniqueName="columnDocumentQueueID" Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" HeaderStyle-Width="10px"  />
  
         <telerik:GridTemplateColumn UniqueName="columnTitle" SortExpression="Title" HeaderText="Title" HeaderStyle-Width="220px" >
                  <ItemTemplate>
                  <asp:Image ID="imgWasReplaced" runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "WasReplaced")%>' AlternateText="Replaced" ImageUrl="../Images/ArrowUp.gif" />
                    
                     <asp:LinkButton ID="btnTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title")%>' OnClientClick='<%# Eval("DocumentQueueID","return ShowFileWindow( {0} )")%>'  />
                     <br />
                     <asp:Image ID="imgLock" runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "Locked")%>' AlternateText="Locked" ImageUrl="../Images/Security.GIF" />
                     <asp:Label ID="lblLock" runat="server" Font-Size="XX-Small" Visible='<%# DataBinder.Eval(Container.DataItem, "Locked")%>' Text=""></asp:Label>
                  </ItemTemplate>
                 </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="DocID" 
            HeaderText="Doc ID" 
            UniqueName="columnDocID" HeaderStyle-Width="73px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Analyst" 
            HeaderText="Analyst" 
            UniqueName="columnAnalyst" HeaderStyle-Width="80px"> 
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="LastUpdatedDate" 
            HeaderText="Update Date"
            UniqueName="columnLastUpdatedDate" HeaderStyle-Width="73px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Status" 
            HeaderText="Status" 
            UniqueName="columnStatus" HeaderStyle-Width="55px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="LastScanDate" 
            HeaderText="Scan Date" 
            UniqueName="columnLastScanDate" HeaderStyle-Width="70px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="NoOfPages" 
            HeaderText="Pages" 
            UniqueName="columnNoOfPages" HeaderStyle-Width="35px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="UploadedBy" 
            HeaderText="Uploaded By" 
            UniqueName="columnUploadedBy" HeaderStyle-Width="75px">
        </telerik:GridBoundColumn>
  
         <telerik:GridTemplateColumn UniqueName="columnRescan" HeaderStyle-Width="55px">
                  <ItemTemplate>
                     <asp:LinkButton ID="btnRescan" runat="server" AutoPostBack="true" Text="Re-Scan" OnClick="btnRescan_Click" />
                  </ItemTemplate>
                 </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="columnLock" HeaderStyle-Width="35px">
                  <ItemTemplate>
                     <asp:LinkButton ID="btnLock" runat="server" AutoPostBack="true" Text="Lock" OnClick="btn_Click" />
                  </ItemTemplate>
                 </telerik:GridTemplateColumn>
         
        <telerik:GridTemplateColumn UniqueName="columnViewResults" HeaderStyle-Width="50px"  >
  
                  <ItemTemplate>
                    
                  <asp:LinkButton ID="btnViewResults" runat="server" Font-Size="Small" Text='<%# DataBinder.Eval(Container.DataItem, "ViewResultsText")%>' Visible='<%# DataBinder.Eval(Container.DataItem, "ViewResultsVisible")%>' />
  
                  <asp:Label ID="lblResults" runat="server" Font-Size="Small" Visible='<%# DataBinder.Eval(Container.DataItem, "lblResultsVisible")%>' Text='<%# DataBinder.Eval(Container.DataItem, "lblResultsText")%>'></asp:Label>
                 <br />
                  <asp:Label ID="lblHitsNum" runat="server" Font-Size="XX-Small" Visible='<%# DataBinder.Eval(Container.DataItem, "lblHitsNumVisible")%>' Text='<%# DataBinder.Eval(Container.DataItem, "lblHitsNumText")%>'></asp:Label>
                    
                  </ItemTemplate>
                    
                 </telerik:GridTemplateColumn>
         
        <telerik:GridButtonColumn ConfirmText="Are you sure you would like to remove this document from the queue?" ConfirmDialogType="RadWindow" ConfirmTitle="Remove Document" ButtonType="ImageButton" CommandName="Delete" HeaderStyle-Width="10px" />
        <telerik:GridBoundColumn  HeaderText="Comments" HeaderButtonType="TextButton"
                                DataField="UserComments" Visible="false" >
                                  
                            </telerik:GridBoundColumn>
    </Columns>
    <EditFormSettings EditFormType="Template">
                <FormTemplate>
                    <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"
                        style="border-collapse: collapse; background: white;">
                        <tr >
                            <td colspan="2" class="header" >
                                <b>Add/Update Comments</b>
                            </td>
                        </tr>
          
                        <tr>
                            <td>
                                <table id="Table4" cellspacing="1" cellpadding="1" width="550" border="0" >
               
             <tr>
                                        <td>
                                              
                                        </td>
                                        <td>
                                            <asp:Label ID="lblID" Text='<%# Bind( "DocumentQueueID") %>' runat="server" Visible="false" >
                                            </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Comments:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtComments" Text='<%# Bind( "UserComments") %>' runat="server" TextMode="MultiLine" Rows="5" Width="400" >
                                            </asp:TextBox>
                                        </td>
                                    </tr>
                                     
                                </table>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2">
                               <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update"  ></asp:Button> 
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button>
  
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
  
    <PagerStyle AlwaysVisible="True" Position="Top"  />
</MasterTableView>
    </telerik:RadGrid>
 </ContentTemplate>
 </asp:UpdatePanel>
<br />
<br />
<span class="header3">Published Documents</span>
<telerik:RadGrid ID="gridPublished" runat="server" AllowPaging="True" AllowSorting="True" GridLines="Both" AutoGenerateColumns="False" CellSpacing="0" CellPadding="0" OnNeedDataSource="grid_NeedDataSource" Skin="Office2007" PageSize="50" OnDeleteCommand="grid_DeleteCommand" OnItemCreated="grid_ItemCreated" Width="1030"  >
  
<MasterTableView DataKeyNames="DocumentQueueID">
  
    <Columns>
        <telerik:GridBoundColumn DataField="DocumentQueueID" 
            UniqueName="columnDocumentQueueID" Visible="False">
        </telerik:GridBoundColumn>
          
         <telerik:GridTemplateColumn UniqueName="columnTitle" SortExpression="Title" HeaderText="Title"   >
                  <ItemTemplate>
                  <asp:Image ID="imgWasReplaced" runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "WasReplaced")%>' AlternateText="Replaced" ImageUrl="../Images/ArrowUp.gif" />
                    
                     <asp:Label ID="lblTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title")%>' />
                     <br />
                     <asp:Image ID="imgLock" runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "Locked")%>' AlternateText="Locked" ImageUrl="../Images/Security.GIF" />
                     <asp:Label ID="lblLock" runat="server" Font-Size="XX-Small" Visible='<%# DataBinder.Eval(Container.DataItem, "Locked")%>' Text=""></asp:Label>
                  </ItemTemplate>
                 </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="DocID" 
            HeaderText="Doc ID" 
            UniqueName="columnDocID" HeaderStyle-Width="73px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Analyst" 
            HeaderText="Analyst" 
            UniqueName="columnAnalyst" HeaderStyle-Width="80px"> 
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="LastUpdatedDate" 
            HeaderText="Update Date"
            UniqueName="columnLastUpdatedDate" HeaderStyle-Width="78px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Status" 
            HeaderText="Status" 
            UniqueName="columnStatus" HeaderStyle-Width="75px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="LastScanDate" 
            HeaderText="Scan Date" 
            UniqueName="columnLastScanDate" HeaderStyle-Width="78px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="NoOfPages" 
            HeaderText="Pages" 
            UniqueName="columnNoOfPages" HeaderStyle-Width="35px">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="UploadedBy" 
            HeaderText="Uploaded By" 
            UniqueName="columnUploadedBy" HeaderStyle-Width="75px">
        </telerik:GridBoundColumn>
  
         <telerik:GridTemplateColumn UniqueName="columnRescan" HeaderStyle-Width="40px" Visible="false">
                  <ItemTemplate>
                     <asp:LinkButton ID="btnRescan" runat="server" AutoPostBack="true" Text="Re-Scan" OnClick="btnRescan_Click" />
                  </ItemTemplate>
                 </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="columnLock" HeaderStyle-Width="35px" Visible="false">
                  <ItemTemplate>
                     <asp:LinkButton ID="btnLock" runat="server" AutoPostBack="true" Text="Lock" OnClick="btn_Click" />
                  </ItemTemplate>
                 </telerik:GridTemplateColumn>
         
        <telerik:GridTemplateColumn UniqueName="columnViewResults" HeaderStyle-Width="76px"  >
  
                  <ItemTemplate>
                    
                  <asp:LinkButton ID="btnViewResults" runat="server" Font-Size="Small" Text='<%# DataBinder.Eval(Container.DataItem, "ViewResultsText")%>' Visible='<%# DataBinder.Eval(Container.DataItem, "ViewResultsVisible")%>' />
  
                  <asp:Label ID="lblResults" runat="server" Font-Size="Small" Visible='<%# DataBinder.Eval(Container.DataItem, "lblResultsVisible")%>' Text='<%# DataBinder.Eval(Container.DataItem, "lblResultsText")%>'></asp:Label>
                  <asp:Label ID="lblHitsNum" runat="server" Font-Size="XX-Small" Visible='<%# DataBinder.Eval(Container.DataItem, "lblHitsNumVisible")%>' Text='<%# DataBinder.Eval(Container.DataItem, "lblHitsNumText")%>'></asp:Label>
                    
                  </ItemTemplate>
                    
                 </telerik:GridTemplateColumn>
    
       <%-- <telerik:GridButtonColumn Text="Lock & View" UniqueName="columnLockView">
        </telerik:GridButtonColumn>--%>
<%--        <telerik:GridTemplateColumn UniqueName="columnViewResults" HeaderStyle-Width="73px">
          <ItemTemplate>
             <asp:LinkButton ID="btnViewResult" runat="server" Text="View Results" />
          </ItemTemplate>
         </telerik:GridTemplateColumn>--%>
        <telerik:GridButtonColumn ConfirmText="Are you sure you would like to remove this document from the queue?" ConfirmDialogType="RadWindow" ConfirmTitle="Remove Document" ButtonType="ImageButton" CommandName="Delete" HeaderStyle-Width="10px" Visible="false" />
    </Columns>
    <PagerStyle AlwaysVisible="True" Position="Top"  />
</MasterTableView>
    </telerik:RadGrid>
  
  
    </td>
</tr>
  
<tr>
<td colspan="3"></td>
</tr>
</table>
</div>
  
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007"  />


----------------------------------------- CS file --------------------------------------------

protected void refreshTimer_Tick(object sender, EventArgs e)
    {
        RefreshGrid();
    }
  
public void RefreshGrid()
    {
        Session["QueueDataTable"] = null;
        Session["PublishedQueueDataTable"] = null;
        grid.DataSource = this.DataTable;
        grid.DataBind();
        gridPublished.DataSource = this.PublishedDataTable;
        gridPublished.DataBind();
    }
  
protected void grid_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        GridEditableItem item = ((GridEditableItem)(e.Item));
        //string docQueueID = item["DocumentQueueID"].Text;
        Label lblID = (Label)item.FindControl("lblID");
        TextBox txtComment = (TextBox)item.FindControl("txtComments");
  
        QueueMgr.UpdateUserComment(Convert.ToInt32(lblID.Text), txtComment.Text); // updates in the database
        Session["QueueDataTable"] = null;
        //refreshTimer.Enabled = true;
    }
  
public DataTable DataTable
    {
        get
        {
            object obj = this.Session["QueueDataTable"];
            if (obj != null)
                return (DataTable)obj;
  
            DataTable dt = QueueMgr.GetQueue(GetFilterArgs()); // gets data from the database
  
            this.Session["QueueDataTable"] = dt;
  
            return dt;
        }
    }

Maria Ilieva
Telerik team
 answered on 10 Apr 2013
3 answers
284 views
Hello

   I have used RadComboBox with checkBoxes 
    my question is :  which event fires when check box is checked 

   because my RadComboBox contain 6 checkboxes and i want to change state of ckeckboxes  on selection of checkbox
 so i want an event which gets fire when i select any one checkbox from RadComboBox.

waiting for reply

Thanks 
Kishor
Hristo Valyavicharski
Telerik team
 answered on 10 Apr 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?