GridViewImageColumn Custom Filter Text and Custom Grouping Name

10 posts, 0 answers
  1. Siva Jagan
    Siva Jagan avatar
    5 posts
    Member since:
    Feb 2013

    Posted 27 Mar 2013 Link to this post

    Hi,

    I am using GridViewImageColumn to bind the images at runtime to GridView. When I try to filer/Group this Image column, image source path is showing. I just wanted to change the Filter text.

    For Example, I have a Status colun where I show Pass/Fail images. When I filter or group this column, Image source path is showing. So, here I just wanted to show Filter or group text as Pass and Fail rather than pass/fail image path.

    PFA as attachment for your reference.

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Mar 2013 Link to this post

    Hello,

    As to displaying an Image or custom text inside the Filtering Control, I would suggest you to check the attached solution in this forum thread. You could use a similar approach in your scenario.

    As to changing the grouping name, you could predefine the GroupHeaderTemplate for the GridViewDataColumn as shown on the "Totals" demo available on our WPF demos

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Siva Jagan
    Siva Jagan avatar
    5 posts
    Member since:
    Feb 2013

    Posted 30 Mar 2013 Link to this post

    Hi Didie,

    Thanks for your resolution.

    Filtering is working fine. But Grouping is not working. Dynamically I add the GridViewImage Column to GridView as shown in below code. so, in this scenario, How can I use the GroupHeaderTemplate to change the Grouping Header name from path as I explained in previous post.

    var

    column = new ImageFilterColumn

     {

     

    DataMemberBinding =

     

    new System.Windows.Data.Binding(col.ResultNode),

    ColumnGroupName = col.DispayName,

    Header = col.DispayName,

    IsFilterable = col.IsFilterable,

    IsGroupable = col.IsGroupable,

    IsSortable = col.IsSortable,

    ShowFieldFilters=

    false,
    ImageHeight = 15.0,

     

    };

    gridView.Columns.Add(column);

    Thanks alot for your resolution.

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Apr 2013 Link to this post

    Hello,

    Have you checked how the GroupHeaderTemplate is predefined in the demos? You should place an image in the template. 

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Siva Jagan
    Siva Jagan avatar
    5 posts
    Member since:
    Feb 2013

    Posted 02 Apr 2013 Link to this post

    Hi,

    Yes I have seen couple of exaples given in WPF demo. I am clear when I want to add GroupHeaderTemplate at design time. But I am not clear when  I want to add GroupHeadertemplate at runtime.

    Please share me sample code snippet, how we can add GroupHeaderTemplate to GridViewData/Image column at runtime.

    Thank You,
  6. Aryn
    Aryn avatar
    9 posts
    Member since:
    Jul 2014

    Posted 30 Jul 2014 in reply to Dimitrina Link to this post

    Hello, has the code to get an image to display as a filter value in the filter window changed? I have tried getting the example solution working and the filter window is just displaying System.Windows.Controls.Image. Any help would be appreciated.

    Thanks,
    Aryn
  7. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 31 Jul 2014 Link to this post

    Hello Aryn,

    Indeed, we had this problem. The issue is resolved with 2014 Q2 SP released yesterday.

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  8. Kalli Kaldi
    Kalli Kaldi avatar
    30 posts
    Member since:
    Oct 2011

    Posted 13 Aug 2014 Link to this post

    Hi.

    I was having the same problem.  So, I updated to the latest version of Telerk (2014.2.729.1050) but it's still the same, the filter window is just displaying "System.Windows.Controls.StackPanel".  I've tried evrything so any help would be great.

    Thanks,
    Kalli
  9. Kalli Kaldi
    Kalli Kaldi avatar
    30 posts
    Member since:
    Oct 2011

    Posted 13 Aug 2014 in reply to Kalli Kaldi Link to this post

    One thing I forgot to mention.  The sample solution is working fine, but it's my own solution that it not working properly.

    Thanks,
    Kalli
  10. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 13 Aug 2014 Link to this post

    Hello,

    I am not able to reproduce the issue locally. What the difference between the sample solution and your own solution is?
    Would it be possible for you to isolate the issue in a demo project and send it to me? You can open a support ticket and attach it there. 

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top