Binding Problem using Pivot

17 posts, 0 answers
  1. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 04 Jan 2013 Link to this post

    Hi,
    its possible to do binding in radgridview using index property. I need to do the same in the pivot grid but it does not seem to be working. Any suggestion? It only seem to be working if hardcoding property name in propertyGroupDescription like 'Name' but not working with '[12]' has index property.
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 07 Jan 2013 Link to this post

    Hi Charles,

    This feature is not available with the current release of RadPivotGrid, but we have implemented a custom solution for your case. To do it we have implemented a CustomPropertyGroupDescription which inherits PropertyGroupDescriptionBase and we have overriden GroupNameFromItem method.

    Please check the attachment and inform us if you have any problems or suggestions regarding RadPivotGrid.

    Regards,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 07 Jan 2013 Link to this post

    This is working if i add CustomePropertyDescription and CustomPropertyAggregate, But how do I had the RadPivotFieldList like you did for customProperty (see picture)? The property that u see right now in the upper part are not related to the index properties. the one selected at the bottom are ok.

    And In the project u send me i cannot drag and drop the index property. I dont need static property.

    Pier-Luc
  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 08 Jan 2013 Link to this post

    Hi Charles,

    To achieve this you have to implement some other custom features - CustomFieldDescriptionProvider, CustomPropertyGroupDescription and CustomFieldInfo. To illustrate how to do it, we've modified our solution and now everything should be working fine with both RadPivotGrid and RadPivotFieldList.

    Please check the attachment and feel free to contact us if you still have any problems or concerns.

    Kind regards,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 08 Jan 2013 Link to this post

    Hi, I modified your solution to show u my problem (see images). If i use your CustomFieldInfo class everthing is working. But It i try to implement my own TestCustomField (no hardcoding) and set some field, its not working. Drag and drop is not working and Values are duplicated when check mutiple time.
    I think its the last step to make it works. Can u send me back the updated solution with no values hard coded for CustomFieldInfo like i did for testCustomFieldInfo.

     



  7. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 09 Jan 2013 Link to this post

    Hello Charles,

    I've modified the solution and now you should be able to drag and drop and use it as you've described. The main problem was in the CustomPropertyGroupDescription's method - GetMemberName - the returned value should be unique.

    Please check attached project and inform me if it doesn't suite your needs.

    Kind regards,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 09 Jan 2013 Link to this post

    Its working now, thanks.
  9. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 26 Mar 2013 Link to this post

    Is it possible to modify the latest solution that was working for beta pivot control to make it works with the full release of PivotGrid... It was working just fine, now in our software it doesnt work anymore and we need a fix as soon as possible. When u drag pivot field to column or row nothing is showing.

    See latest solution u sent me.

    Thanks.
  10. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 29 Mar 2013 Link to this post

    Hello Charles,

    With our official release we have applied several optimizations and new features. The problem with the mentioned project is that you are adding a GroupDescription for a property which does not exist (the PropertyName is set to [0] for example, but in fact such property doesn't exist). But there is solution for your problem - RadPivotGrid supports ICustomTypeProvider, so you can add properties dynamically. This way you can add the property [0] at runtime and use it. When it is not needed anymore, you can remove it. RadPivotGrid will have no problem to handle such operations. I'm sending you the modified version of the project. Please note that there's no need to use custom FieldDescriptionProvider anymore.

    Could you check the attachment and inform us if you have any problems or concerns.

    Greetings,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  11. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 29 Mar 2013 Link to this post

    Hi Charles,

    I've just missed to mention, that in the moment we are checking several different ways to make the old solution work. Most probably by the end of the next week we'll have a solution how to achieve this. So if you could wait until then, we'll try to achieve a solution, with which there will be no need to change so much code (as in the last example I've sent you).

    Hopefully this makes sense. Feel free to contact us if you have any suggestions or concerns.

    Greetings,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  12. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 15 Apr 2013 Link to this post

    Any news on a working solution?
  13. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 18 Apr 2013 Link to this post

    Hi,

    We still haven't introduced the changes that we have mentioned because we are working on a functionality that is related to the problem that you are having and we need some more time.

    Have you tried the other suggestion or you prefer to stick to the original approach?

    Kind regards,
    Milan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  14. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 01 May 2013 Link to this post

    Hi, i prefer to stick to the original approach. Right now i had to remove all pivot grid functionality from our software as the transition from the beta to the release of the pivot control broke my custom solution for this specific problem. If you could provide me a custom solution it would be appreciated.

    Thanks.
  15. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 06 May 2013 Link to this post

    Hi,

    We will do our best to provide a solution with next week's internal build. I will keep you updated.

    Greetings,
    Milan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  16. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 13 May 2013 Link to this post

    Hi,

    I think I have managed to rework the original solution to work with our latest changes. Now it even uses less code. Could you please check if the attached solution works as expected. The difference with the previous approach is that you no longer have to use a custom GroupDescription. The property retrieval logic is now contained in the CustomFieldInfo. Please use our latest internal build from last week.

    Kind regards,
    Milan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  17. Charles Benoualid
    Charles  Benoualid avatar
    26 posts
    Member since:
    Sep 2009

    Posted 30 May 2013 Link to this post

    Its working, thanks. I hope this solution will allow export to excel without problem  : )
  18. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 31 May 2013 Link to this post

    Hi Charles,

    There shouldn't be any problems with the export. You can check our online demo for the full example and our help article which describes how to export RadPivotGrid.

    Feel free to contact us if you have any problems or concerns.

    Regards,
    Rosen Vladimirov
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner