Ciao,
Please tell me if is possible to solve this problem that I have: the column visible after some made hidden, can't be activated on mase click.
If I press Tab, them became active and editable, but on mouse click, not. After I activate them with tab, these cells can be activated also with mouse click.
What is the problem. For me seams a bug.
Thanks in advance for a quick answer.
Thanks,
Lidia
Hi Lidia,
I was not able to reproduce this with a sample that I have in 10.2. Could you perhaps attach a sample and some detailed instructions? Also, what version and build number are you using. Thanks.
regards,David Young
Thank you David,
Here I'll try to reproduce the application. Please tell me what you think that should be changed to work:
Here is the grid:
<fieldset style="vertical-align:top;width:auto; padding: 0.7em 0.7em 0.7em 0.7em; width: 30em; position: relative"> <legend style="font-weight: bold">Produzione</legend> <ig:WebDataGrid ID="WdgCons" runat="server" AutoGenerateColumns="False" DataKeyFields="Index" AutoCRUD="true" Font-Size="9pt" BorderWidth="1px" DataSourceID="odsCons" Visible="False"> <Columns> <ig:BoundDataField DataFieldName="Pz" Key="Pz" Width="47px"><Header Text="Pz"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Mt" Key="Mt" Width="47px"><Header Text="Mt"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Kg" Key="Kg" Width="47px"><Header Text="Kg"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="LottoEst" Key="LottoEst" Width="47px"><Header Text="LottoEst"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car1" Key="Car1" Width="47px"><Header Text="Car1"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car2" Key="Car2" Width="47px"><Header Text="Car2"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car3" Key="Car3" Width="47px"><Header Text="Car3"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car4" Key="Car4" Width="47px"><Header Text="Car4"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car5" Key="Car5" Width="47px"><Header Text="Car5"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car6" Key="Car6" Width="47px"><Header Text="Car6"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car7" Key="Car7" Width="47px"><Header Text="Car7"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car8" Key="Car8" Width="47px"><Header Text="Car8"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car9" Key="Car9" Width="47px"><Header Text="Car9"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car10" Key="Car10" Width="47px"><Header Text="Car10"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car11" Key="Car11" Width="47px"><Header Text="Car11"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Car12" Key="Car12" Width="47px"><Header Text="Car12"/></ig:BoundDataField> <ig:BoundDataField DataFieldName="Index" Key="Index" Width="30px" Hidden="True"><Header Text="Index"/></ig:BoundDataField> </Columns> <Behaviors> <ig:Activation /> <ig:Selection RowSelectType="Multiple" CellClickAction="Row" /> <ig:EditingCore> <Behaviors> <ig:CellEditing> <EditModeActions EnableOnActive="True" MouseClick="Single" /> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="Index" ReadOnly="True" /> </ColumnSettings> </ig:CellEditing> </Behaviors> </ig:EditingCore> <ig:Paging PageSize="5" /> </Behaviors> <EditorProviders> <ig:WebTextEditProvider ID="WebTextEditProvider1" /> <ig:NumericEditorProvider ID="NumericEditorProvider1" /> <ig:TextBoxProvider ID="TextBoxProvider1" /> <ig:TextEditorProvider ID="TextEditorProvider1" /> </EditorProviders> </ig:WebDataGrid> <asp:ObjectDataSource ID="odsCons" runat="server" TypeName="CeseDataSource" UpdateMethod="UpdateRecordCons" SelectMethod="GetRecords"> <UpdateParameters> <asp:Parameter Name="typeOp" Type="Int32" DefaultValue="2"/> <asp:Parameter Name="index" Type="String" /> <asp:Parameter Name="pz" Type="String" /> <asp:Parameter Name="mt" Type="String" /> <asp:Parameter Name="kg" Type="String" /> <asp:Parameter Name="lottoEst" Type="String" /> <asp:Parameter Name="car1" Type="String" /> <asp:Parameter Name="car2" Type="String" /> <asp:Parameter Name="car3" Type="String" /> <asp:Parameter Name="car4" Type="String" /> <asp:Parameter Name="car5" Type="String" /> <asp:Parameter Name="car6" Type="String" /> <asp:Parameter Name="car7" Type="String" /> <asp:Parameter Name="car8" Type="String" /> <asp:Parameter Name="car9" Type="String" /> <asp:Parameter Name="car10" Type="String" /> <asp:Parameter Name="car11" Type="String" /> <asp:Parameter Name="car12" Type="String" /> </UpdateParameters> <SelectParameters> <asp:Parameter Name="typeOp" Type="Int32" DefaultValue="2" /> </SelectParameters> </asp:ObjectDataSource> </fieldset>
I use also also the event DataBinding for updates:
Protected Sub WdgCons_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles WdgCons.DataBinding Dim CharsB As Object, columnsWdg As Object CharsB = Session("CharsB") columnsWdg = Session("ColumnsWdg")
Dim indexViz As Integer = 0 If Not CharsB Is Nothing Then If CharsB.ToString <> "" Then For i As Integer = 1 To 12 'LottoEst indexViz += 1 'Set the column hidden - from sql settings If columnsWdg.CharEnabledVisible("Visible", "Cons", CharsB(i - 1).Key) = False Then WdgCons.Columns(i + 3).Hidden = True indexViz -= 1 Else 'WdgCons.Columns(i + 3).Hidden = False 'WdgCons.Columns(i + 3).VisibleIndex = indexViz + 3 'Set the column readonly - from settings pril & sql settings If CharsB(i - 1).Carat = "2" OrElse columnsWdg.CharEnabledVisible("Enabled", "Cons", CharsB(i - 1).Key) = False Then AddReadOnlyColumn(TypeOpEnum.t2_Cons, WdgCons.Columns(i + 3).Header.Text) WdgCons.Columns(i + 3).CssClass = "igReadOnly" End If End If
'Change the header text WdgCons.Columns(i + 3).Header.Text = CharsB(i - 1).Descr 'Hide the columns for characteristics without value If CharsB(i - 1).Descr = "" Then WdgCons.Columns(i + 3).Hidden = True Next End If End If
End Sub
The settings for columns (starting from lotto est): visible and enabled are taken from database. If I use, the property VisibleIndex, seams ok - the cells are activated and became editable at click. But, if I have before some enabled column, one disabled and visible , at click, the cell don't became editable - the focus isn't made correct. For this reason, I put the Index column at the end - was the same problem.
Today, I downloaded the NetAdvantage_ASPNET_20102.2018_SR.msp, but I can't install any more the controls (i have changed the computer). Anytime when we download the executable from site, the instalation don't start. Here is the archive that we have:
It's ok the setup?
There are a lot of things. Do you understand the behavior? Please let me know if you need more information. This behavior wasn't so expected and I hoped to finish these days...
Best regards,
Lidia.
The problem is solved.
For instaling the components, is necessary to have installed also Framework 3.5.
To hide a column, is necessary to use also VisibleIndex property for a column.
Buon weekend.
Please tell me that you have searched something for this issue.
Is difficult to reproduce the behavior?
Thanks