Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
80 views
Hi Experts,

I am encountering error. Please see attached snap shot of error.
When I create any appointment via advance insert form it shows me error. When I add appointment from basic insert form it does not show me error, but when I edit any appointment it also gives me same error.
I am unable to add/edit any appointment.

I have master page and radAjaxLoadingPanel, radAjaxPanel placed on my aspx page.
It seems to be a scripting error.....or might be a telerik dll issue that is not referencing properly.

Regards,
Mohsin Jawaid
Veronica
Telerik team
 answered on 26 Apr 2011
4 answers
250 views
Hello,

I have a UserControl with different fields and a RadComboBox. I want to reduze the time that the user needs to wait (actually the RadComboBox is populated on server-side and it takes a lot of time).

The content of the RadComboBox is not required immediatly; the user needs to fill some fields before. I want to use a WebService or HttpHandler to fill the RadComboBox asynchronously and make it completly "invisible" for the user.

I found some solutions to load the items using a WebService/WCF but the request is sent only when the user try to display the RadComboBox's content (LoadOnDemand)!

Is there a solution to call the WebService automatically after the page load without an interaction of the user?

Thank you for your help.
Quantesys IT
Top achievements
Rank 1
 answered on 26 Apr 2011
1 answer
96 views
Hello,
I have a SharePoint Server 2010 site which use the rad menu control. The problem I'm facing is that this controls are disturbing inline editing OOTB fuctionality. Within any custom list, if you group the elemments by any field and inline editing is enabled in the view, when you try to expand the group, items don't get displayed. That's a strange behavior. You can overcome this problem showing groups expanded by default, by this is not what I need.

Thanks in advance.
F.
Kate
Telerik team
 answered on 26 Apr 2011
1 answer
128 views
Hello,

I am trying to apply a filter on initial load but continue to get an error. I have followed this example http://www.telerik.com/help/aspnet-ajax/grdapplyingdefaultfilteroninitialload.html which seems pretty simple but I get an error: "Expression expected",.. "Exception Details: System.Web.Query.Dynamic.ParseException: Expression expected". Any help would be great.

Thanks

<%@ Page Title="" Language="C#" MasterPageFile="~/MBA/MBA.master" AutoEventWireup="true"
    CodeFile="ProgramMembers.aspx.cs" Inherits="MBA_ProgramMembers" %>
 
<%@ Register Src="../Controls/AddPersonModal.ascx" TagName="AddPersonModal" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="NestedContent" runat="Server">
    <script type="text/javascript">
        function OpenPositionedWindow(oButton, url, windowName) {
            var oWnd = window.radopen(url, windowName);
        }
        function openRadWindow(HNUMBER) {
            var oWnd = window.open("StudentFolder.aspx?HNUMBER=" + HNUMBER, "RadWindow1", "WindowPopup", "width=400px, height=400px, resizable");
            oWnd.center();
        }
 
    </script>
    <div id="programMembersGrid">
        <telerik:RadGrid ID="rgMBAProgramMembers" runat="server" AllowFilteringByColumn="True"
            AllowPaging="True" AllowSorting="True" DataSourceID="ldsMBAProgramMembers" GridLines="None"
            CellSpacing="0" EnableLinqExpressions="false">
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataSourceID="ldsMBAProgramMembers"
                FilterExpression="([Active] = True)">
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="HNUMBER" DataType="System.Int32" FilterControlAltText="Filter HNUMBER column"
                        HeaderText="HNUMBER" SortExpression="HNUMBER" UniqueName="HNUMBER" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BANNER_ID" FilterControlAltText="Filter BANNER_ID column"
                        HeaderText="Anumber" SortExpression="BANNER_ID" UniqueName="BANNER_ID" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="equalto" FilterDelay="4000" ShowFilterIcon="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FullName" FilterControlAltText="Filter FullName column"
                        HeaderText="Name" SortExpression="FullName" UniqueName="FullName" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="Contains" FilterDelay="4000" FilterControlWidth="150"
                        ShowFilterIcon="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProgramName" FilterControlAltText="Filter ProgramName column"
                        HeaderText="Program" SortExpression="ProgramName" UniqueName="ProgramName" AllowFiltering="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MemberTypes" FilterControlAltText="Filter MemberTypes column"
                        HeaderText="MemberTypes" SortExpression="MemberTypes" UniqueName="MemberTypes"
                        AllowFiltering="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" HeaderText="Active"
                        UniqueName="Active" AutoPostBackOnFilter="true" ShowFilterIcon="false" AllowSorting="true"
                        CurrentFilterFunction="EqualTo" CurrentFilterValue="True">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridTemplateColumn ItemStyle-Width="20px" HeaderStyle-Width="20px" FooterStyle-Width="20px">
                        <ItemTemplate>
                            <a href="#" onclick="openRadWindow('<%#DataBinder.Eval(Container.DataItem,"HNUMBER")%>'); return false;">
                                <asp:Image ID="iFolder" runat="server" ImageUrl="~/App_Themes/Huntsman/Grid/Folder.png"
                                    Style="border: none; border-width: 0" /></a>
                        </ItemTemplate>
                        <FilterTemplate>
                            Show All
                            <asp:ImageButton ID="btnShowAll" runat="server" ImageUrl="~/App_Themes/Huntsman/Grid/filterCancel.gif"
                                AlternateText="Show All" ToolTip="Show All" OnClick="btnShowAll_Click" Style="vertical-align: middle" />
                        </FilterTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
    </div>
    <telerik:RadWindowManager ID="RadWindowManager1" Width="1020px" Height="1170px" EnableShadow="true"
        VisibleOnPageLoad="true" RestrictionZoneID="folderContainer" runat="server">
    </telerik:RadWindowManager>
    <asp:LinqDataSource ID="ldsMBAProgramMembers" runat="server" ContextTypeName="DAL.HuntsmanLinqDataContext"
        EntityTypeName="" TableName="vw_MBAProgramMembers">
    </asp:LinqDataSource>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgMBAProgramMembers">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ldsMBAProgramMembers">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgMBAProgramMembers" />
                    <telerik:AjaxUpdatedControl ControlID="ldsMBAProgramMembers" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
-----------------------------------------------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class MBA_ProgramMembers : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    protected void btnShowAll_Click(object sender, System.Web.UI.ImageClickEventArgs e)
    {
        rgMBAProgramMembers.MasterTableView.FilterExpression = string.Empty;
 
        foreach (GridColumn column in rgMBAProgramMembers.MasterTableView.RenderColumns)
        {
            if (column is GridBoundColumn)
            {
                GridBoundColumn boundColumn = column as GridBoundColumn;
                boundColumn.CurrentFilterValue = string.Empty;
            }
        }
 
        this.
        rgMBAProgramMembers.MasterTableView.Rebind();
    }
}

Pavlina
Telerik team
 answered on 26 Apr 2011
1 answer
93 views
Hi.. 
How to set the cssclass attribute while inserting the textbox control in radeditor..?
Rumen
Telerik team
 answered on 26 Apr 2011
1 answer
128 views

I just wanted to find out if it's possible to disable image resizing in the Design mode of the Telerik:RadEditor?

Rumen
Telerik team
 answered on 26 Apr 2011
6 answers
241 views
Is there a way to make the filter work with text entered for a RadGrid GridDropDownList and respect the lookup values (ie a databound lookup) for ListTextField instead of the numeric ID?

Also, similar question:  When a GridDropDownList column is grouped in RadGrid, the ID is displayed in the group header instead of the databound ListTextField value.  So it shows xxx: 1830 instead of xxx: Bob Smith  ?
Mira
Telerik team
 answered on 26 Apr 2011
3 answers
111 views
I have a grid with three columns and I want user to enter their filter values and then click "Search Filter" button which is outside the grid.
Two columns have a textboxes for filter and the last column has a combobox with checkbox in it.
Everything works fine when the textbox columns are filtered. Problem occurs when the combobox with checkbox is selected.  it returns no data found. You  can see the image attached and also Client and Serverside codes.

Do let me know where am I going wrong...Any help will be appreciated.

Thanks

ASPX
<telerik:RadGrid ID="rgPartnerPhone" runat="server" AllowFilteringByColumn="True"
   AllowPaging="True" AllowSorting="True" DataSourceID="dsPartnerPhone" GridLines="None"
Skin="Outlook" Width="100%" ShowGroupPanel="True" AutoGenerateColumns="False"
 PageSize="50" Height="570px" OnItemCreated="rgPartnerPhone_ItemCreated" OnPreRender="rgPartnerPhone_PreRender"
 ShowFooter="true">
 <MasterTableView DataSourceID="dsPartnerPhone" DataKeyNames="ProductID,  ProductName"
PageSize="50" Width="100%" GroupLoadMode="Client" EnableNoRecordsTemplate="true"
ShowHeadersWhenNoRecords="true" AllowFilteringByColumn="true" AllowMultiColumnSorting="true"
EnableHeaderContextMenu="true">
<NoRecordsTemplate>
<div style="color: Red; font-weight: bold">
No data found.</div>
</NoRecordsTemplate>
<Columns>
 <telerik:GridNumericColumn DataField="ProductID" DataType="System.Int32" HeaderText="ProductID"
 SortExpression="ProductID" UniqueName="ProductID" ShowFilterIcon="false" AutoPostBackOnFilter="false"
CurrentFilterFunction="EqualTo" NumericType="Number" MaxLength="10" FilterControlWidth="60px"
HeaderStyle-Width="80px" ReadOnly="true" Groupable="false" AllowFiltering="true">
</telerik:GridNumericColumn>
<telerik:GridTemplateColumn DataField="ProductName" HeaderText="ProductName" AutoPostBackOnFilter="false"
FilterDelay="4000" ShowFilterIcon="false" SortExpression="ProductName" UniqueName="ProductName"
CurrentFilterFunction="Contains" ItemStyle-Wrap="false" FilterControlWidth="260px"
HeaderStyle-Width="280px" Groupable="false" AllowFiltering="true">
<ItemTemplate>
<asp:HyperLink ID="hlPName" runat="server" NavigateUrl='<%# Eval("CatalogPageLink")%>'
      Target="_blank" Text='<%# Eval("ProductName")%>' ToolTip="Get Catalog Details"></asp:HyperLink>
</ItemTemplate>
       </telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="EquipmentType" HeaderText="EquipmentType" SortExpression="EquipmentType"
UniqueName="EquipmentType" ShowFilterIcon="false" FilterControlWidth="140px"
HeaderStyle-Width="160px" ItemStyle-Wrap="false" AllowFiltering="true">
                      <FilterTemplate>
                         <telerik:RadComboBox ID="rcbEquip" runat="server" DataSourceID="dsGetEquipment"
AllowCustomText="true" DataTextField="EquipmentType" DataValueField="EquipmentTypeID"
Width="135px" AppendDataBoundItems="true" EmptyMessage="-- All Equipment --"
      HighlightTemplatedItems="true" AutoPostBack="true" TabIndex="1" Skin="Outlook"
OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosing="OnClientDropDownClosing"
OnClientSelectedIndexChanging="OnClientSelectedIndexChanging" OnClientBlur="OnClientBlur"
OnClientDropDownClosed="onDropDownClosing">
<ItemTemplate>
<div onclick="stopPropagation(event);">
<asp:CheckBox runat="server" ID="cbEquipment" 
Text='<%# DataBinder.Eval(Container, "Text") %>' />
</div>
</ItemTemplate>
</telerik:RadComboBox>
<asp:SqlDataSource ID="dsEquipment" runat="server" ConnectionString="<%$ ConnectionStrings:connGait %>"
  SelectCommand="dbo.CTsp_PPT_GetEquipmentType" SelectCommandType="StoredProcedure" />
  </FilterTemplate>
</telerik:GridBoundColumn>
  </Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True"
EnableRowHoverStyle="true" EnablePostBackOnRowClick="false" AllowKeyboardNavigation="true"
ColumnsReorderMethod="Reorder">
<Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="0">
</Scrolling>
<ClientMessages />
</ClientSettings>
<PagerStyle Mode="NextPrevNumericAndAdvanced" />
</telerik:RadGrid>


Server Side Code

protected void btnFilters_Click(object sender, EventArgs e)
   {
       GridFilteringItem item = rgPartnerPhone.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;
       //for ComboBox
       string strEquip = string.Empty;
       RadComboBox comborcbEquip = (RadComboBox)item.FindControl("rcbEquip");
       foreach (RadComboBoxItem ritem in comborcbEquip.Items)
       {
           CheckBox checkBox = (CheckBox)ritem.FindControl("cbEquipment");
           if (checkBox.Checked)
           {
               strEquip += ritem.Text + ",";
           }
       }
       if (!string.IsNullOrEmpty(strEquip))
           strEquip = strEquip.Remove(strEquip.Length - 1);
        
       string strProductID = (item["ProductID"].Controls[0] as RadNumericTextBox).Text;
       string strProductName = (item["ProductName"].Controls[0] as TextBox).Text;
       string strEquipType = strEquip;
       string expression = "";
     
       if (strProductID != "")
       {
           if (expression != "")
               expression += " AND ";
           expression += "([ProductID]  = \'" + strProductID + "\')";  
       }
       if (strProductName != "")
       {
           if (expression != "")
               expression += " AND ";
           expression += "([ProductName] LIKE \'%" + strProductName + "%\')";
       }
       if (strEquipType != "")
       {
           string[] words = strEquipType.Split(',');
           foreach (string citem in words)
           {
               if (expression != "")
                   expression += " AND ";
               expression += "([EquipmentType] LIKE \'%" + citem + "%\')";
           }
       }
       rgPartnerPhone.MasterTableView.GetColumnSafe("ProductID").CurrentFilterValue = strProductID;
       rgPartnerPhone.MasterTableView.GetColumnSafe("ProductName").CurrentFilterValue = strProductName;
      rgPartnerPhone.MasterTableView.GetColumnSafe("EquipmentType").CurrentFilterValue = strEquipType;
       rgPartnerPhone.MasterTableView.FilterExpression = expression;
       rgPartnerPhone.MasterTableView.Rebind();
   }
Mira
Telerik team
 answered on 26 Apr 2011
4 answers
186 views
Hi,

I have a OnClientSelectedIndexChanged event on my combo box which is working fine in IE but not in Firefox. I'm using telerik version 2010.2.929.35.

Regards,
Lubna.
Dimitar Terziev
Telerik team
 answered on 26 Apr 2011
1 answer
55 views

hi

i want to use detail of uploaded file from RadAsyncUpload (like file size, content type and ...) before that i save it!

how can i do this?

Shinu
Top achievements
Rank 2
 answered on 26 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?