Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Creating predefined view and "lock" it
posted

Hello,

We would like to have a predefined view of the grid, and to block the user ability to edit that view (disabling the ability of deleting/draging fields, measures, etc).

I saw the example of saving and loading view state. Does there is another serializable way of doing that (we want to load the states from the server)? and is it possible to block the ability of the user to change the view?


Thanks,

Yaniv

  • 7922
    Suggested Answer
    posted

    Hi

    You can use use code like below to set initial pivot stuff

     DataSource = new FlatDataSource(provider)
     {
          Cube = DataSourceBase.GenerateInitialCube("ItemBuy"),
          Rows = DataSourceBase.GenerateInitialItems("[ClassDescription]"),
          Columns = DataSourceBase.GenerateInitialItems("[StoreName]"),
          Measures = DataSourceBase.GenerateInitialItems("NumberOfUnits, LYUnits, PlanUnits")
     };

    To prevent user from drag/drop and delete you should edit control template for that area.

    Regards
    Todor