This is a migrated thread and some comments may be shown as answers.

Control saying its null when selected

3 Answers 87 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 16 Dec 2018, 06:15 PM

     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;
      }

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 16 Dec 2018, 06:16 PM
https://www.screencast.com/t/kwWbpO3SN
0
Hristo
Telerik team
answered on 17 Dec 2018, 01:53 PM
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.
0
David
Top achievements
Rank 1
answered on 17 Dec 2018, 02:21 PM
That helps
Tags
MultiColumn ComboBox
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or