ShapeSelectionChanged method ShapeSelectedEventArgs "Data" properties is always null

Hi to everyone,

I try to use SFMaps such as the Ticket Booking sample (View Demo Here)
I have a problem with a ShapeSelectionChanged. The event is correct binding but e.Data is always null, so for me not working.

I have did something wrong?
Attach here 2 file of code and code behind.

Thanks for support in advance 
Patrizio

Attachment: BookingSeats_2aee6578.zip

3 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team April 22, 2021 03:22 PM UTC

Hi Patrizio Franci,

Greetings from Syncfusion.

We have checked the reported problem and prepared a sample with a shared code snippet. ShapeSelectionChanged event e.Data return the data properly when we select the item. Can you please have a sample from the below link?


https://www.syncfusion.com/downloads/support/directtrac/general/ze/Map_Sample-382528355

Can you please check the sample and confirm whether have you mapped properly SfMaps -> ShapeFileLayer -> ShapeIDPath and ShapeIDTableField in your application?

Regards,
Sridevi S.
 
 


Marked as answer

PF Patrizio Franci replied to Sridevi Sivakumar May 10, 2021 02:50 PM UTC

Hi Patrizio Franci,

Greetings from Syncfusion.

We have checked the reported problem and prepared a sample with a shared code snippet. ShapeSelectionChanged event e.Data return the data properly when we select the item. Can you please have a sample from the below link?


https://www.syncfusion.com/downloads/support/directtrac/general/ze/Map_Sample-382528355

Can you please check the sample and confirm whether have you mapped properly SfMaps -> ShapeFileLayer -> ShapeIDPath and ShapeIDTableField in your application?

Regards,
Sridevi S.
 
 


Hi Sridevi Sivakumar,

Sorry if I reply late but i was very busy. I confirm you that code you shared with me work if i run your solution. but unfortunately, if i try to integrate your code into my solution, the ShapeSelectionChanged -> e.data property is still null​.

I attached at this message a wetransfer link that contains all my solution files. I must use WeTransfer because the size of project is more then 30 mb (80 MB).

Download my project file

Where am I doing wrong?

Kind Regards

Patrizio Franci



SS Sridevi Sivakumar Syncfusion Team May 11, 2021 09:01 AM UTC

Hi Patrizio Franci,

We have analysed your shared sample and we found the .dbf(Database) file missing in your sample. So that the argument e.data returns null value. We have added missing file in below screenshot location. Now it works fine with that argument. 


We have modified your sample, please have it from the below link
https://www.syncfusion.com/downloads/support/directtrac/general/ze/ModifiedSample1456946113

Let us know if you need any further assistance.

Regards,
Sridevi S.
 


Loader.
Up arrow icon