Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
151 views

Hi,

I have a radgrid built completely from code-behind as a server-control. I am trying to add column filters to some of its columns. When I set the properties required for filtering (AllowFilteringByColumn on the grid) I see the filters on the columns. I then create the columns in code-behind - set the filter properties on them - and add it to the grid's column collection. When I type text in the filter column and press Enter the page/grid doesn't postback. Nothing happens. What am I missing in the below code?

The constructor that initializes the control
public RadGridOpportunity()
{
    this.ID = "grdOpportunity";
    this.MasterTableView.AutoGenerateColumns = false;
    this.MasterTableView.DataKeyNames = new string[] { "ID" };
    this.MasterTableView.Columns.Add(ColStatus());
    this.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerBind;
    this.MasterTableView.NoRecordsTemplate = new TemplateNoRecords();
    this.ItemCommand += RadGridOpportunity_ItemCommand;           
    this.ItemCreated += RadGridOpportunity_ItemCreated;
    this.MasterTableView.NestedViewTemplate = new TemplateNestedView();
    this.NeedDataSource += RadGridOpportunity_NeedDataSource;
 
    //filtering
    this.AllowFilteringByColumn = true;
    this.MasterTableView.AllowFilteringByColumn = true;
}

 The column that is built and added to the columns collection-

protected GridColumn ColStatus()
{
    GridBoundColumn col = new GridBoundColumn();
    col.HeaderText = "Status";
    col.DataField = "Status";
    col.CurrentFilterFunction = GridKnownFunction.Contains;
    col.ShowFilterIcon = false;
    col.AutoPostBackOnFilter = true;
    col.DataType = Type.GetType("System.String");
    return col;
}

 

Viktor Tachev
Telerik team
 answered on 22 Jan 2016
1 answer
88 views

I have an issue that I am not able to figure out. In my Radscheduler I have the dropdown arrow for the popup calendar (next to the "today" link). When you select a date from the calendar I want it to change the Radscheduler view to that date. It is not working for me. Can you please give me some advice on how to make it work? I have included my code and an image of the dropdown calendar below.

Thank you,

Shelly

Nencho
Telerik team
 answered on 22 Jan 2016
5 answers
179 views

I am working on a new web interface and the tile list I used was 3 rows and grouped in 2 columns and looked nice and tidy as per the demos on the site. The quarterly update was applied (UI for ASP.NET AJAX v2016.1.113.45) to my project; but when viewing my tile list now instead of having 3 x 2 tiles then a gap then another 3 x 2 tile grouping. What I do get is 3 x 1 with a large gap and then 3 x 1, etc... (I have attached a file to show what I mean). But by manipulating the CSS class rtlistWrapper and making the width 11.8em instead of 22.8em this does sort of correct it; but is not what I want it to do.

The tiles are bound client side from an array of objects and I expect this process to organise the tiles correctly; but does seem that this is not the case.

 

My questions are; why has the looked changed even though I had only updated to the new telerik update? I would rather not use the CSS class manipulation to get it to look better; if there is another workaround or a setting in the Tile List control that I can implement to get it to render properly then that is the way I would prefer to go. Any advice is welcome.

Marin Bratanov
Telerik team
 answered on 22 Jan 2016
4 answers
200 views
Hello there,
I'd like to select a tab with a button located inside a user control which is then located inside a RadPageView element, i.e.
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="720"  SelectedIndex="1">
  <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">
    <uc1:DoctorControl ID="DoctorControl" runat="server" />
  </telerik:RadPageView>
...

and inside the DoctorControl I have a button to be hooked up with an event handler.

However, I can't figure out how to do this in an "ajaxified way".
I want the tab selection to behave in the same way as if I click the tabs directly, i.e. an AJAX request is initiated and the RadAjaxLoadingPanel is shown during the request.

Obvisously the RadAjaxManager of the page hosting everything can't see the actual initiator which is a button hidden inside the user control,
so this is part of the problem.

Anyone know how to achieve this ?

Thanks
Claus

PS. I am using the Telerik example TabStrip / Application Scenarios / AJAX-Enabled TabStrip and MultiPage as a starting point.
Eyup
Telerik team
 answered on 22 Jan 2016
3 answers
280 views
For Article 508 compatibility, the grid I have needs to have an ID attribute in the TH tags, and the HEADERS attribute in the TD tags. How can I accomplish this with RadGrid?
Pavlina
Telerik team
 answered on 21 Jan 2016
30 answers
2.1K+ views
Hi,
I have no problems adding the RadGrid control in the designer, but as soon as I configure the data source an error comes up (see below). I found an article with the same problem (www.telerik.com/community/forums/thread/b311D-bbedtc.aspx ) and also registered in the GAC the assemblies Telerik.Web.UI.dll and Telerik.Web.Design.dll. Any help will be highly appreciated. Need to get this going or will have to choose controls from other vendors (which I personally wouldnt like) :-)

Many thanks. BR, Jurgen

 RadGrid - RadGrid1System.Web.HttpParseException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. ---> System.Web.HttpParseException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. ---> System.Web.HttpException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. at System.Web.UI.CollectionBuilder.GetChildControlType(String tagName, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.DesignTimeTemplateParser.ParseControlsInternal(DesignTimeParseData data, Boolean returnFirst) at System.Web.UI.DesignTimeTemplateParser.ParseControl(DesignTimeParseData data) at System.Web.UI.Design.ControlSerializer.DeserializeControlInternal(String text, IDesignerHost host, Boolean applyTheme) at System.Web.UI.Design.ControlParser.ParseControl(IDesignerHost designerHost, String controlText, Boolean applyTheme) at System.Web.UI.Design.ControlDesigner.CreateClonedControl(IDesignerHost parseTimeDesignerHost, Boolean applyTheme) at System.Web.UI.Design.ControlDesigner.CreateViewControl() at System.Web.UI.Design.ControlDesigner.CreateViewControlInternal() at System.Web.UI.Design.ControlDesigner.get_ViewControl() at Telerik.Web.Design.RadGridDesigner.get_Grid() at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer)
Paul
Top achievements
Rank 1
 answered on 21 Jan 2016
5 answers
810 views
When I use RadDatePicker and update the item, the label show the result 29/08/2012 00:00:00.

                        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" DbSelectedDate='<%# Bind("rEstimatedDelivery") %>' >
                            <DateInput runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" />
                            <Calendar runat="server" ViewSelectorText="dd/MM/yyyy" TitleFormat="dd/MM/yyyy" />
                        </telerik:RadDatePicker>

How can I update only 29/08/2012, without 00:00:00 ?

Thank you!
Eyup
Telerik team
 answered on 21 Jan 2016
0 answers
63 views
The aim of the Telerik Support Forum is to provide all registered users a way to find answers to their questions before contacting Telerik. You can also use them to:
  • discuss coding techniques with fellow Telerik users
  • share your experience on the Telerik suite of controls
  • contact Telerik with a question
  • ask general questions, not related to Telerik controls
  • help other users.

A post in the Support Forums doesn't guarantee you a response from the Telerik support team although 95% of all posts are eventually answered. Additionally, a post is not assigned a response time as with the support ticketing system. In case you need a faster and precise response, please start a new support ticket as it gets higher priority than Forum posts.

Telerik strives to constantly improve its support services but it is essential to have full information so as to supply precise replies. It is important that you follow the guidelines below in order to receive an accurate response:

GUIDELINES TO USING THE SUPPORT FORUM

  1. You should have a valid Telerik account to post in the Forum. You can create one from the Registration page here. Anonymous names will not be allowed and such posts will not be answered or will be deleted.
  2. Use the relevant product forum to post your questions and comments. If your question relates to two or more Telerik products, you can post it in the General Discussions section.
  3. File attachments are not supported. You can, however, paste a code snippet. If you think that Telerik needs to review your project and/or files, or that a screenshot is necessary, start a new support ticket.
  4. Describe your question in detail.
  5. State the development software you are using, including:
    • ASP.NET version
    • OS
    • exact browser version
    • exact version of the Telerik product
    • preferred programming language (VB.NET or C#)
  6. Provide step by step instructions on how to reproduce erroneous behavior.
  7. If applicable, send us the error you are receiving.
  8. Telerik reserves the right to use, reproduce and share the material you post within the forums.
  9. Telerik reserves the right to not participate in all posts.
  10. Telerik reserves the right to remove any messages that do not comply with these terms.

ENJOY!!!

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 21 Jan 2016
4 answers
228 views

the horizontal scrollbar doesn't show. rows and columns are not align. But the following loads (via ajax callback) display correctly.

 

<telerik:RadPivotGrid ID="PivotGrid1" runat="server" AllowPaging="true" ShowDataHeaderZone="false" ShowColumnHeaderZone="false" ShowRowHeaderZone="false"
ShowFilterHeaderZone="false" AllowFiltering="false" AllowSorting="false" Skin="Office2010Silver" PageSize="10">

<Fields>
...
</Fields>
<ColumnHeaderCellStyle Width="120px" />
<RowHeaderCellStyle Height="20px" Width="120px" />
<TotalsSettings GrandTotalsVisibility="None" />
</telerik:RadPivotGrid>

Eyup
Telerik team
 answered on 21 Jan 2016
5 answers
248 views

I have a telerik radgrid used on my page.I have set the enablelinqexpressions property to true. What i read in blog was when we set this property we get the filter expression in the linq format like this - "(iif(Message == null, \"\", Message).ToString().ToUpper().Contains(\"f2e\".ToUpper()))" but i am still getting the filter expression in the SQL format.

 Am i missing any thing ?

 

Please find below few of my radgrid code snippet:

<telerik:RadGrid ID="gridResults" runat="server" AllowFilteringByColumn="True"
        AllowPaging="True" AllowCustomPaging="True" AllowSorting="True" AutoGenerateColumns="False"
        CellSpacing="0" EnableAJAX="True" GridLines="None" PageSize="20" Skin="Windows7"
        OnNeedDataSource="gridResults_NeedDataSource" OnItemCommand="gridResults_ItemCommand" Visible="False">
        <GroupingSettings CaseSensitive="False" />
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" />
        <ExportSettings OpenInNewWindow="true" ExportOnlyData="true" HideStructureColumns="true" />
        <MasterTableView CommandItemDisplay="Top" AllowMultiColumnSorting="False">
            <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToCsvButton="true" ShowExportToExcelButton="true" ShowRefreshButton="false" />
            <SortExpressions>
                <telerik:GridSortExpression FieldName="Timestamp" SortOrder="Descending" />
            </SortExpressions>

Eyup
Telerik team
 answered on 21 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?