Hello experts,
i'm trying to bind IsReadOnly property on xamgrid to a boolean property on my datacontext(ViemModel).
and for some odd reason it wont bind.
i want to block and unblock the columns the editing dynamically
here is a snipet of my ViewModel
private
bool m_isReadOnly = true;
{
get { return m_isReadOnly; }
set{m_isReadOnly = value;
RaisePropertyChanged("IsReadOnly");
}
and in the xaml i do the next binding
<
ig:TextColumn HeaderText="Pressure [m]" Key="Pressure"
IsSummable="False"
IsFixable="False"
IsReadOnly="{Binding Path=IsReadOnly}">
the column can see the properties of my VM but isreadonly wont work when i change the property true/false while running.
any ideas?
Hello Vamshi,
I can say that this behavior is expected and you have to clear the cache. You can do it by code, too. Here is discussed how to do so:
http://stackoverflow.com/questions/12423088/programmatically-clear-silverlight-application-storage
Hi Ekaterina,
I have solved the visibility problem.There was some binding problem my side. But the point is like everytime before i launch my application, i need to clear the cache files. Otherwise it is not working properly. I think as we are storing the grid properties in IsolatedStorageFile, whenever i launch the application without clearing the cache, it is taking the last visibility stage.Is there any other solution ,other than clearing the cache.
Can you please help me in resolving the problem.
I have same problem like hiding the xamgrid columns based on the search criteria. I am not able to open the project which you have shared. I am using VS2010.
I am following the same approach using the proxied object, but the visibility property is not working.
Could you please help me in resolving the problem and share your sample project.
Thanks
G VamshiKrishna
Great thanks for the help!
Hello,
I have been looking into your issue and I have created a sample project that demonstrates the complete implementation of this approach. Notice that the Proxy class is working as expected and the property is being applied successfully.
Please let me know if you have future concerns regarding the discussed matter.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc .
www.infragistics.com/support