When I enable application styling for the web project, validator text is half hidden behind the webgrid cell. Is there any workaround?
Hello,Unfortunately I can`t reproduse the issue. I use the NetAdvantage 8.3 and work properly.Plsease take a look at the code below:<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="UltraWebGrid1" runat="server" ErrorMessage="ErrorMessage" EnableClientScript=true Display=Static> </asp:RequiredFieldValidator> <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px" Width="325px" DataSourceID="SqlDataSource1"> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:UltraGridColumn BaseColumnName="CustomerID" IsBound="True" Key="CustomerID"> <Header Caption="CustomerID"> </Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="CompanyName" IsBound="True" Key="CompanyName"> <Header Caption="CompanyName"> <RowLayoutColumnInfo OriginX="1" /> </Header> <Validators> <igtbl:ValidatorItem Value="RequiredFieldValidator1" /> </Validators> <Footer> <RowLayoutColumnInfo OriginX="1" /> </Footer> </igtbl:UltraGridColumn>What am I missing?
Well this clearly shows the problem. You're just lucky that there is an empty space below the row your editing. try to clear a cellin the middle where the cell below contain some text.
Hello,
Thanks for the follow-up. This may indeed be an issue with a specific AppStyling theme you are using. If you can modify the z-index of the Validators ErrorMessage style then maybe you can set its z-ndex property - I believe the edit box has big z-index and covers the validator message.
If you are using style presets, this might be a bug in the theme itself. In both cases, if you are unable to resolve the problem, I can suggest contacting our developer support department directly via the following link:
http://ko.infragistics.com/Support/
The thing is that you don't want the validation to show inside the grid at all but where you designed it to be. In my case it does not matter if I put the validator above or below the grid, it still displays in the middle of the grid. Z-order might work but it is not what you want.
Hello Fredrik,
Yes, I see the point. I investigated this a bit and this is a built-in feature of the grid - the validator will automatically be repositioned just next to the cell currently being edited, since the rows can be too much and the validator can be off screen for a particular row. From what I see this cannot be customized (e.g. I do not see a property that controls this behaviour, unfortunately).
The problem you see is most probably because of the Css style exposed for the validator (e.g. margins, paddings, etc).
Hopefully someone else can add to this thread, but from what I see this is the default behaviour and this cannot be customized.