Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
183 views
Hi,

Radwindow contains iframe element  which is useful if we want to render url. But problemetic if we want to use predefined dialogs(alert, prompt etc).

In my case  I have put following style when I wamt to render link

RadWindow_Camino td.rwWindowContent iframe {
    display: block!important;
    height100% !important;
    width100% !important;
}

How can I use following  style when I don't need url. Can telerik handle it internally based on NavigateUrl property?
RadWindow_Camino td.rwWindowContent iframe {
    displaynone !important;

}

I plan use RadWindowmanager  functions for alert, prompt and inputbox. I plan to use radwindow for showing specific url or controls.

Thanking you in advance

Thanks & Regards
Parag
Kevin
Top achievements
Rank 2
 answered on 22 Aug 2011
5 answers
167 views
is this possible?

I've hooked a regular postback event to the button click of the button within the ajaxed grid. still gives me the following error:

Line: 6
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '%PDF-1.2
%��
1 0 ob'.

code:

<script type="text/javascript">
function realPostBack(eventTarget, eventArgument) {
 
__doPostBack(eventTarget, eventArgument);
}
 
</script>

<telerik:GridTemplateColumn UniqueName="templateColPrint" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="45px" HeaderText="Print" HeaderStyle-HorizontalAlign="Center">
                                  
                <ItemTemplate>
                        <asp:Button runat="server" Text="" ID="btnPrint" CommandName="PrintReceipt" CssClass="btnPrintIcon" />                 
                </ItemTemplate>
                </telerik:GridTemplateColumn>
Protected Sub SearchGrid_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles SearchGrid.ItemCreated
 
    If (TypeOf e.Item Is GridDataItem) And e.Item.OwnerTableView.Name = "ReceiptNumber" Then
        Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
 
        Dim button1 As Button = CType(dataItem("templateColPrint").FindControl("btnPrint"), Button)
        
        button1.Attributes.Add("onclick", String.Format("realPostBack('{0}', '{1}');", button1.UniqueID, button1.CommandArgument))
 
    End If
 
 
 
End Sub
 
 
 
Protected Sub SearchGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles SearchGrid.ItemCommand
 
    Select Case e.CommandName
               Case "Print"
            CreatePDFReport(CType(SearchGrid.MasterTableView.DataKeyValues.Item(e.Item.ItemIndex)("Number"), Integer))
        Case Else
            Exit Sub
    End Select
   
End Sub
Maria Ilieva
Telerik team
 answered on 22 Aug 2011
4 answers
361 views
Hi,
I have gone through so many threads of the same issue but didn't get any solution. I am facing the mentioned issue. Refer to below sample code, when i hit on insert button in popup form, the form does not closes and the insert button's text changes to "update". Why form is not closing??
Protected Sub RadGrid2_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs)
        Dim GridExperience As RadGrid = RadPanelBar1.FindItemByValue("Step1").FindControl("RadGrid2")
        Dim dSet As Global.PICT.Web.CVDataSet = Session("CV")
        GridExperience.DataSource = dSet.Jobs
End Sub
  
Protected Sub RadGrid2_PreRender(ByVal sender As Object, ByVal e As EventArgs)
        If Not IsPostBack Then
            Dim GridExperience As RadGrid = RadPanelBar1.FindItemByValue("Step1").FindControl("RadGrid2")
            GridExperience.EditIndexes.Add(0)
            GridExperience.MasterTableView.Rebind()
        End If
End Sub
  
Protected Sub RadGrid2_InsertCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs)
        Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
  
        Dim dSet As Global.PICT.Web.CVDataSet = Session("CV")
        Dim newRow As DataRow = dSet.Jobs.NewRow
        Dim ExpKey As Long = 0
  
        If dSet.Jobs.Compute("MAX(PKEY)", String.Empty) Is DBNull.Value Then
            ExpKey = 1
        Else
            ExpKey = dSet.Jobs.Compute("MAX(PKEY)", String.Empty) + 1
        End If
  
        newRow("PKEY") = ExpKey
        newRow("JOB_CODE") = 1
        newRow("IS_ACTIVE") = 1
  
        Dim newValues As Hashtable = New Hashtable
        e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem)
  
        Try
            For Each entry As DictionaryEntry In newValues
                newRow(CType(entry.Key, String)) = entry.Value
            Next
  
            dSet.Jobs.Rows.Add(newRow)
        Catch ex As Exception
            e.Canceled = True
        End Try
  
        e.Item.OwnerTableView.IsItemInserted = False
        Session("CV") = dSet
End Sub

And here is my aspx code..
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" 
        Skin="Default">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadPanelBar1" >                
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" 
                    LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
    </telerik:RadAjaxLoadingPanel>    
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Web20"
            Width="720px" ExpandMode="SingleExpandedItem">
            <Items>
             <telerik:RadPanelItem runat="server" Expanded="True" Selected="True" 
                    Text="Step 1: Personal Information >>>" >
                    <Items>
                    <telerik:RadPanelItem Value="Step1">
                    <ItemTemplate>
                    <telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="False" 
            CellSpacing="0" GridLines="None" oninsertcommand="RadGrid2_InsertCommand" 
            onitemcommand="RadGrid2_ItemCommand" onitemdatabound="RadGrid2_ItemDataBound" 
            onneeddatasource="RadGrid2_NeedDataSource" onprerender="RadGrid2_PreRender" 
            onupdatecommand="RadGrid2_UpdateCommand" Skin="Web20">
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
            <MasterTableView EditMode="PopUp" CommandItemDisplay="Top">
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                <telerik:GridBoundColumn FilterControlAltText="Filter Skill column"  
                                                UniqueName="PKey" DataField="POSITION" HeaderText="Position" HeaderStyle-Width="250" Visible="false">
                                                <HeaderStyle HorizontalAlign="Center" />                                                                                                
                                            </telerik:GridBoundColumn>
                </Columns>
                <EditFormSettings EditFormType="Template">                   
                    <FormTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("POSITION") %>' ></asp:TextBox>
                        <telerik:RadButton ID="BtnAddExperience" runat="server" Text='<%# IIf (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                                                                Skin="Web20" Width="50px" CssClass="btnInsertItem"  
                                                                CommandName='<%# IIf (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
                                                            </telerik:RadButton>
                          
                    </FormTemplate>
                    <PopUpSettings Modal="True" Width="480px" />
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
                    </ItemTemplate>
                    </telerik:RadPanelItem>
                    </Items>
                    </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelBar>
      
</asp:Content>
Pavlina
Telerik team
 answered on 22 Aug 2011
3 answers
628 views
Hello Telerik Team,

I m using RADGrid and i have hyperlink column,  and i have requirement that  we have to open the link in new tab when user clicks on the hyperlink column record.

so i cant find any way of opening new page in new tab (not window). I will to provide solution for IE7.  i tried all the values in target attribute. but none of them opens in new tab in IE7.

let me know if you have any workaround or javascript to provide this solution.
Vasil
Telerik team
 answered on 22 Aug 2011
3 answers
137 views
I have a RadMenu in a VB web control that I want to be able to click on a menu item and have it load and unload other controls in a placeholder on the Master Page.

I have instered the RadMenu on the master page.  In the VB code for the button click event I can not get it to find the placeholder on the master page in order to load different content into it.
Kate
Telerik team
 answered on 22 Aug 2011
5 answers
318 views
Hi there,

Whenever I minimize or set my screen to a lower resolution my radgrid starts to display columns as if their contents were squashed. Refer to the screenshot 'grid resize.jpeg' below:

I have my MasterTableView property TableLayout="Fixed"

How do I rectify this problem?

<%@ 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">
     
 
    <style type="text/css">
        #mainForm
        {
            height: 600px;
        }
                 
        .button, .disabledButton
        {
            filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde);
            cursor: hand;
            font-size: 11px;
            
             
        }
         
       .applicationToolBar
        {
             
            height: 26px;
             
        }
     
                
        span.text
        {
            font: 13px 'Segoe UI' , Arial, sans-serif;
            color: #4888a2;
            padding-right: 10px;
            vertical-align: middle;
            display: inline-block; *display:inline;zoom:1;width:90px;}
        .module-row
        {
            margin: 10px 0;
        }
        .module-row .status-text
        {
            margin-left: 103px;
            display: block;
            font: 13px 'Segoe UI' , Arial, sans-serif;
            color: #4888a2;
        }
        html.rfdButton a.rfdSkinnedButton
     {
     vertical-align: middle;
     margin: 0 0 0 5px;
     }
      
     * html div.RadComboBox
     {
         vertical-align: middle;
     }
     
        .style4
        {
            height: 620px;
            border-bottom: 1px solid #319AEA;
            margin-top: 3px;
        }
     
        .style6
        {
            width: 935px;
        }
        .style7
        {
            width: 227px;
        }
        .style8
        {
            margin-left: 48px;
        }
     
        </style>
 
    <telerik:RadScriptBlock ID="RadScriptBlock" runat="server">
   <script type="text/javascript">
 
 
       function AlertMessage(message, width, height, title) {
           var oWnd = radalert(message, width, height, title);
           CenterItem('.rwDialogPopup', '.rwDialogText', '.rwPopupButton');
       }
 
       function CenterItem(parentItem, subparentItem, theItem) {
           var parentWidth = $telerik.$(parentItem).outerWidth();
           var subparentWidth = $telerik.$(subparentItem).outerWidth();
           var itemWidth = $telerik.$(theItem).outerWidth();
 
           var theCenter = parentWidth / 2 - (parentWidth - subparentWidth) - itemWidth / 2;
 
           if (theCenter > 0) $telerik.$(theItem).css('margin-left', theCenter);
           else $telerik.$(theItem).css('margin-left', '0');
       }
 
       function onRequestStart(sender, args)
        {
           if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0)
           {
                
               args.set_enableAjax(false);
           }
            
            
            
       }
        
       function OnClientClicked(sender, eventArgs) {
           sender.set_enabled(false);
           var combo = $find("<%= RadComboBox4.ClientID %>");
           combo.disable();
            
           if (sender.get_text() == "Approve") sender.set_text("Approving...");
           else if (sender.get_text() == "Select") {
               sender.set_text("Retrieving...");
           }
 
           else if (sender.get_text() == "Clear") {
            
           combo.set_text("");
            
       }
            
           else { }
 
       }
 
       function OnClientSelectedIndexChanged(sender, eventArgs) {
 
           var combo = $find("<%= RadComboBox4.ClientID %>");
           combo.set_text("");
           combo.disable();
       }
 
       function OnClientFocus(sender, args) {
           var button = $find("<%= btnSelectDeal.ClientID %>");
           button.set_text("Select");
 
       }
       
 
       function EnableButtons( sender, eventArgs) {
           
           /*if (sender.get_text() == "Submit") {
               var btnStandard = $find("<%=btnStandard.ClientID%>");
               btnStandard.set_text("Submit");
               btnStandard.set_enabled(true);*/
           }
            
 
   </script>
       </telerik:RadScriptBlock>
</head>
 
 
<body class="BODY">
    <form runat="server" id="mainForm" method="post"  >
             
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
      
             
        <telerik:RadScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server"/>
         
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
            Behaviors="Default" EnableShadow="true" AutoSize="True" Modal="True"
            Skin="Windows7" CssClass="RadWindow"
            </telerik:RadWindowManager>
 
             
        <table
            border="0" cellpadding="0" cellspacing="0" width="100%" >
            <tr class="applicationToolBar">
                <td class="style7" >
         
            <telerik:RadComboBox ID="RadComboBox4" runat="server" AutoPostBack="true" Width="157px" Height="150px"
                EmptyMessage="Select a Deal" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
                EnableVirtualScrolling="true" OnItemsRequested="RadComboBox4_ItemsRequested"  onclientfocus="OnClientFocus" >
                     
                 
            </telerik:RadComboBox>
            </td>
            <td>
             <telerik:RadButton runat="server" Text="Select" ID="btnSelectDeal"
                 UseSubmitBehavior="False"  Skin="Telerik"
                 OnClick="btnSelectDeal_Click" onclientclicked="OnClientClicked" >
            </telerik:RadButton>
            </td>
           
         <td class="style6">
                       
                        
                        
                        
                           
                        
                        
                           
                        
                         
                         
               
            
            <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" 
            Width="250px"
             
       DataTextField="DealSelector"
      DataValueField="DealSelector" Culture="English (Australia)"
            EnableAutomaticLoadOnDemand="True" Skin="Windows7"
            OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" onclientselectedindexchanged="OnClientSelectedIndexChanged"
            EnableTheming="True" CssClass="style8"  >
              <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>
    </td>
     
    <td>
               
       <asp:Panel ID="btnStandardWrapper" runat="server" Width="127px" >   
      <telerik:RadButton ID="btnStandard" runat="server" Text="Approve" OnClick="btnStandard_Click"
        UseSubmitBehavior="False" OnClientClicked="OnClientClicked"
             Style="clear: both;" Skin="Telerik"  Visible = "false"
               >
    </telerik:RadButton></asp:Panel>
         
         
        </td>
        </tr>
        </table>
 
        <!--<asp:Button ID="btnApprove" runat="server"   Text="Approve" Width="6%"  CssClass="button" Height="2%" />-->
     </br>
        <telerik:RadGrid ID="RadGrid1" AllowSorting="True" AllowPaging="True"
            AllowFilteringByColumn="True" runat="server" CellSpacing="0" GridLines="None"
            PageSize="100" Skin="Windows7" Culture="English (Australia)"  OnNeedDataSource="RadGrid1_NeedDataSource"
            ShowStatusBar="True"
            AutoGenerateColumns="False" OnItemDataBound="RadGrid1_ItemDataBound"
            OnPreRender="RadGrid1_PreRender" AllowMultiRowSelection="True"
                CssClass="style4" CellPadding="0" onitemcommand="RadGrid1_ItemCommand" Height="667px" Width="100%" 
               >
            <exportsettings exportonlydata="True">
            </exportsettings>
            <MasterTableView CommandItemDisplay="Top" CommandItemSettings-ShowExportToExcelButton="true" TableLayout="Fixed" >
 
<CommandItemSettings ShowExportToExcelButton="True"
                    showaddnewrecordbutton="True" AddNewRecordText="Clear filters"></CommandItemSettings>
             
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                <Columns>
                 
                <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" Visible = "false" >
  <HeaderStyle Width="30px" HorizontalAlign="Justify" VerticalAlign="Middle" />
                        <ItemStyle Width="30px" />
</telerik:GridClientSelectColumn>
                    
                 <telerik:GridHyperLinkColumn HeaderText= "Deal No"  UniqueName="GridHyperLinkColumn"  DataTextField="DealNo">
                   <HeaderStyle Font-Bold="True" Wrap="False" />
</telerik:GridHyperLinkColumn>
 
 <telerik:GridBoundColumn DataField="DealID" UniqueName = "DealID" HeaderText="DealID"
                AllowFiltering="False" Visible="False" >
              <HeaderStyle Font-Bold="True" Wrap="False" />
                    </telerik:GridBoundColumn>
 
                       
          <telerik:GridBoundColumn DataField="Location" HeaderText="Location"
                AllowFiltering="True" >
              <HeaderStyle Font-Bold="True" Wrap="False" />
                    </telerik:GridBoundColumn>
                     
                      <telerik:GridBoundColumn DataField="Department" HeaderText="Department"
                AllowFiltering="False" >
              <HeaderStyle Font-Bold="True" Wrap="False" />
                    </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="LeadOperative"
                HeaderText="Lead Operative" AllowFiltering="True" >
              <HeaderStyle Font-Bold="True" Wrap="False" />
                    </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="TransactionType"
                HeaderText="Transaction Type" AllowFiltering="False" >
                 
              <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                  Wrap="False" />
                    </telerik:GridBoundColumn>
                     
               <telerik:GridDateTimeColumn UniqueName="Income_Rec_Date"  HeaderText="Income Recognition Date"
                        DataField="Income_Rec_Date" DataFormatString="{0:dd/MM/yyyy}"
                       >
                       
                    <HeaderStyle Font-Bold="True"   Width="160px" Wrap="False" />
                       
                    </telerik:GridDateTimeColumn>        
          
                 
                    <telerik:GridDateTimeColumn DataField="TargetInvoiceDate"
                        DataFormatString="{0:dd/MM/yyyy}"
                        FilterControlAltText="Filter TargetInvoice column"
                        HeaderText="Target Invoice Date" UniqueName="TargetInvoice">
                        <HeaderStyle Font-Bold="True" Width="160px" Wrap="False" />
                    </telerik:GridDateTimeColumn>
          
                 
          <telerik:GridBoundColumn DataField="Address" HeaderText="Address"
                AllowFiltering="False" >
                 
              <HeaderStyle Font-Bold="True" Wrap="False" />
                    </telerik:GridBoundColumn>
                     
                     <telerik:GridBoundColumn DataField="LevelSuite" HeaderText="Level Suite"
                AllowFiltering="False" >
                 <HeaderStyle Font-Bold="True" />
               
                    </telerik:GridBoundColumn>
                     
                     
                 
          <telerik:GridBoundColumn DataField="KF_Amount_Excl_GST"
                HeaderText="Amount Ex GST" AllowFiltering="False" DataType ="System.Decimal" DataFormatString="{0:C2}" >
                 
              <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                  Wrap="False" />
                    </telerik:GridBoundColumn>
                 
          <telerik:GridBoundColumn DataField="DealStatus" HeaderText="Deal Status"
                AllowFiltering="False" >
                 
              <HeaderStyle Font-Bold="True" Wrap="False" />
                    </telerik:GridBoundColumn>
                 
          <telerik:GridBoundColumn DataField="GP_Debtor" UniqueName="GP_Debtor" HeaderText="GP Debtor"
                AllowFiltering="False" >
                <HeaderStyle Font-Bold="True" Wrap="False" />
                    </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" >
         
                             
                <selecting allowrowselect="True" />
         
                             
                <Scrolling AllowScroll="True" UseStaticHeaders="True" scrollheight="500px" />
                <Resizing AllowColumnResize="True" AllowResizeToFit="True" />
 
            </ClientSettings>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
       <br /><br />
     
             <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
            Transparency="20" BackColor="#E0E0E0" Height="16px" >
            <table style="width:100%;height:100%;">
                <tr style="height:100%"><td align="center" valign="middle" style="width:100%">
                    <asp:Image ID="Image1" runat="server" AlternateText="Loading..."
        BorderWidth="0px"  ImageUrl="~/DealTracking/loading.gif">
       </asp:Image>
                 
            </telerik:RadAjaxLoadingPanel>
            
 
 
        <!-- content end -->
        
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnResponseEnd="EnableButtons"   >
        <ClientEvents OnRequestStart="onRequestStart" />
             
            <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="btnStandard" EventName="Click">
                <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="btnStandardWrapper" UpdatePanelRenderMode="Block" />
                      
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                    <updatedcontrols>
                         
                        <telerik:AjaxUpdatedControl ControlID="btnStandardWrapper" UpdatePanelRenderMode="Block" />
                         <telerik:AjaxUpdatedControl ControlID="RadComboBox4" />
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1"
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                    </updatedcontrols>
                </telerik:AjaxSetting>
                 
                <telerik:AjaxSetting AjaxControlID="btnSelectDeal" EventName="Click">
                    <updatedcontrols>
                        <telerik:AjaxUpdatedControl ControlID="btnSelectDeal"/>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1"  LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox4" />    
                    </updatedcontrols>
                </telerik:AjaxSetting
                 
                 <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             
            </AjaxSettings>
        </telerik:RadAjaxManager>
        
    </form>
</body>
</html>

Pavlina
Telerik team
 answered on 22 Aug 2011
7 answers
138 views
Hi,

Kindly let me know is it possible to remove the "NOT AND " and "NOT OR" from the RAD filter menu.
If yes, the give me broad idea how is it possible. as i do not have nay clue from where to start of.
Any immediate reply is highly appreciated.

Thanks and Regards,
Govind.
Pavlina
Telerik team
 answered on 22 Aug 2011
1 answer
295 views
I'm using the form decorator and various controls and am using the skin windows7. I would like to globalize this in case I ever want to change it. I know I could just use VS find and replace, but it would be nice to set it in the web.config so I could change it really easily if I want. I was trying to use an app setting but it was giving me an error. Here's what I was trying to do

<telerik:RadFormDecorator ID="decorator" Skin="<%=ConfigurationManager.AppSettings("siteSkin")%>" DecoratedControls="All" runat="server" />

I know that my app setting is good because I just output it and I get Windows7. However, when I put it in that tag, I get an error. Am I doing something wrong or do you have a way to set the default to Windows7 in the web.config?
Niko
Telerik team
 answered on 22 Aug 2011
3 answers
81 views
Hi,

if (rcPieBudgetItems.Series[0].Type == ChartSeriesType.Bar)
        {
            isPieChart = false;
            for (int i = 0; i < rcPieBudgetItems.Series[0].Items.Count; i++)
            {
                rcPieBudgetItems.Series[0].Items[i].Appearance.FillStyle.MainColor = rcPieBudgetItems.CustomPalettes[0].Items[i].MainColor;
                rcPieBudgetItems.Series[0].Items[i].Appearance.FillStyle.SecondColor = rcPieBudgetItems.CustomPalettes[0].Items[i].SecondColor;
            }
            (rgLegend.MasterTableView.GetColumn("gncValueColumn") as GridNumericColumn).DataFormatString = "{0:C}";
        }
        else
        {
            isPieChart = true;
           
            if (rcPieBudgetItems.CustomPalettes.Count == 0 && rcPieBudgetItems.Series[0].Items.Count > 0)
            {
                rcPieBudgetItems.CustomPalettes.Add(MyColorPalette.CustomPalettesHelper(rcPieBudgetItems.Series[0].Items.Count));
                rcPieBudgetItems.SeriesPalette = rcPieBudgetItems.CustomPalettes[0].Name;
            }
           
            (rgLegend.MasterTableView.GetColumn("gncValueColumn") as GridNumericColumn).DataFormatString = "{0:0.00}%";
        }

MyColorPalette.CustomPalettesHelper will return a Palette based on a number. When I click on the image it will change the chart type from pie to chart or chart to pie and call the code above. The problem is the colors in pie chart is fine, but in bar chart they always have the same color as the first color in the CustomPalette even though I set the color values manually. By the way, if I set filltype in the code above then it will pick up the new fill type but not the color.
Will really appreciate if anyone can give me some suggestions based on that. I'll wait online.

Thanks a mill.
Evgenia
Telerik team
 answered on 22 Aug 2011
3 answers
75 views
Hello,

I have a grid which shows orders. If the order is archived then it it appends "<<Archived>>" at the start of order name.
E.g. if Order name is ABC it will be shown as <<Archived>> ABC.
Programmatically I append "&lt;&lt;Archived&gt;&gt;" at the start of it when it is archived and save it in db.
Now in my application after archiving I have to show this title at three places
1. In Grid : Which works fine. It shows it as "<<Archived>> ABC".
2. When I open my order in detailed view its title is shown in textbox; For showing it properly I use HttpUtility.HtmlDecode function.
3. I have a grid filter for each column. This column shows all the archived orders as "&lt;&lt;Archived&gt;&gt;OrderName".

What should I do to properly display it?

Radoslav
Telerik team
 answered on 22 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?