Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
279 views
Is possible to customize the NavigationPane? How? Thanks
The Doctor
Top achievements
Rank 1
 answered on 17 Jan 2012
5 answers
139 views

We're displaying search results in a grid, and allowing filtering by column.

The issue I'm resolving is if a user filters, then hits the search button again, the results of the query are set as the data source, then the grid re-applies the filters on Rebind().

I want to clear the filters and show the data which the new search got from the database.

I found a thread which gave me something that works.  Rather than do all this work for every grid in our application, I was looking for something like grid.ClearFilters().

Am I just missing the easier way?  If not, that might be a nice convenience method.

Code-behind of my search button click:

------------
...set new search data...

grdUserSearchResults.MasterTableView.FilterExpression = String.Empty;
foreach (Telerik.Web.UI.GridColumn column in grdUserSearchResults.Columns)
{
    column.CurrentFilterFunction = Telerik.Web.UI.GridKnownFunction.NoFilter;
    column.CurrentFilterValue = String.Empty;
}

grdUserSearchResults.Rebind();
--------------

Golem
Top achievements
Rank 1
 answered on 17 Jan 2012
0 answers
79 views
Where can I get a reference/documentation for this version of RadGrid?

Jeff
Top achievements
Rank 1
 asked on 17 Jan 2012
2 answers
122 views
Hi,

Is there a way to change the css properties of the radschedular?

I have set the Font-Names property of my radschedular to Verdana. However while editing the appointment, all the textboxes and drop downs still show the default font (highlighted in red in the attached image). Is there a way I can change it?

Cheers.
Rushma
Top achievements
Rank 1
 answered on 17 Jan 2012
1 answer
587 views
Can I have muliple GridButtonColumn CommandName="Select" Lines and have the OnSelectedIndexChanged event know which one I clicked?

I need to have different "buttons" on the same row and depending on the one they clicked have an event fire letting me know which button was clicked.
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Jan 2012
1 answer
183 views
I have created 2 tabs HTML and TEXT using RadTabStrip and in both tabs, I have RadEditor in HTML and Text mode respectively. I am not using the default Edit mode with: Design, HTML and Preview. On page load, I am populating the contents in both the editors from database. Now when I make a change in HTML view and change the tab to TEXT, that change won't be there as it shows the content from database. How to achieve this?

Also for reference the markup for my code is :
<telerik:RadTabStrip ID="RadTabStrip1" runat="server"
                        ReorderTabsOnSelect="True" MultiPageID="RadMultipage1" SelectedIndex="0"
                        style="margin-left: 0" Width="100%" ShowBaseLine="True" Align="Justify">
                        <Tabs>
                            <telerik:RadTab Text="HTML" Selected="True">
                            </telerik:RadTab>
                            <telerik:RadTab Text="TEXT">
                            </telerik:RadTab>
                        </Tabs>                        
                    </telerik:RadTabStrip>

                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
                        CssClass="pageView" Width="100%">
                    <telerik:RadPageView ID="htmlview" runat="server">
                      <telerik:RadEditor ID="htmleditor" runat="server" EditModes="Html" Width="100%"></telerik:RadEditor>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="textview" runat="server">
                        <telerik:RadEditor ID="texteditor" runat="server" EditModes="Design" Width="100%"></telerik:RadEditor>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
Naupad
Top achievements
Rank 1
 answered on 17 Jan 2012
4 answers
240 views
Where to find localization file for German language for RadGrid, any help would be appreciated.

Thanks,

Anthony
Bill Togkas
Top achievements
Rank 2
 answered on 17 Jan 2012
0 answers
54 views
Delete
Craig
Top achievements
Rank 1
 asked on 17 Jan 2012
1 answer
355 views
Hi,

Can anyone let me know how to bind the check box list inside the form template of radgrid in the pageload event
or
any alternative solution for the above requirement 
or
Find the controls inside the Form Template in the page load event 

I have checked this link.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx
but they are binding the dropdown with static values.  I want to bind the dropdown on the fly in page load

Thanks in advance
Parmesh
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Jan 2012
2 answers
172 views
Hello,

I'm trying use domain data source with RadGrid in ASP.NET 4.0 project (by this demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/domaindatasource/defaultcs.aspx). I'm using LinqToEntitiesDomainService (EntityFramework).
<telerik:RadGrid ID="groups" runat="server" AllowPaging="true" DataSourceID="dsGroups">
    <MasterTableView CommandItemDisplay="Top" AllowAutomaticInserts="true" AllowAutomaticDeletes="true"
        AllowAutomaticUpdates="true" AutoGenerateColumns="false" DataKeyNames="GroupId">
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" />
            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" />
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" />
            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<asp:DomainDataSource ID="dsGroups" runat="server" DomainServiceTypeName="DataSources.GroupsDomainService"
    EnableDelete="True" EnableInsert="True" EnableUpdate="True" QueryName="GetGroups">
</asp:DomainDataSource>

I'm getting following error:

Server Error in '/' Application.

The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotSupportedException: The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NotSupportedException: The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'.]
   System.Data.Objects.ELinq.PassthroughOrderByLifter.Skip(DbExpression k) +94
   System.Data.Objects.ELinq.ExpressionConverter.Skip(DbExpressionBinding input, DbExpression skipCount) +31
   System.Data.Objects.ELinq.SkipTranslator.TranslatePagingOperator(ExpressionConverter parent, DbExpression operand, DbExpression count) +63
   System.Data.Objects.ELinq.PagingTranslator.TranslateUnary(ExpressionConverter parent, DbExpression operand, MethodCallExpression call) +62
   System.Data.Objects.ELinq.UnarySequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call) +81
   System.Data.Objects.ELinq.SequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, SequenceMethod sequenceMethod) +14
   System.Data.Objects.ELinq.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq) +102
   System.Data.Objects.ELinq.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) +54
   System.Data.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) +110
   System.Data.Objects.ELinq.UnarySequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call) +58
   System.Data.Objects.ELinq.SequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, SequenceMethod sequenceMethod) +14
   System.Data.Objects.ELinq.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq) +102
   System.Data.Objects.ELinq.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) +54
   System.Data.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) +110
   System.Data.Objects.ELinq.ExpressionConverter.Convert() +16
   System.Data.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable`1 forMergeOption) +110
   System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +149
   System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +44
   System.Data.Objects.ObjectQuery`1.GetEnumeratorInternal() +36
   System.Data.Objects.ObjectQuery.System.Collections.IEnumerable.GetEnumerator() +10
   System.ServiceModel.DomainServices.Server.DomainService.Enumerate(IEnumerable enumerable, Int32 estimatedResultCount) +299
   System.ServiceModel.DomainServices.Server.DomainService.Query(QueryDescription queryDescription, IEnumerable`1& validationErrors, Int32& totalCount) +1289
   Microsoft.Web.UI.WebControls.DomainDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +435
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   Telerik.Web.UI.GridTableView.PerformSelect() +16
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.GridTableView.DataBind() +259
   Telerik.Web.UI.RadGrid.DataBind() +87
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
   System.Web.UI.Control.EnsureChildControls() +102
   Telerik.Web.UI.GridBaseDataList.get_Controls() +15
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +41
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +623
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +623
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +623
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +623
   Telerik.Web.UI.RadFormDecorator.DecorateAspNetControls() +39
   Telerik.Web.UI.RadFormDecorator.ControlPreRender() +624
   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237


Could you help me please?

Thank you



JiriSchmitt
Top achievements
Rank 1
 answered on 17 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?