Control saying its null when selected

4 posts, 0 answers
  1. David
    David avatar
    66 posts
    Member since:
    Nov 2011

    Posted 16 Dec 2018 Link to this post

         I have a control RadMultiColumn Control on my form as you can see here its showing Telerik.WinControls.UI.GridViewDataRowInfo in the text box however when selecting the option it then throws a null statement.

                dpStockSelection.DataSource = _sageManager.ProductFetchAll();            

    public List<Product> ProductFetchAll()
          {
     
              if (!IsConnected)
                  throw new Exception("Not connected to Sage");
     
              List<Product> products = new List<Product>();
              SageDataObject230.IStockRecord sageStockRecord = (SageDataObject230.IStockRecord)_workSpace.CreateObject("StockRecord");
     
              try
              {
                  if (sageStockRecord.MoveFirst())
                  {
                      do
                      {
                          products.Add(CreateProduct(sageStockRecord));
     
                      } while (sageStockRecord.MoveNext());
                  }
              }
              finally
              {
                  sageStockRecord = null;
              }
     
              return products;
          }
  2. David
    David avatar
    66 posts
    Member since:
    Nov 2011

    Posted 16 Dec 2018 in reply to David Link to this post

    https://www.screencast.com/t/kwWbpO3SN
  3. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 17 Dec 2018 Link to this post

    Hello David,

    Thank you for writing.

    We are not aware of a similar issue in the RadMultiColumnComboBox control. Looking at the referred video, it appears that the control is not properly data-bound. Can you please check how the attached test project will run on your end? In case the issue persists please let me know how I can observe the exception. A sample project reproducing it would also help.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  4. David
    David avatar
    66 posts
    Member since:
    Nov 2011

    Posted 17 Dec 2018 in reply to Hristo Link to this post

    That helps
Back to Top