Ultragrid Read Only-- Again! (Was: UltraGrid: read only col

What happens if you remove the statement:

edv.dataView. Table.Columns( "linedescr" ).ExtendedProper ties("Enabled" ) = True

??

(Enabling a column that is read only may be triggering the odd behavior.)

If that doesn't work, what does the trace log say?

(Perhaps one of the app's BO methods is overriding your readonly=True & you might have to fire off your readonly=true code after the method executes - using after BO method as the trigger.)

Just a stab in the dark but that is where I'd start.

Rob Brown




________________________________
From: alldoneprojects <ramsey@...>
To: vantage@yahoogroups.com
Sent: Thursday, August 6, 2009 4:09:42 PM
Subject: [Vantage] Ultragrid Read Only-- Again! (Was: Re: UltraGrid: read only column)


I've added an ultragrid for quotedtl to the quoteform that has linedescr as visible and I'm trying to make it read only. No matter what I do it just makes the whole grid inactive, thus users can't click to select a line

anybody got this to work?

code:
-------
Sub InitializeCustomCod e()

SetExtendedProps( )

End sub

Private Sub SetExtendedProps( )

Dim edv As EpiDataView = CType(oTrans. EpiDataViews( "OrderDtl" ), EpiDataView)

If edv.dataView. Table.Columns. Contains( "linedescr" ) Then
edv.dataView. Table.Columns( "linedescr" ).ExtendedProper ties("ReadOnly" ) = True
edv.dataView. Table.Columns( "linedescr" ).ExtendedProper ties("Enabled" ) = True
End if
End sub
-------

Cheers,

-Ramsey

--- In vantage@yahoogroups .com, "bw2868bond" <bwalker@... > wrote:
>
> In case anyone else is interested:
>
> Module Script
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End
> Wizard Added Module Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> Private WithEvents edvCustomerPriceLst As EpiDataView
> '// End Wizard Added Module Level Variables **
>
>
> '// Add Custom Module Level Variables Here **
>
>
>
> Sub InitializeCustomCod e()
>
>
> '// ** Wizard Insert Location - Do not
> delete 'Begin/End Wizard Added Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> edvCustomerPriceLst = CType(oTrans. EpiDataViews
> ("CustomerPriceLst" ), EpiDataView)
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
>
> edvCustomerPriceLst .dataView. Table.Columns
> ("ShortChar01" ).ExtendedProper ties("ReadOnly" ) = True
> edvCustomerPriceLst .dataView. Table.Columns
> ("ShortChar02" ).ExtendedProper ties("ReadOnly" ) = True
> edvCustomerPriceLst .dataView. Table.Columns
> ("Date01").Extended Properties( "ReadOnly" ) = True
> edvCustomerPriceLst .dataView. Table.Columns
> ("Date02").Extended Properties( "ReadOnly" ) = True
>
> '// End Custom Method Calls
> End Sub
>
>
>
> Sub DestroyCustomCode( )
>
>
> '// ** Wizard Insert Location - Do not
> delete 'Begin/End Wizard Added Object Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
>
> '// End Custom Code Disposal
> End Sub
>
>
>
> End Module
>
> --- In vantage@yahoogroups .com, Fons van der Beek
> <fons.vanderbeek@ > wrote:
> >
> > do you have an example how to make a dataview column readonly?
> > i don't know how to do this....
> >
> > bw2868bond schreef:
> > > You can set the readonly property to true in the ultragrid
> designer,
> > > but when the epidataview is bound to the ultragrid, the readonly
> > > property is reset to the readonly property of the column in the
> > > epidataview.
> > >
> > > You need to set the dataview column to readonly by way of code
> then the
> > > epidatagrid column should stay readonly when it is databound.
> > >
> > > At least that is the way I have been able to make it work for
> me....
> > >
> > > --- In vantage@yahoogroups .com, Fons van der Beek
> <fons.vanderbeek@ >
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> I"ve customized the ultra grid for pricelists in customer
> maintenance.
> > >> I've added some columns, but I want to make them readonly.
> > >> Alltough it's possible to mark columns as readonly,
> this "readonly"
> > >> checkmark is not saved when saving the customization.
> > >>
> > >> Is there a way to manualy make columns read only from a
> ultragrid, is
> > >> there a property of ultragrid that can be set?
> > >> For instance when loading the form containing the ultragrid.
> > >>
> > >>
> > >> Thanks in advance
> > >> Fons van der Beek
> > >>
> > >>
> > >
> > >
> > >
>







[Non-text portions of this message have been removed]
Hi,

I"ve customized the ultra grid for pricelists in customer maintenance.
I've added some columns, but I want to make them readonly.
Alltough it's possible to mark columns as readonly, this "readonly"
checkmark is not saved when saving the customization.

Is there a way to manualy make columns read only from a ultragrid, is
there a property of ultragrid that can be set?
For instance when loading the form containing the ultragrid.


Thanks in advance
Fons van der Beek
> Is there a way to manualy make columns read only from a ultragrid, is
> there a property of ultragrid that can be set?
> For instance when loading the form containing the ultragrid.

Google found this:
http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=30785

this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellClickAction =
Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;

or

this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation =
Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
Unfortunatly this was not the solution, i allready found
that............ The message was "ultraGrid1" is not a property

I also tried EpiUltraGrid and EpiUltraGrid1
It looks like Epicor changed the properties from infragistics

futhermore the assignement i was able to make was only "true" or "false"


but thanks for looking it up.....................



Mark Wonsil schreef:
>> Is there a way to manualy make columns read only from a ultragrid, is
>> there a property of ultragrid that can be set?
>> For instance when loading the form containing the ultragrid.
>>
>
> Google found this:
> http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=30785
>
> this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellClickAction =
> Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;
>
> or
>
> this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation =
> Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
>



[Non-text portions of this message have been removed]
You say you added columns - did you add them through code or only
make existing data not hidden anymore?

--- In vantage@yahoogroups.com, Fons van der Beek
<fons.vanderbeek@...> wrote:
>
> Unfortunatly this was not the solution, i allready found
> that............ The message was "ultraGrid1" is not a property
>
> I also tried EpiUltraGrid and EpiUltraGrid1
> It looks like Epicor changed the properties from infragistics
>
> futhermore the assignement i was able to make was only "true"
or "false"
>
>
> but thanks for looking it up.....................
>
>
>
> Mark Wonsil schreef:
> >> Is there a way to manualy make columns read only from a
ultragrid, is
> >> there a property of ultragrid that can be set?
> >> For instance when loading the form containing the ultragrid.
> >>
> >
> > Google found this:
> > http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=30785
> >
> > this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellClickAction
=
> > Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;
> >
> > or
> >
> > this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation =
> > Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
> >
> >
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You
must have already linked your email address to a yahoo id to enable
access. )
> > (1) To access the Files Section of our Yahoo!Group for Report
Builder and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
> >
> >
> >
>
>
>
> [Non-text portions of this message have been removed]
>
by only maken existing data not hidden
( I just enabled the fields with a different caption)



bw2868bond schreef:
> You say you added columns - did you add them through code or only
> make existing data not hidden anymore?
>
> --- In vantage@yahoogroups.com, Fons van der Beek
> <fons.vanderbeek@...> wrote:
>
>> Unfortunatly this was not the solution, i allready found
>> that............ The message was "ultraGrid1" is not a property
>>
>> I also tried EpiUltraGrid and EpiUltraGrid1
>> It looks like Epicor changed the properties from infragistics
>>
>> futhermore the assignement i was able to make was only "true"
>>
> or "false"
>
>> but thanks for looking it up.....................
>>
>>
>>
>> Mark Wonsil schreef:
>>
>>>> Is there a way to manualy make columns read only from a
>>>>
> ultragrid, is
>
>>>> there a property of ultragrid that can be set?
>>>> For instance when loading the form containing the ultragrid.
>>>>
>>>>
>>> Google found this:
>>> http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=30785
>>>
>>> this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellClickAction
>>>
> =
>
>>> Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;
>>>
>>> or
>>>
>>> this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation =
>>> Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
>>>
>>>
>>>
>>> ------------------------------------
>>>
>>> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You
>>>
> must have already linked your email address to a yahoo id to enable
> access. )
>
>>> (1) To access the Files Section of our Yahoo!Group for Report
>>>
> Builder and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
>
>>> (2) To search through old msg's goto:
>>>
> http://groups.yahoo.com/group/vantage/messages
>
>>> (3) To view links to Vendors that provide Vantage services goto:
>>>
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>>>
>>>
>>>
>>
>> [Non-text portions of this message have been removed]
>>
>>
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
>



[Non-text portions of this message have been removed]
You can set the readonly property to true in the ultragrid designer,
but when the epidataview is bound to the ultragrid, the readonly
property is reset to the readonly property of the column in the
epidataview.

You need to set the dataview column to readonly by way of code then the
epidatagrid column should stay readonly when it is databound.

At least that is the way I have been able to make it work for me....

--- In vantage@yahoogroups.com, Fons van der Beek <fons.vanderbeek@...>
wrote:
>
> Hi,
>
> I"ve customized the ultra grid for pricelists in customer maintenance.
> I've added some columns, but I want to make them readonly.
> Alltough it's possible to mark columns as readonly, this "readonly"
> checkmark is not saved when saving the customization.
>
> Is there a way to manualy make columns read only from a ultragrid, is
> there a property of ultragrid that can be set?
> For instance when loading the form containing the ultragrid.
>
>
> Thanks in advance
> Fons van der Beek
>
do you have an example how to make a dataview column readonly?
i don't know how to do this....

bw2868bond schreef:
> You can set the readonly property to true in the ultragrid designer,
> but when the epidataview is bound to the ultragrid, the readonly
> property is reset to the readonly property of the column in the
> epidataview.
>
> You need to set the dataview column to readonly by way of code then the
> epidatagrid column should stay readonly when it is databound.
>
> At least that is the way I have been able to make it work for me....
>
> --- In vantage@yahoogroups.com, Fons van der Beek <fons.vanderbeek@...>
> wrote:
>
>> Hi,
>>
>> I"ve customized the ultra grid for pricelists in customer maintenance.
>> I've added some columns, but I want to make them readonly.
>> Alltough it's possible to mark columns as readonly, this "readonly"
>> checkmark is not saved when saving the customization.
>>
>> Is there a way to manualy make columns read only from a ultragrid, is
>> there a property of ultragrid that can be set?
>> For instance when loading the form containing the ultragrid.
>>
>>
>> Thanks in advance
>> Fons van der Beek
>>
>>
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
>



[Non-text portions of this message have been removed]
In case anyone else is interested:

Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End
Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

Private WithEvents edvCustomerPriceLst As EpiDataView
'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **



Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not
delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

edvCustomerPriceLst = CType(oTrans.EpiDataViews
("CustomerPriceLst"), EpiDataView)
'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls

edvCustomerPriceLst.dataView.Table.Columns
("ShortChar01").ExtendedProperties("ReadOnly") = True
edvCustomerPriceLst.dataView.Table.Columns
("ShortChar02").ExtendedProperties("ReadOnly") = True
edvCustomerPriceLst.dataView.Table.Columns
("Date01").ExtendedProperties("ReadOnly") = True
edvCustomerPriceLst.dataView.Table.Columns
("Date02").ExtendedProperties("ReadOnly") = True

'// End Custom Method Calls
End Sub



Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not
delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal
End Sub



End Module

--- In vantage@yahoogroups.com, Fons van der Beek
<fons.vanderbeek@...> wrote:
>
> do you have an example how to make a dataview column readonly?
> i don't know how to do this....
>
> bw2868bond schreef:
> > You can set the readonly property to true in the ultragrid
designer,
> > but when the epidataview is bound to the ultragrid, the readonly
> > property is reset to the readonly property of the column in the
> > epidataview.
> >
> > You need to set the dataview column to readonly by way of code
then the
> > epidatagrid column should stay readonly when it is databound.
> >
> > At least that is the way I have been able to make it work for
me....
> >
> > --- In vantage@yahoogroups.com, Fons van der Beek
<fons.vanderbeek@>
> > wrote:
> >
> >> Hi,
> >>
> >> I"ve customized the ultra grid for pricelists in customer
maintenance.
> >> I've added some columns, but I want to make them readonly.
> >> Alltough it's possible to mark columns as readonly,
this "readonly"
> >> checkmark is not saved when saving the customization.
> >>
> >> Is there a way to manualy make columns read only from a
ultragrid, is
> >> there a property of ultragrid that can be set?
> >> For instance when loading the form containing the ultragrid.
> >>
> >>
> >> Thanks in advance
> >> Fons van der Beek
> >>
> >>
> >
> >
> >
I've added an ultragrid for quotedtl to the quoteform that has linedescr as visible and I'm trying to make it read only. No matter what I do it just makes the whole grid inactive, thus users can't click to select a line

anybody got this to work?

code:
-------
Sub InitializeCustomCode()

SetExtendedProps()

End sub

Private Sub SetExtendedProps()

Dim edv As EpiDataView = CType(oTrans.EpiDataViews("OrderDtl"), EpiDataView)

If edv.dataView.Table.Columns.Contains("linedescr") Then
edv.dataView.Table.Columns("linedescr").ExtendedProperties("ReadOnly") = True
edv.dataView.Table.Columns("linedescr").ExtendedProperties("Enabled") = True
End if
End sub
-------

Cheers,

-Ramsey

--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> In case anyone else is interested:
>
> Module Script
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End
> Wizard Added Module Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> Private WithEvents edvCustomerPriceLst As EpiDataView
> '// End Wizard Added Module Level Variables **
>
>
> '// Add Custom Module Level Variables Here **
>
>
>
> Sub InitializeCustomCode()
>
>
> '// ** Wizard Insert Location - Do not
> delete 'Begin/End Wizard Added Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> edvCustomerPriceLst = CType(oTrans.EpiDataViews
> ("CustomerPriceLst"), EpiDataView)
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
>
> edvCustomerPriceLst.dataView.Table.Columns
> ("ShortChar01").ExtendedProperties("ReadOnly") = True
> edvCustomerPriceLst.dataView.Table.Columns
> ("ShortChar02").ExtendedProperties("ReadOnly") = True
> edvCustomerPriceLst.dataView.Table.Columns
> ("Date01").ExtendedProperties("ReadOnly") = True
> edvCustomerPriceLst.dataView.Table.Columns
> ("Date02").ExtendedProperties("ReadOnly") = True
>
> '// End Custom Method Calls
> End Sub
>
>
>
> Sub DestroyCustomCode()
>
>
> '// ** Wizard Insert Location - Do not
> delete 'Begin/End Wizard Added Object Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
>
> '// End Custom Code Disposal
> End Sub
>
>
>
> End Module
>
> --- In vantage@yahoogroups.com, Fons van der Beek
> <fons.vanderbeek@> wrote:
> >
> > do you have an example how to make a dataview column readonly?
> > i don't know how to do this....
> >
> > bw2868bond schreef:
> > > You can set the readonly property to true in the ultragrid
> designer,
> > > but when the epidataview is bound to the ultragrid, the readonly
> > > property is reset to the readonly property of the column in the
> > > epidataview.
> > >
> > > You need to set the dataview column to readonly by way of code
> then the
> > > epidatagrid column should stay readonly when it is databound.
> > >
> > > At least that is the way I have been able to make it work for
> me....
> > >
> > > --- In vantage@yahoogroups.com, Fons van der Beek
> <fons.vanderbeek@>
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> I"ve customized the ultra grid for pricelists in customer
> maintenance.
> > >> I've added some columns, but I want to make them readonly.
> > >> Alltough it's possible to mark columns as readonly,
> this "readonly"
> > >> checkmark is not saved when saving the customization.
> > >>
> > >> Is there a way to manualy make columns read only from a
> ultragrid, is
> > >> there a property of ultragrid that can be set?
> > >> For instance when loading the form containing the ultragrid.
> > >>
> > >>
> > >> Thanks in advance
> > >> Fons van der Beek
> > >>
> > >>
> > >
> > >
> > >
>