Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
716 views

I am using custom filter in my radgrid. I am creating the filter column like this:

FilterColumn : GridBoundColumn

{

//othercode

_filterCombo = new RadComboBox()
                              {
                                  ID = "filterCombobox" + this.UniqueName,

                                  OnClientItemsRequested = "OnClientItemsRequestedHandler",
                                  OnClientDropDownOpening = "OnClientItemsRequestedHandler",

                                  //other code

                             }

 _filterCombo.SelectedIndexChanged += filterCombo_SelectedIndexChanged;
 _filterCombo.ItemsRequested += filterCombo_ItemsRequested;

//othercode

}

When the column name contain special characters like $,& ] etc the filter does not work.

I have noticed that in this case neither OnClientDropDownOpening nor ItemsRequested event fires.

 I have tried the solution in the thread http://www.telerik.com/forums/grid-mastertableview-filterexpression-is-blank-on-special-chars-like-quot-lt-gt-is-passed-from-google-like-filtering. but this is not working.

I am still not able to filter even after making the changes mentioned in the above thread.

 Also when my column name contains "> (e.g te">stcolumn ), than the grid fails to show the combobox. Instead it shows html and textboxes.

It correctly shows the combobox if I htmlencode the above column name but filtering still does not work even after setting IllegalStrings and EnableLinqExpressions in page_load event.

GridFilterFunction.IllegalStrings = new string[] { " LIKE ", " AND ", " OR ", " NULL ", " IS " };
            rg_Report.EnableLinqExpressions = true;

 My telerik.UI version is 2014.

Eyup
Telerik team
 answered on 06 Jul 2015
6 answers
334 views
Hi,
I increased the RadSearchBox Text Size using CSS but the dropdown list text font size is still small. I want to increase that. How can I do that ?
Nencho
Telerik team
 answered on 06 Jul 2015
2 answers
193 views
I have a RadGrid built on lines of the demo - http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx 
Grouping and ungrouping works when I drag and drop, but I am not able to see the column being dragged when I attempt to drag a column to and from the GroupPanel. 

Here are the relevant settings on my grid -

<telerik:RadGrid ID="MyGrid" OnItemCreated="MyGrid_ItemCreated"  Skin="MySkin" EnableEmbeddedSkins="false" GridLines="None"  
                                                OnNeedDataSource="MyGrid_NeedDataSource"  OnItemEvent="BudgetedChargesGrid_ItemEvent" OnItemDataBound="MyGrid_ItemDataBound"  
                                                 AllowMultiRowSelection="true" AllowMultiRowEdit="true" HorizontalAlign="Center" ShowStatusBar="false" AutoGenerateColumns="false" runat="server"
                                                 GroupingEnabled="true" ShowGroupPanel="true" ShowFooter="true"  EnableViewState="true" OnGroupsChanging="GroupsChanging" >
                                                <ClientSettings AllowColumnsReorder="false" AllowDragToGroup="true">
                                                    <Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="200px" />
                                                     <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="false" EnableDragToSelectRows="false" />                          
                                                     <Resizing  AllowColumnResize="false" ClipCellContentOnResize="false" />
                                                     <ClientEvents OnGridCreated="AnaquaGrid_GridCreated" />
                                                </ClientSettings>
                                                <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" />
                                                <GroupingSettings RetainGroupFootersVisibility="true" ShowUnGroupButton="true"  />
                                                <MasterTableView DataKeyNames="InvoiceBudgetId" Width="100%" ShowGroupFooter="true"  FooterStyle-CssClass="smallText strong"  GroupHeaderItemStyle-CssClass="smallText strong"  ItemStyle-VerticalAlign="Top"
                                                 AlternatingItemStyle-VerticalAlign="Top" HeaderStyle-VerticalAlign="Top" HeaderStyle-HorizontalAlign="Left"
                                                CommandItemDisplay="None" Dir="LTR"  CurrentResetPageIndexAction="SetPageIndexToFirst" TableLayout="Auto" HierarchyLoadMode="Client" 
                                                EnableColumnsViewState="false" EditMode="InPlace" AllowNaturalSort="false" AllowCustomSorting="true" AllowPaging="true" AllowSorting="true" AllowCustomPaging="true" >
  <SortExpressions>                                                  
                                                </SortExpressions>
                                                   <Columns>
<!-- I have GridBound and GridTemplate Columns here--!>
  </Columns>                                           
                                                </MasterTableView>
                                            </telerik:RadGrid>

Is there a setting to turn this on or is this built in with the grouping functionality? If latter, what is suppressing that functionality for me?
Thanks,
NP
Raffee
Top achievements
Rank 1
 answered on 06 Jul 2015
1 answer
432 views

Here is my test page:

 

<head runat="server">
<title>Now</title>
<script runat=server type="text/C#">
public void Submit_Click(object sender,System.EventArgs eventArgs)
{
    this.Title = System.DateTime.Now.ToString();
}
</script>
</head>
<body>
<form runat="server">
<Telerik:RadScriptManager runat=server />
<Telerik:RadAjaxManager runat=server EnablePageHeadUpdate=false>
    <AjaxSettings>
        <Telerik:AjaxSetting AjaxControlID=Submit>
            <UpdatedControls>
                <Telerik:AjaxUpdatedControl ControlID=Submit />
            </UpdatedControls>
        </Telerik:AjaxSetting>
    </AjaxSettings>
</Telerik:RadAjaxManager>
<asp:Button runat=server ID=Submit OnClick=Submit_Click />
</form>
</body>
</html>

 

Even if the "EnablePageHeadUpdate" is set to false, the title of the page still change after clicking the button.

Maria Ilieva
Telerik team
 answered on 06 Jul 2015
3 answers
75 views

Unfortunately, 2015 Q2 broke our application's RadGrid Persistence behavior. Calling LoadState() in the Persistence Framework breaks and never returns (100% cpu).  The same broken behavior can also be seen on Telerik's Demo for this:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/persisting-grid-settings/defaultcs.aspx?product=grid

Note that you cannot Save and Load properly and the AJAX call will never return when clicking Load.  This is the same behavior we are experiencing in our application after upgrading to 2015.2.623.45

Daniel
Telerik team
 answered on 06 Jul 2015
1 answer
78 views

Hello,

 

I have an element on a GroupHeaderTemplate  and i want to bind a value on this element (button).

How can i make this ?

 

Thanks for your support,

Alexandre

Eyup
Telerik team
 answered on 06 Jul 2015
1 answer
90 views

Hello Telerik Community!

I am looking to customize the labels of time column. For instance, I would like to have radscheduler display "9h - 10h" instead of "09:00".
How could I potentially succeed into this?

Best,
David

Nencho
Telerik team
 answered on 06 Jul 2015
2 answers
436 views

Hi,

Is it at all possible to set the media source of the RadMediaPlayer to a MemoryStream?

I am storing voice recordings in our database as a byte[] and then reading them back into our webapp. I want to avoid writing the byte[] to a file and then re-reading it just to play it back.

Any help would be appreciated.

Thanks

Eyup
Telerik team
 answered on 06 Jul 2015
4 answers
272 views
We have a RadGrid with multiple columns.  Two of the columns are Bound to some Lazy Loaded properties.

The first looks like this:

<telerik:GridBoundColumn DataField="Contact.FullName" DataType="System.String" FilterControlAltText="Filter Portfolio Manager column" HeaderText="Portfolio Manager" HeaderButtonType="TextButton" SortExpression="PortfolioManager" UniqueName="PortfolioManager" FilterControlWidth="60%">
     <HeaderStyle CssClass="GridHeaderControlColor" Width="25%" />
</telerik:GridBoundColumn>

The other looks like this:
<telerik:GridBoundColumn DataField="Contact1.Fullname" FilterControlAltText="Filter Compliance Officer column" SortExpression="ComplianceOfficer" HeaderText="Compliance Officer" HeaderButtonType="TextButton" UniqueName="ComplianceOfficer" DataType="System.String" FilterControlWidth="60%">
     <HeaderStyle CssClass="GridHeaderControlColor" Width="20%" />
</telerik:GridBoundColumn>


They are bound to different columns obviously but both are lazy loaded from the Contact table.

The first one (Portfolio Manager) Filters fine.

The second (Compliance Officer), when you Filter we get errors about Null Reference.
The error does not trigger any stoppage in Debug mode, it just goes straight back to the page and the Stack Trace doesn't touch any of our code.

I THINK the issue is that the second column can have NULLs, but I have no idea how to handle Null values on Lazy Loaded Bound objects.



Here is the Stacktrace:

[NullReferenceException: Object reference not set to an instance of an object.]
   lambda_method(Closure , PMD_ComplianceLoanAdminReport ) +62
   System.Linq.WhereEnumerableIterator`1.MoveNext() +141
   System.Linq.Enumerable.Count(IEnumerable`1 source) +225
   lambda_method(Closure ) +149
   System.Linq.EnumerableExecutor`1.Execute() +94
   System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23
   System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +94
   Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +296
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +4216
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1064
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +58
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +45
   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +221
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +154
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +566
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +223
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +622
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +800
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   Telerik.Web.UI.GridTableView.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.GridTableView.DataBind() +363
   Telerik.Web.UI.GridTableView.Rebind() +100
   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +954
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +200
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +66
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +142
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +9998
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
Bryan
Top achievements
Rank 1
 answered on 06 Jul 2015
4 answers
766 views
Every time I start VS 2010 I am prompted to update Telerik WebUI VSExtensions from 2013.2.611 to 2013.3.1022 however when I click on the Install button after the update is downloaded the install just hangs and does nothing indefinitely.

The biggest problem is that I cannot even Uninstall 2013.2.611. When I go to Installed Extensions and click on Uninstall button I am prompted with "Are you sure you want to uninstall..." but when I click on Yes absolutely nothing happens.

This is in VS 2010 both when I choose "Run as Administrator" or run it normally...

How do I fix this problem?
Dyanko
Telerik team
 answered on 03 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?