Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
258 views
Hello,

I have added several checkbox columns to a grid programmatically and I was wondering how I can retrieve a reference to them from server side code.

I am adding the columns this way:
var templateColumn = new GridTemplateColumn();
templateColumn.UniqueName = role.RoleName;
templateColumn.ItemTemplate = new RoleColumn(role);
  
// add the dynamically created columns to the grid
dgLoginRequest.MasterTableView.Columns.Add(templateColumn);
  
public class RoleColumn : ITemplate
    {
  
        protected CheckBox roleCheckbox;
        private Role _role;
  
        public RoleColumn(Role role)
        {
            _role = role;
        }
  
        public void InstantiateIn(Control container)
        {
            roleCheckbox = new CheckBox { ID = "chkReader"};
            roleCheckbox.AutoPostBack = false;
            roleCheckbox.DataBinding += new EventHandler(roleCheckbox_DataBinding);
            container.Controls.Add(roleCheckbox);
        }
  
        private void roleCheckbox_DataBinding(object sender, EventArgs e)
        {
            var cBox = (CheckBox)sender;
            var container = (GridDataItem)cBox.NamingContainer;
            cBox.Checked = (bool)DataBinder.Eval((container.DataItem), "Roles[" + _role.RoleID +"]"); 
        }
  
    }


And I bind the grid to an data source (ArrayList of customObject).  On a postback, I want to be able to get a refence to the checkboxes I added.

I am using the following code but it returns me null:
foreach (GridDataItem item in dgLoginRequest.MasterTableView.Items)
            {
                var ads = item.DataItem;
                var cbx = (CheckBox) item.FindControl("chkReader");
            }

How can I get a reference to this checkbox on lets say a button click (i.e. not using the rad grid events)?
Dan Harvey
Top achievements
Rank 2
 answered on 29 Mar 2012
1 answer
116 views
I have an issue that I have been going around in circles with for a little while now. I have a webform with a simple save button on it
<telerik:RadButton ID="btnSaveProduct" runat="server" Skin="Web20" Text="Save"></telerik:RadButton>

which has code for the click event
Private Sub btnSaveProduct_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSaveProduct.Click
If pageIsValid() = True Then
processPage()
End If
End Sub

I am running into a problem because when the user clicks on the button the btnSaveProduct_Click event is fired correctly and everything on the form is saved correctly. However, when the user tabs over to the button and clicks enter the btnSaveProduct_Click event is fired correctly but the items on the form are not saved correctly. It hits all the same code and the only difference is how the user clicks save. It almost seems like the clicking the button does a postback to the form but tabbing and clicking enter does not.

Does anyone have any insight to what the problem may be??
Casey
Top achievements
Rank 1
 answered on 29 Mar 2012
2 answers
269 views
Hi!

I could use some assistance if anyone is able to help. In my application I have a grid displaying a number of columns. There is a requirement for the users to be able to select any number of columns and then export the selected columns to PDF or Excel. To enable selection of columns, I added a checkbox into the HeaderTemplate of a GridItemTemplateColumn for each column.

By the way, the code displayed in this is a simplified version I created in an attempt to identify the issue. :)

Here is the markup for my RadGrid
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false">           
      <MasterTableView>
          <Columns>
              <telerik:GridTemplateColumn UniqueName="ID"
                  AllowFiltering="true"
                  HeaderStyle-Width="100"
                  SortExpression="ID"
                  FilterControlWidth="50"
                  HeaderText="ID">
                  <HeaderTemplate>
                      <asp:CheckBox ID="IDCheck" runat="server" CssClass="HeaderCheckBox" Text="ID" />
                  </HeaderTemplate>
                  <ItemTemplate>
                      <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn UniqueName="Name"
                  AllowFiltering="true"
                  HeaderStyle-Width="100"
                  SortExpression="ID"
                  FilterControlWidth="50"
                  HeaderText="Name">
                  <HeaderTemplate>
                      <asp:CheckBox ID="NameCheck" runat="server" CssClass="HeaderCheckBox" Text="Name" />
                  </HeaderTemplate>
                  <ItemTemplate>
                      <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn UniqueName="RandomText"
                  AllowFiltering="true"
                  HeaderStyle-Width="100"
                  SortExpression="RandomText"
                  FilterControlWidth="50"
                  HeaderText="RandomText">
                  <HeaderTemplate>
                      <asp:CheckBox ID="RandomTextCheck" runat="server" CssClass="HeaderCheckBox" Text="Random" />
                  </HeaderTemplate>
                  <ItemTemplate>
                      <asp:Label ID="RandomTextLabel" runat="server" Text='<%# Eval("RandomText") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
          </Columns>
      </MasterTableView>
  </telerik:RadGrid>
  <asp:Button ID="PDFExportButton" runat="server" OnClick="ExportToPDF" Text="Export to PDF" />
  <asp:Button ID="ExcelExportButton" runat="server" OnClick="ExportToExcel" Text="Export to Excel" />

And here is the code behind:

public partial class Default : System.Web.UI.Page
{
    protected override void OnInit(EventArgs e)
    {
        RadGrid1.DataSource = GetDataSource();
        RadGrid1.DataBind();
 
        base.OnInit(e);
    }
     
    protected void Page_Load(object sender, EventArgs e)
    {
         
    }
 
    protected List<Person> GetDataSource()
    {
        List<Person> peeps = new List<Person>();
 
        for (int i = 0; i < 10; i++)
        {
            Person p = new Person
            {
                Name = "Test" + i.ToString(),
                ID = i,
                RandomText = DateTime.Now.Millisecond.ToString()
            };
 
            peeps.Add(p);
        }
 
        return peeps;
    }
 
    protected void ExportToPDF(object sender, EventArgs e)
    {
        RadGrid1.ExportSettings.ExportOnlyData = true;
        RadGrid1.ExportSettings.HideStructureColumns = true;
        RadGrid1.ExportSettings.IgnorePaging = true;
        //RadGrid1.ExportSettings.OpenInNewWindow = true;
        RadGrid1.MasterTableView.ExportToPdf();
    }
 
    protected void ExportToExcel(object sender, EventArgs e)
    {
        RadGrid1.ExportSettings.ExportOnlyData = true;
        RadGrid1.ExportSettings.HideStructureColumns = true;
        RadGrid1.ExportSettings.IgnorePaging = true;
        //RadGrid1.ExportSettings.OpenInNewWindow = true;
        RadGrid1.MasterTableView.ExportToExcel();
    }
}

The issue I am having is that when the columns are exported instead of the HeaderText being displayed, "False" is displayed. I've attached a screenshot of the PDF output.

To sum it up: I want the column's header text to display in the exported files instead of the text "False", but I can't figure out what I am doing wrong or if there is a better way to achieve this.

Thanks.
Kevin


kmccusker
Top achievements
Rank 1
 answered on 29 Mar 2012
14 answers
269 views
Hi,

My grid have a strange behaviour on the first load (Check the Image).

When I click on edit or I just sort a column, so that when the grid refresh after the AjaxRequest, the grid layout become correct.

So what is causing thie behaviour?

Thanks.

Sorry for my bad english.
Galin
Telerik team
 answered on 29 Mar 2012
1 answer
107 views
Hi,
I have adapted the load on demand demo to show a confirmation box before load the next control. If the control currently loaded is in "Edit mode" i want to show a confirmation box, so i use the following code: 

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
if
(isEdit)
  {
                
            RadTabStrip1.FindTabByText(LatestMenuItem).Selected = true;
            RadAjaxManager manager = RadAjaxManager.GetCurrent(this.Page);
            manager.ResponseScripts.Add("if(confirm('Are you sure?'))" + manager.ClientID + ".ajaxRequest('tab')");
  }
  else
   {
               LatestMenuItem = e.Tab.Text;
               string ctrl = e.Tab.Attributes["ctrl"] + ".ascx";
               LoadUserControl(ctrl,false);
               e.Tab.Selected = true;
     }
}

If the user click yes then i initiate an Ajax request to load the user control.

protected void ManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
{
LoadUserControl(NewControlName,
true);
}

I also have the following RadAjax Settings on page:

<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server" >
 <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                 
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
     
                     
 </telerik:RadAjaxManagerProxy>

If i debug the code i can see the control is loaded and added correctly, but nothing happens on the page. Any tips on load user controls in the ManagerAjaxRequest method?


Thanks.


Dimitar Terziev
Telerik team
 answered on 29 Mar 2012
1 answer
57 views
I have an issue with RadGrid in RadMultiPage in IE8. The RadMultiPage control has 5 pages (RadPageViews). RadMultiPage is associated with a RadTabStrip control for navigating between "pages" in RadMultiPage. One of the pages contains a set of RadGrid controls. Other pages contain standard asp controls. The actual "height" of the pages is defferent depending on content presented in each page but the page with RadGrid is the tallest of all. Directly below the RadMultiPage control I have a web user control that basically contains a specialized button (the user control is actualy a part of Master page definition).

We have an issue with this scenario in IE8 only. After navigating to the RadPageView containing the RadGrid, and then navigating to any other page (that is shorter) than the page containing RadGridConrol, the section of the button below the RadMultiPage and that was earlier "covered" by one of the RadGrid is not clickable (as if the RadGrid was still sitting on top of it and blocking a portion of it, or a ghost image of RadGrid was still there). This seems to be a z-index related, but we tried changing z-index property on all affected control with no luck.

Any help would be appreciated...
Maria Ilieva
Telerik team
 answered on 29 Mar 2012
22 answers
572 views
The firefox context menu is missing on right click allowing people to circumvent the RadEditor paste functions
Rumen
Telerik team
 answered on 29 Mar 2012
2 answers
273 views
I have a form I've created to map data from Excel into our SQL Server-based system.  The basic idea is that a user picks the Excel file to upload, then "maps" the data by selecting the database field then the corresponding Excel column.  Once the user has "mapped" a file, they can save that "mapping" for future use.

The data on the mapping screen consists of two columns - one an asp:Panel full of dynamically created RadTextBoxes representing the fields in the database (created from the DBSchema) and the other being a GridView of the "column headers" and the first row of data from the Excel file.  From there it's all point and click to map the data - Click on a database field then click on the Excel column. Javascript is used to populate the RadTextBox with the column information and to "remove" the row from the Excel GridView (so a column can only be mapped once).

When the user "saves" a mapping, the dynamically created RadTextBoxes are walked and rows are created in SQL Server using the name of the RadTextBox and part of the Text property.

All this works fine.

The problem I have is when the user tries to "load a mapping" that has previously been saved.  Using the routine that creates the list of RadTextBoxes, I populate the Text property with data from the DB (and set some CSS wrapping the "row").  This is where my problem lies.  I set the Text property, but the value is empty when the page is rendered.  I can set breakpoints in the code and "see" that the property is set to the proper value, but it still displays empty.

Futhermore - I can set the EmptyMessage property to the same value I'm attempting to place in the Text property and have that display. So something I'm doing is stomping on the Text property, but I just don't see it.  I've stepped line-by-line through the code and the values "hold" but just don't display - unless I take a long time stepping through the code, then it works .....

I'm not quite sure what's going on with this since I can get this to work by itself, just not in conjunction with the rest of the page.

I'm using RadControls for ASPNET AJAX Q1 2009

Here's the code for the function that creates the RadTextBoxes.  On a page by itself it works fine and with ASP:TextBox controls it works fine.  I know this probably isn't enough to go on, but there does seem to be a case when a dynamically created RadTextBox doesn't "hold" the .Text property :)

protected void FillFieldList(MappingType mtType, Guid? nguidFieldMappingID)  
{  
    DataTable dtLayout = Property.GetDBSchema();  
    RadTextBox rtxtNewTextBox;  
    FieldMappingItem fmiMappings = new FieldMappingItem();  
    StringBuilder sbControl;  
    string strMappedName = "";  
    bool bolMappedFound = false;  
 
    if ((mtType == MappingType.ReloadMapping) || (mtType == MappingType.LoadSavedMapping))  
    {  
        fmiMappings = new FieldMappingItem(nguidFieldMappingID);  
    }  
 
    foreach (DataRow drData in dtLayout.Rows)  
    {  
        if ((drData["DataTypeName"].ToString() != "uniqueidentifier") && (drData["ColumnName"].ToString() != "Created"))  
        {  
            strMappedName = string.Empty;  
            sbControl = new StringBuilder();  
            sbControl.Append("<div id=\"div");
            sbControl.Append(drData["ColumnName"].ToString());
            sbControl.Append("\" onclick=\"SelectRow('div");
            sbControl.Append(drData["ColumnName"].ToString());
            sbControl.Append("');\"");  
 
            foreach (FieldMappingDetailItem fmdiDetails in fmiMappings.Details)  
            {  
                if (fmdiDetails.FieldName == drData["ColumnName"].ToString())  
                {  
                    bolMappedFound = true;  
                    sbControl.Append(" class=\"MapFieldMapped\">");  
                    strMappedName = fmdiDetails.MappedName;  
                    break;  
                }  
            }  
 
            if (bolMappedFound)  
            {  
                bolMappedFound = false;  
            }  
            else 
            {  
                sbControl.Append(">");  
            }  
 
            this.pnlFields.Controls.Add(new LiteralControl(sbControl.ToString()));  
 
            rtxtNewTextBox = new RadTextBox();  
            rtxtNewTextBox.ID = "rtxt" + drData["ColumnName"].ToString();  
            rtxtNewTextBox.CssClass = "FormFieldMapping";  
            rtxtNewTextBox.Label = drData["ColumnName"].ToString();  
            rtxtNewTextBox.LabelCssClass = "FormLabel";  
            rtxtNewTextBox.EmptyMessage = strMappedName;  
            rtxtNewTextBox.Text = strMappedName;  
            this.pnlFields.Controls.Add(rtxtNewTextBox);  
              
            sbControl = new StringBuilder();  
            sbControl.Append("<input type=\"hidden\" id=\"hdn");
            sbControl.Append(drData["ColumnName"].ToString());
            sbControl.Append("\" value=\"");  
            sbControl.Append(rtxtNewTextBox.ClientID);  
            sbControl.Append("\" />");  
            this.pnlFields.Controls.Add(new LiteralControl(sbControl.ToString()));  
            this.pnlFields.Controls.Add(new LiteralControl("</div>"));  
        }  
    }  
}  
 
Ricardo
Top achievements
Rank 1
 answered on 29 Mar 2012
6 answers
99 views
Hi Telerik:

This is a question perplex me.
In RadGrid,Nest a RadChart,Of course ,that data bind to radGrid.
There are two kind of think. 
        First : Through data of  radGrid takes datasource to radChart. This think source think of silverlight.
        Second: Through keyColumn of  radGrid ,Execute StoredProcedure with parameter to bind radChart. Why needing execute StoredProcedure ,Because I must process some things. The SqlDataSource seem to can't to execute  StoredProcedure with parameter.

I try to two ways,but fail.I  distressed.
So I please admin help me trying to use second way. Give me some example.
The sourcecode here:


<telerik:RadGrid AutoGenerateColumns="False" ID="RadGridFHData"
                AllowFilteringByColumn="True" AllowPaging="True"
                AllowSorting="True" runat="server" ShowGroupPanel="true"
            onitemcommand="RadGridFHData_ItemCommand">
                <PagerStyle Mode="NextPrevAndNumeric" />
                <GroupingSettings CaseSensitive="false" />
                <MasterTableView TableLayout="Fixed" DataKeyNames="FHID" ClientDataKeyNames="FHID">
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="FHID" DataField="FHID" UniqueName="FHID"
                            SortExpression="FHID" HeaderStyle-Width="100px" FilterControlWidth="100px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />

                        <telerik:GridBoundColumn HeaderText="病人ID" DataField="PID" UniqueName="PID"
                            SortExpression="PID" HeaderStyle-Width="100px" FilterControlWidth="100px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />

                        <telerik:GridBoundColumn HeaderText="病人姓名" DataField="PName" UniqueName="PName"
                            SortExpression="PName" HeaderStyle-Width="100px" FilterControlWidth="100px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />

                        <telerik:GridNumericColumn  HeaderText="测量值" DataField="FHValue" UniqueName="FHValue"
                            SortExpression="FHValue" HeaderStyle-Width="100px" FilterControlWidth="140px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />

                        <telerik:GridDateTimeColumn HeaderText="测量日期" DataField="ReceiveDate" UniqueName="ReceiveDate"
                            SortExpression="ReceiveDate" HeaderStyle-Width="100px" FilterControlWidth="140px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />

                        <telerik:GridBoundColumn HeaderText="查看状态" DataField="isNew" UniqueName="isNew"
                            SortExpression="isNew" HeaderStyle-Width="100px" FilterControlWidth="140px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />

                        <telerik:GridBoundColumn HeaderText="医生留言" DataField="Remark" UniqueName="Remark"
                            SortExpression="Remark" HeaderStyle-Width="100px" FilterControlWidth="140px"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />
                    </Columns>
                                        
                    <NestedViewSettings>
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="FHID" MasterKeyField="FHID" />
                        </ParentTableRelation>
                    </NestedViewSettings>
                     <NestedViewTemplate >
                         <table>
                             <tr>
                                <td align="left" colspan="3">
                                    <telerik:RadChart ID="RadChartFH" runat="Server"
                                                      Width="495px" AutoLayout="true" Skin="Mac">
                                        <ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="4" />
                                        <Series>
                                            <telerik:ChartSeries Name="ChartFH" DataYColumn="FHValue" Type="Line">
                                                <Appearance FillStyle-MainColor="223, 87, 60">
                                                </Appearance>
                                            </telerik:ChartSeries>
                                        </Series>
                                        <Legend Visible="false"></Legend>
                                        <ChartTitle TextBlock-Text="Scrolling only (initial XScale applied)">
                                        </ChartTitle>
                                    </telerik:RadChart>

                                </td>
                             </tr>
                         </table>
                   </NestedViewTemplate>
                  
                </MasterTableView>
                <ClientSettings AllowDragToGroup="true" >
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                </ClientSettings>
      </telerik:RadGrid>

      <asp:SqlDataSource ID="SqlDataSource1" CancelSelectOnNullParameter="false" runat="server" ConnectionString="<%$ appSettings:XCareSqlConn%>"
           ProviderName="System.Data.SqlClient" SelectCommandType="StoredProcedure" SelectCommand="ChartFHData">
          <SelectParameters>
               <asp:Parameter  Name="FHID" Type="String"/>
           </SelectParameters>          
          
      </asp:SqlDataSource>







     
Andrey
Telerik team
 answered on 29 Mar 2012
3 answers
170 views
Hi All,

       I have grid in PopupControlExtender and paging is not working for Next, Previous buttons. 
      I am using need datasource event also.Can you Please Help me to solve this issue.

Here is My code.

 

<asp:Panel ID="pnlSearch" runat="server" DefaultButton="ibtnSearch">
    <table cellpadding="0" cellspacing="0" class="search_restaurant_table">
        <tr>
            <td class="search_restaurant_table_right">
                 </td>
            <td class="search_restaurant_table_spacer">
                 </td>
            <td>
                <asp:HiddenField ID="hidResId" runat="server" />
                <asp:HiddenField ID="hidMessage" runat="server" Value="Search Restaurant (Name/Type/Category/Cuisine)." />
            </td>
        </tr>
        <tr>
            <td class="search_restaurant_table_right">
                <asp:Label ID="lblTitle" runat="server" SkinID="label_9_bold"
                    Text="Restaurant :" Width="170"></asp:Label>
            </td>
            <td class="search_restaurant_table_spacer">
                 </td>
            <td>
                <table cellpadding="0" cellspacing="0" class="search_restaurant_table">
                    <tr>
                        <td class="search_restaurant_table_inner">
                            <asp:TextBox ID="txtRestaurantSearch" runat="server" Width="400px" AutoComplete="Off" ></asp:TextBox>
                            <cc1:PopupControlExtender ID="txtRestaurantSearch_PopupControlExtender" runat="server" TargetControlID="txtRestaurantSearch"
                                PopupControlID="pnlRestaurant" Position="Bottom" OffsetY="0">
                            </cc1:PopupControlExtender>
                            <telerik:RadWindowManager ID="rwmResInfo" runat="server" Style="width: 750px; height: 350px"
                                OnClientShow="radResInfo_show" OnClientClose="radResInfo_close" Behavior="Default"
                                InitialBehavior="Default" EnableViewState="false" Modal="true" VisibleStatusbar="false">
                                <Windows>
                                    <telerik:RadWindow ID="rwdResInfo" runat="server" Skin="Office2007">
                                    </telerik:RadWindow>
                                </Windows>
                            </telerik:RadWindowManager>
                        </td>
                        <td>
                            <asp:ImageButton ID="ibtnSearch" runat="server" CausesValidation="False"
                                ImageUrl="~/Images/page/search.png" ToolTip="Search" />
                            <div style="position: fixed; left: 110%;">
                                <asp:Button ID="btnPostBack" runat="server" CausesValidation="false" Visible="true"
                                    Width="1" Height="1"/>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="search_restaurant_table_right">
                 </td>
            <td class="search_restaurant_table_spacer">
                 </td>
            <td align="left">
                <asp:Label ID="lblMessage" runat="server" SkinID="label_8" Text="Search Restaurant (Name/Type/Category/Cuisine)."></asp:Label>
                <asp:RequiredFieldValidator ID="rfvRestaurant" runat="server" ControlToValidate="txtRestaurantSearch"
                    Display="Dynamic" ErrorMessage="* Select Restaurant" Enabled="False"></asp:RequiredFieldValidator>
                <div style="position: absolute; left: 110%;">
                    <asp:Panel ID="pnlRestaurant" runat="server" BackColor="#E6F2E7" Width="670px" BorderWidth="1"
                        BorderStyle="NotSet" BorderColor="#999999">
                        <div style="width:100%; margin:0px auto; overflow-y:scroll;">
                            <table cellpadding="0" cellspacing="0" style="padding:5px; width:95%;">
                                <tr>
                                    <td style="background-color:#D1DEBE;" align="Left">
                                        <table cellpadding="0" cellspacing="0" class="search_restaurant_table">
                                            <tr>
                                                <td class="search_restaurant_table_search_more">
                                                    <asp:LinkButton ID="lbtnSearch" runat="server" CausesValidation="False"
                                                        SkinID="linkbutton_8" Text="Search more">
                                        </asp:LinkButton>
                                                    <asp:Label ID="Label2" runat="server" SkinID="label_8" Text="with filters.">
                                        </asp:Label>
                                                </td>
                                                <td>
                                                    <table cellpadding="0" cellspacing="0" class="search_restaurant_table">
                                                        <tr>
                                                            <td class="search_restaurant_table_sort">
                                                                <asp:Label ID="Label3" runat="server" SkinID="label_8" Text="Sortings :"></asp:Label>
                                                            </td>
                                                            <td class="search_restaurant_table_right">
                                                                 </td>
                                                            <td class="search_restaurant_table_sort_parameter">
                                                                <asp:DropDownList ID="cmbSort1" runat="server" SkinID="dropdownlist_8"
                                                                    Width="80px">
                                                                    <asp:ListItem Text="(None)" Value=""></asp:ListItem>
                                                                    <asp:ListItem Text="Name" Value="Name"></asp:ListItem>
                                                                    <asp:ListItem Text="Category" Value="Category"></asp:ListItem>
                                                                    <asp:ListItem Text="Cuisine" Value="Cuisine"></asp:ListItem>
                                                                    <asp:ListItem Text="Type" Value="Type"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="search_restaurant_table_sort_value">
                                                                <asp:DropDownList ID="cmbSort1Value" runat="server" SkinID="dropdownlist_8"
                                                                    Width="50px">
                                                                    <asp:ListItem Text="Asc" Value="Asc"></asp:ListItem>
                                                                    <asp:ListItem Text="Desc" Value="Desc"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="search_restaurant_table_sort_parameter">
                                                                <asp:DropDownList ID="cmbSort2" runat="server" SkinID="dropdownlist_8"
                                                                    Width="80px">
                                                                    <asp:ListItem Text="(None)" Value=""></asp:ListItem>
                                                                    <asp:ListItem Text="Name" Value="Name"></asp:ListItem>
                                                                    <asp:ListItem Text="Category" Value="Category"></asp:ListItem>
                                                                    <asp:ListItem Text="Cuisine" Value="Cuisine"></asp:ListItem>
                                                                    <asp:ListItem Text="Type" Value="Type"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="search_restaurant_table_sort_value">
                                                                <asp:DropDownList ID="cmbSort2Value" runat="server" SkinID="dropdownlist_8"
                                                                    Width="50px">
                                                                    <asp:ListItem Text="Asc" Value="Asc"></asp:ListItem>
                                                                    <asp:ListItem Text="Desc" Value="Desc"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="search_restaurant_table_sort_parameter">
                                                                <asp:DropDownList ID="cmbSort3" runat="server" SkinID="dropdownlist_8"
                                                                    Width="80px">
                                                                    <asp:ListItem Text="(None)" Value=""></asp:ListItem>
                                                                    <asp:ListItem Text="Name" Value="Name"></asp:ListItem>
                                                                    <asp:ListItem Text="Category" Value="Category"></asp:ListItem>
                                                                    <asp:ListItem Text="Cuisine" Value="Cuisine"></asp:ListItem>
                                                                    <asp:ListItem Text="Type" Value="Type"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="search_restaurant_table_sort_value">
                                                                <asp:DropDownList ID="cmbSort3Value" runat="server" SkinID="dropdownlist_8"
                                                                    Width="50px">
                                                                    <asp:ListItem Text="Asc" Value="Asc"></asp:ListItem>
                                                                    <asp:ListItem Text="Desc" Value="Desc"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td style="text-align: left">
                                                                <asp:LinkButton ID="btnOK" runat="server" CausesValidation="False"
                                                                    SkinID="linkbutton_8" Text="OK"></asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                                                                                                        
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <telerik:RadGrid ID="grdResult" runat="server" EnableEmbeddedSkins="False" EnableViewState="false" AllowMultiRowSelection="True"
                                            Skin="custom_econcierge" EnableTheming="False"
                                            AllowPaging="True" AllowSorting="true" GridLines="Horizontal"
                                            PageSize="2" Width="640px">
                                            <PagerStyle AlwaysVisible="True" />
                                            <ClientSettings EnablePostBackOnRowClick="True">
                                                <Selecting AllowRowSelect="True" />
                                            </ClientSettings>
                                            <mastertableview>
                                                <rowindicatorcolumn>
                                                    <HeaderStyle Width="20px" />
                                                </rowindicatorcolumn>
                                                <expandcollapsecolumn>
                                                    <HeaderStyle Width="20px" />
                                                </expandcollapsecolumn>
                                                <Columns>
                                                    <telerik:GridButtonColumn CommandName="View" Text="View"
                                                        UniqueName="View" ItemStyle-Width="30px" HeaderStyle-Width="30px" FooterStyle-Width="30px">
                                                        <ItemStyle BackColor="Lavender" ForeColor="Blue" />
                                                    </telerik:GridButtonColumn>
                                                </Columns>
                                            </mastertableview>
                                        </telerik:RadGrid>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </asp:Panel>
                </div>
            </td>
        </tr>
    </table>
 
</asp:Panel>

 

 

Thank you.
Antonio Stoilkov
Telerik team
 answered on 29 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?