ItemsSource Dynamic Binding

Hi,
When the sfListview_Colors button is clicked, I want sfDataGrid_Colors itemssource to go to the relevant index.
Likewise, update image_Colors.

json and xaml files are attached.

Thank you for helping.

Attachment: Arşiv_e9bfcf9a.zip

5 Replies 1 reply marked as answer

KK Karthikraja Kalaimani Syncfusion Team August 24, 2020 02:47 PM UTC

Hi Tayyip,

Currently we are validating your requirement. We will validate and update you further details on or before 26th August 2020. We appreciate your patience until then.

Regards,
Karthik Raja



KK Karthikraja Kalaimani Syncfusion Team August 26, 2020 02:17 PM UTC

Hi Tayyip,

Still, we need some more time to achieve your requirement. So, we will update further details on or before 28th August 2020. We appreciate your patience until then.

Regards,
Karthik Raja
 



KK Karthikraja Kalaimani Syncfusion Team August 31, 2020 12:53 PM UTC

Hi Tayyip,

Sorry for the miss-communication.

We have analyzed your code snippet and you have implemented SfDataGrid in Template. So, it is not possible to access the SfDataGrid object in code behind.

Your requirement is to update the SfDataGrid row to the respected index and this can be done if you are implemented the SfDataGrid in Code behind. By using the ScrollToRowColumn method we can scroll to the respected row. For more details please refer to the below UG link.

UG link :  https://help.syncfusion.com/xamarin/datagrid/scrolling#programmatic-scrolling



Regards,
Karthik Raja
 



TE Tayyip Emre ÖRNEK replied to Karthikraja Kalaimani August 31, 2020 09:34 PM UTC

Hi Tayyip,

Sorry for the miss-communication.

We have analyzed your code snippet and you have implemented SfDataGrid in Template. So, it is not possible to access the SfDataGrid object in code behind.

Your requirement is to update the SfDataGrid row to the respected index and this can be done if you are implemented the SfDataGrid in Code behind. By using the ScrollToRowColumn method we can scroll to the respected row. For more details please refer to the below UG link.

UG link :  https://help.syncfusion.com/xamarin/datagrid/scrolling#programmatic-scrolling



Regards,
Karthik Raja
 


Thank you for interest. Do you have any other solution suggestions. maybe we can change the design a little more


KK Karthikraja Kalaimani Syncfusion Team September 1, 2020 01:25 PM UTC

Hi Tayyip,

Thanks for the update.

Could you please use Xamarin Forms listview instead of SfListView because we can access the view which is in DataTemplate from Code behind. See the stack overflow discussion from the below link.

SO :
https://stackoverflow.com/questions/49373982/access-views-inside-a-datatemplate-at-runtime-in-xamarin-forms

Regards,
Karthik Raja  


Marked as answer
Loader.
Up arrow icon