"InitialLocation" Propery of "OpenItemDialog" Class

229
4
10-01-2018 07:42 AM
Highlighted
New Contributor

I have a very simple Add Data button in my add-in that's supposed to open a dialog at the InitialLocation property (OpenItemDialog class) set to the directory on our LAN where we keep all our organizations .lyr and .lyrx files.

The dialog had been opening to the set InitialLocation on the LAN without fail until we upgraded to ArcGIS Pro 2.2 or 2.2.1 (I can't remember which).  Now it opens in the last location the user navigated to, no matter where on the network.

Anyone have an idea on what's happening?

Right now Pro and the SDK are at 2.2.2

OpenItemDialog addToMap = new OpenItemDialog
{
    Title = "Add Data",
    InitialLocation = @"C:\",
    MultiSelect = true
};

 

Reply
0 Kudos
4 Replies
Highlighted
Esri Regular Contributor

Hi Brad

I was able to see the same issue.  I have passed this on to the development team to take a look at this issue.

Thanks for reporting this one

Thanks

Uma

Highlighted
Occasional Contributor

Thank you, Uma.

Reply
0 Kudos
Highlighted
New Contributor

Hi Uma,

I am working with ArcGIS pro SDK 2.4 and I have still this issue. Have you found any solution to this issue?

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Hi Davood

This did not get addressed at 2.4.  We are looking into getting this addressed at 2.5. I will post to this thread when I have an update.

Thanks

Uma

Reply
0 Kudos