How to hide the ID in listview

10 posts, 0 answers
  1. Edwin
    Edwin avatar
    6 posts
    Member since:
    Jun 2014

    Posted 16 Jun 2014 Link to this post

    Hi,

    If I use the listviewdesigner and choose a view from a list where the ID is not selected in the view, listviewdesigner creates a table with the ID vissible in it.
    I don't want to see the ID.
    How do I change this behaviour?

    Regards,
    Edwin
  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1795 posts

    Posted 18 Jun 2014 Link to this post

    Hello Edwin,

    I am not quite sure if I understand correctly what you are referring to. Could you please provide a screenshot or a short video, so we could get a better idea of the issue in question.

    On a side note, please have in mind that the designer's behavior could not be changed, but if there is a problem with it, we could log the issue in our system and our developers could investigate it. If it proves to be a bug, they will provide a fix for it in one of our future releases. 


    Regards,
    Konstantin Dikov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Edwin
    Edwin avatar
    6 posts
    Member since:
    Jun 2014

    Posted 19 Jun 2014 in reply to Konstantin Dikov Link to this post

    If you create a list in SharePoint, SharePoint automaticly gives every record an ID.
    This ID is also shown in the Telerik SPRadListView Web Part, even if you choose  a view as source for the ListView Web Part where you do not show the ID.
    I would like to have the possibility to not show the ID in the ListView Web Part. But if this behaviour is by design, I understand you can't change it.

    Attached is a picture with an example of what I'm trying to explain.

    Regards,
    Edwin
  5. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1795 posts

    Posted 23 Jun 2014 Link to this post

    Hello Edwin,

    Thank you for the screenshot and the additional information. Know I have a better idea of the issue that you are experiencing, but this should not be expected if your view is correctly configured to not display the ID field.

    Since this is not expected, what I could suggest is that you ensure that your list does not have the ID field selected. Additionally, you could bind the list to RadGrid and see if the ID filed will be visible. RadGrid displays only the selected fields, so if the ID is present in RadGrid as well, the problem should be in the configurations.


    Regards,
    Konstantin Dikov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Edwin
    Edwin avatar
    6 posts
    Member since:
    Jun 2014

    Posted 25 Jun 2014 in reply to Konstantin Dikov Link to this post

    Hello Konstantin,

    I checked with the RadGrid and then you don't see the ID.
    In ListView I do see the ID.
    The source for both webparts is the same view.

    I've attached a screendump with both webparts vissible, so you can see them.

    Regards,
    Edwin
  7. Marin
    Admin
    Marin avatar
    1044 posts

    Posted 25 Jun 2014 Link to this post

    Hi,

    Does your SPList has any specific settings, different than the default once and do you bind the web parts to the default view or a custom view?
    I tested the described scenario with a newly created SPList and when the ID field is not selected in the view it does not show in the web parts either.
    Here is a short video of the test with RadListView and RadGrid web parts both showing identical results.
    Let me know if there are any differences in your test case that can cause the problem to be replicated. 

    Kind Regards,
    Marin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Edwin
    Edwin avatar
    6 posts
    Member since:
    Jun 2014

    Posted 27 Jun 2014 in reply to Marin Link to this post

    Hi,

    I also created a short video. I just created a list and then the RadGrid and RadListView. Still the Id in the RadListView and not in the RadGrid .
    Can you see if I'm doing something wrong??

    The video: http://screencast.com/t/AnDgte2PtusZ

    Regards,
    Edwin
  9. Edwin
    Edwin avatar
    6 posts
    Member since:
    Jun 2014

    Posted 27 Jun 2014 in reply to Edwin Link to this post

    And attached a picture of the view, so you can see that the ID is not checked.

    Regards,
    Edwin
  10. Edwin
    Edwin avatar
    6 posts
    Member since:
    Jun 2014

    Posted 01 Jul 2014 Link to this post

    Hi,

    I will be on holiday till monday 28 july.
    So I won't be able to reply on any comment you will add to this post.

    Regards,
    Edwin
  11. Marin
    Admin
    Marin avatar
    1044 posts

    Posted 02 Jul 2014 Link to this post

    Hi,

    I replicated the described issue. It seems to be a problem with the designer of the ListView web part. I have forwarded it to our development team for further investigation. Meanwhile you can use the "Edit Web part" option from the web part menu to configure the databinding. It should not show the ID in this case.

    Regards,
    Marin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017