Select to view content in your preferred language

TemplatePicker refresh method

442
2
08-17-2010 12:45 PM
JamesMolohon
Emerging Contributor
In my user interface, I am allowing the user to choose a different service for editing.  The services use the same SDE, but may have different drawing info/symbology.  My problem is when I build new feature layers in the code behind the template picker shows the original symbols that were available for the service that was initially loaded.  How can I reset the template picker and show symbology for the new service?

Regards,
James
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
You will need to update the TemplatePicker's LayerIDs property which takes a string[] of layer IDs.
0 Kudos
JamesMolohon
Emerging Contributor
Thank you for the response. I found the answer to my problem while pursuing your suggestion.  I had tried setting the layers property to nothing, and then re-assigning the layer id.  However, I had used the same layer id for the new feature service.  By making the layer id unique I am able to set the template pickers layers property and now see the correct symbols for this layer.

James
0 Kudos