This is a migrated thread and some comments may be shown as answers.

[Solved] Filtering problems

5 Answers 292 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Collin
Top achievements
Rank 1
Collin asked on 12 Jun 2009, 08:22 PM
Hi, my boss just upgraded from 2008.1.515.35 to the 2009.1.402.35 version of the Telerik ASP.Net AJAX controls (I believe from Q3 2008 to Q1 2009) and now I'm getting the following two problems...

Problem 1

Telerik.Web.UI.GridFilterMenu with ID='rfltMenu' was unable to find embedded skin with name 'ourcustomskin'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

It looks like the rfltMenu is auto generated by the control, as I can't find it.  I rolled things back to the older version of the control and everything works fine.  Did the underlying skin structure change slightly?  Anybody seen this before?  I'm being lazy here, if I dig hard enough I bet I can fix this, but if someone has a quick fix I'm all ears.  Problem two is a little more challenging.

Problem 2

We have a custom implimentation of the templategridcolumn that is stackable (i.e. you can have multiple data items per row).  Usually we stack two data items per custom template column.  Again, with the new version of the controls, filtering no longer works where before it did (could be related to problem 1).  It looks like the Javascript generated by the Telerik will no longer fire the filter event if the first filter column textbox is empty in the column.  In most scenarios that would be fine, but since we have two or more filter texboxes (one per data item in the row) you could be filtering off the second textbox while leaving the first filter text box blank.  Anyone have problems like this?  Is there a decent example of over-riding the default javascript filtering behavior so we can pull this off?

I think I will hold off posting source code for now, probably have to open a ticket.  But if anyone has encountered these issues any help you can offer would be helpful. Thanks.

5 Answers, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 16 Jun 2009, 08:23 AM
Hi Collin,

Our 2009.Q1 release of RadGrid has its skins slightly changed for improvement, as you guessed correctly. Please refer to the following documentation article and the references in it on how to adapt your existing skin:

Changes and backward compatibility

On the other hand, the error you are getting, as described in the exception message, seems to originate from RadGrid trying to access an embedded skin with a custom name. If you have your own modified RadGrid skin, please set EnableEmbeddedSkins="false" as required.

As for your filtering issue, please note, that we do not support inherited controls. Therefore, we can only suggest some common inheritance guidelines. Here is an article that explains the details around implementing filtering for custom columns:

Implementing filtering for template/custom columns

All the best,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Collin
Top achievements
Rank 1
answered on 17 Jun 2009, 08:24 PM
Thanks for getting back to me Veli.  The link about the changes in the skins I hope will be helpful.  I'm a little disappointed that changes in versions break existing functionality, but such is life I guess.
0
PinoS
Top achievements
Rank 1
answered on 21 Jul 2010, 08:59 PM
I am getting the same error with the Q1 2010 release.  My skins are based on this release so there is no backward compatibility issue.  I just upgraded to the Q2 release and the issue remains.  Is there any way to override the skin for the rfltmenu class?

Thanks.
0
Veli
Telerik team
answered on 22 Jul 2010, 12:11 PM
Hi PinoS,

Try setting:

<telerik:RadGrid Skin="[SkinName]" EnableEmbeddedSkins="false">
    <FilterMenu Skin="[SkinName]" EnableEmbeddedSkins="false">
    </FilterMenu>
</telerik:RadGrid>

The above code sets the custom skin you use for RadGrid to the filter menu, too. To create a custom skin for the RadContextMenu (the filter menu), refer to the following online help article.

All the best,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bimar
Top achievements
Rank 1
answered on 27 Jun 2014, 12:15 PM
...and here is the the alternative way we solved it
web.config

<appSettings>
    <add key="Telerik.Grid.Skin" value="2011"/>
    <add key="Telerik.Grid.EnableEmbeddedSkins" value="false"/>
    <add key="Telerik.GridFilterMenu.Skin" value="2011"/>
    <add key="Telerik.GridFilterMenu.EnableEmbeddedSkins" value="false"/>
Tags
Grid
Asked by
Collin
Top achievements
Rank 1
Answers by
Veli
Telerik team
Collin
Top achievements
Rank 1
PinoS
Top achievements
Rank 1
Bimar
Top achievements
Rank 1
Share this question
or