Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views
Hi All,

I want to use two Pager Templates in my rad grid with some different controls say Template at the top works for the paging and sorting and the Pager at the bottom contains the drop down for controlling records per page. Is it possible in radGrid to use Pager Templates like this having different controls inside it?

Thanks in Advance.


  
Vinay
Top achievements
Rank 1
 answered on 11 Jul 2011
1 answer
68 views
Hi guys,

I have a short question.
I would like to set GridBoundColumns visibility to false if the column is empty. Can you please help me?

Thanks,
Ervin
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
240 views
Hi everybody,

Since RadNumericTextBoxes do not provide a build-in feature to have it as required field, we implemented a custom validator that checks for a missing value. This validator works well, if the NumericTextBox is not within a RadGrid. If we use the custom validator within a EditTemplate, it is not invoked. When we use a asp:RequiredFieldValidor instead, the validation is processed. Why is a custom validor not invoked when we click "Insert" or "Update" while a RequiredFieldValidator works correctly?

Thanks in advance
Marco
<EditFormSettings EditFormType="Template">
<EditColumn FilterControlAltText="Filter EditCommandColumn column" />
<FormTemplate>
<table cellspacing="2" cellpadding="1" border="0">
<tr>
<td>
    <telerik:RadNumericTextBox ID="Amount" runat="server" DbValue='<%# Bind("Amount") %>' Width="80px" />
        <!-- This one is invoked -->
    <asp:RequiredFieldValidator ControlToValidate="Amount" ErrorMessage="*" runat="server" Text="*" />
        <!-- This one is NOT invoked but works well when not embedded in RadGrid-->
    <asp:CustomValidator ID="Amount_Required" ClientValidationFunction="CheckNumberRequired"
            ControlToValidate="Amount" runat="server" ValidateEmptyText="true" />
</td>
</tr>
Mira
Telerik team
 answered on 11 Jul 2011
3 answers
87 views
Hello telerik, is there any way to hide the light gray lines that appear in a hierarchical grid?

thanks
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
238 views
Hi ,

Your reqirement is like one control will have rad grid with autogenerate column = true. And dynamically according to the page type the datasource will be set i.e. like if page is for customer then  list of customer will be there. If page is for product then product list will be the datasource for radgrid. Also we are goinig to have filters in each page for each cloumns.
Here my question is how can i apply filter to columns which are auto generated?

Thanks in advance.
Let me know if more info is neeeded.
Princy
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
106 views
We need to customise the popup that is we want to change the "Ok" & "Cancel" button look up & background color
and I also want to change the title of popup as customised.How can I do this please suggest me.

Thanks
Jaichand
Princy
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
118 views
I m developing an ASP.NET portal using Telerik UI Controls exclusively. I Have several RAD menu in Master page they are being overlapped by the Radmenu in a WebuserContol in a Content page

All the menu works well except when I use the Menu in the master page and when it expands over the Menu in content page i can till see the content page Menu Image on the expanded Master page menu....

I tried almost all z-index solutions but it didnot help.

Please find attached the image

Please suggest me the solution

Thanks

Sid
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2011
2 answers
297 views
I have a combo box that I am attempting to populate in the page_load event and want the item in the combo box that corresponds to an incoming request string member value to be selected when done.  I have done this before and am not a "greenie", but I cannot get any item selected in the combo box.

The definition of the combo box is in the code block immediately below:
<telerik:RadComboBox ID="SearchCountry" TabIndex="5" style="z-index: 9000;" Width="200px" EnableEmbeddedSkins="true" Skin="Sitefinity" runat="server" Height="150px" OnClientSelectedIndexChanging="LoadSearchStateProv"></telerik:RadComboBox>

The server-side code behind code is immediately below this line:
Try
    Dim reader As SqlDataReader = cmd.ExecuteReader()
    Do While reader.Read()
        RCBI = New RadComboBoxItem()
        RCBI.Text = reader(sFieldToPopulate)
        RCBI.Value = reader("CodeList")
        If oValueToMatch = RCBI.Value Then
            RCBI.Selected = True
        End If
        RadComboBox1.Items.Add(RCBI)
    Loop
    reader.Close()
    reader = Nothing
Catch ex As Exception
    Throw New ApplicationException("Error reading to populate country combo box from Select Statement=" & ComboSelectStmt & ". Code=" & ex.Message)
Finally
End Try

Can you please tell me what I am doing wrong?  The combo box is being populated correctly...but no item is selected when the page_load event completes and the page is visible.  Why?

Thanks in advance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 11 Jul 2011
2 answers
112 views
Hi all,

I have a grid created through declarative client side binding. Everything works fine but now I have added a combox and I would like the databind function to be called again as soon as an item is selected.

There is an example in the demo but it looks like this happening on the server side. I need this to happen on the client side. Here is my code:

<%@ Page language="C#" Codebehind="Custom_DealUI.aspx.cs" AutoEventWireup="false" Inherits="KF.Crm.Web.Custom_DealUI" %>
  
  
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  
  
  
<head id="Head1" runat="server">
      
      
     
 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  
  
        <script type="text/javascript">
         
       <!--
            function OnClientSelectedIndexChangedEventHandler(sender, args) {            
              
            //NEED TO SOMEHOW CALL THE CLIENT SIDE DATABIND FUNCTION 
                  
            }
      
        function RadGrid1_DataBinding(sender, args) {
              
  
             
            var dataSourceLocation = args.get_location();
            var selectMethodName = args.get_methodName();
            var methodArguments = args.get_methodArguments();
  
           
              
            var startRowIndexParameterName = sender.ClientSettings.DataBinding.StartRowIndexParameterName;
            
            var maximumRowsParameterName = sender.ClientSettings.DataBinding.MaximumRowsParameterName;
              
            var sortParameterName = sender.ClientSettings.DataBinding.SortParameterName;
             
            var filterParameterName = sender.ClientSettings.DataBinding.FilterParameterName;
         
        }
          
        -->
    </script>
  
</telerik:RadCodeBlock>
  
    <style type="text/css">
        #mainForm
        {
            height: 646px;
        }
    </style>
  
</head>
<body class="BODY">
    <form runat="server" id="mainForm" method="post">
         
        <telerik:RadScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" />
        <!-- content start -->
          <telerik:RadComboBox ID="RadComboBox1" runat="server" OnClientSelectedIndexChanged ="OnClientSelectedIndexChangedEventHandler"
  
       DataTextField="DealSelector"
      DataValueField="DealSelector" Culture="English (Australia)" 
            EnableAutomaticLoadOnDemand="True" Skin="Windows7"  >
              <Items>
                  <telerik:RadComboBoxItem runat="server" Text="All Deals" Value="All Deals" />
                  <telerik:RadComboBoxItem runat="server" Text="New Deals" Value="New Deals" />
                  <telerik:RadComboBoxItem runat="server" Text="Waiting Manager Approval" 
                      Value="Waiting Manager Approval" />
                  <telerik:RadComboBoxItem runat="server" Text="Manager Approved" 
                      Value="Manager Approved" />
                  <telerik:RadComboBoxItem runat="server" Text="Income Recognised" 
                      Value="Income Recognised" />
                  <telerik:RadComboBoxItem runat="server" Text="Pro-forma Invoice Created" 
                      Value="Pro-forma Invoice Created" />
                  <telerik:RadComboBoxItem runat="server" Text="Waiting Accounts Approval" 
                      Value="Waiting Accounts Approval" />
                  <telerik:RadComboBoxItem runat="server" Text="Invoiced" Value="Invoiced" />
                  <telerik:RadComboBoxItem runat="server" Text="Receipt Processed" 
                      Value="Receipt Processed" />
                  <telerik:RadComboBoxItem runat="server" Text="Credit Processed" 
                      Value="Credit Processed" />
                  <telerik:RadComboBoxItem runat="server" Text="Inactive" Value="Inactive" />
              </Items>
    </telerik:RadComboBox>
      
        <telerik:RadGrid ID="RadGrid1" AllowSorting="True" AllowPaging="True" 
            AllowFilteringByColumn="True" runat="server" CellSpacing="0" GridLines="None" 
            PageSize="100" Skin="Windows7" Culture="English (Australia)" 
             ShowStatusBar="True" Height="611px" style="margin-top: 34px">
            <MasterTableView>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="DealNo" HeaderText="DealNo" 
                AllowFiltering="True" >
                        <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                      
                   <telerik:GridBoundColumn DataField="ID" HeaderText="ID" 
                AllowFiltering="True" Visible="True" >
                        <HeaderStyle Font-Bold="True"  />
                    </telerik:GridBoundColumn>
                      
                        
          <telerik:GridBoundColumn DataField="Location" HeaderText="Location" 
                AllowFiltering="True" >
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="Department" HeaderText="Department" 
                AllowFiltering="False" >
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="LeadOp" 
                HeaderText="Lead Operative" AllowFiltering="True" >
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="TranType" 
                HeaderText="Transaction Type" AllowFiltering="False" >
                  
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                  
          <telerik:GridBoundColumn DataField="LevelSuite" HeaderText="Level Suite" 
                AllowFiltering="False" >
                  
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                  
          <telerik:GridBoundColumn DataField="Address" HeaderText="Address" 
                AllowFiltering="False" >
                  
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                  
          <telerik:GridBoundColumn DataField="KFAAmtExGST" 
                HeaderText="Amount Ex GST" AllowFiltering="False" DataType ="System.Decimal"  >
                  
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                  
          <telerik:GridBoundColumn DataField="DealStatus" HeaderText="Deal Status" 
                AllowFiltering="False" >
                  
              <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                  
          <telerik:GridBoundColumn DataField="GPDebtor" HeaderText="GP Debtor" 
                AllowFiltering="False" >
                <HeaderStyle Font-Bold="True" />
                    </telerik:GridBoundColumn>
                </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
  
<PagerStyle AlwaysVisible="True"></PagerStyle>
            </MasterTableView>
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
  
             
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" >
                <DataBinding Location="WebService.asmx"
                    SelectMethod="GetDataAndCount" SelectCountMethod="GetCount" 
                    EnableCaching="True" />
                <ClientEvents OnDataBinding="RadGrid1_DataBinding" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <Resizing AllowColumnResize="True" AllowResizeToFit="True" />
                  
                  
            </ClientSettings>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
          
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" 
            BackImageUrl="loading.gif" BackgroundPosition="None" HorizontalAlign="Center" />
  
  
         
         
        <!-- content end -->
         
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
            DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                            LoadingPanelID="RadAjaxLoadingPanel1"  />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
         
    </form>
</body>
</html>
Stanley
Top achievements
Rank 1
 answered on 11 Jul 2011
5 answers
711 views
Hi,

Radcombobox selectedindexchanged not firing when changing the index programmatically, I am changing the index as the code block below. The event is firing fine when changing the index manually from the screen
cbo_Mode.SelectedIndex = cbo_Mode.FindItemIndexByValue(SubmissionMode);
Pls guide me how to go about it.

Thanks
Jidesh
Cat Cheshire
Top achievements
Rank 1
 answered on 10 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?