Hi,
Iam using Infragistics 13.1.
GridRecordItem must be used instead of UltraGridCell in 13.1.
Please let me know how to set Style for GridRecordItem.
Earlier code - UltraGridCell cellReadOnly = e.Row.Cells.FromKey(sReadOnly);
cellReadOnly.Style.HorizontalAlign = HorizontalAlign.Center;
Expecting your response asap. Its urgent.
Thanks in advance.
Hello Jeevitha,
You can use the following:
WebDataGrid1.Rows[5].Items[1].CssClass = "rowClass";
This will apply the class to the cell defined by the row with index of 5 and column with index of 1. Of course you can loop through all the cells on a given row or column and apply the class.
I hope this helps.
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
The checkboxes of the UnbounndCheckBoxField of the grid are not input elements but images. You can use the CheckedImageUrl and UncheckedImageUrl attributes to use your own images:
<ig:UnboundCheckBoxField HeaderChecked="False" Key="CheckBoxColumn"> <CheckBox CheckedImageUrl="~/ig_checkbox_on.gif" UncheckedImageUrl="~/ig_checkbox_off.gif" /> <Header Text="CheckBoxColumn"> </Header></ig:UnboundCheckBoxField>
I am attaching images that show the box checked with a tick sign. I hope this helps.
It worked! Thanks for the quick response..
You're welcome.
Please let me know if you need further assistance on this issue.
Hi Hristo,
I have a read-only functionality where in - i use a 'BoundCheckBoxField' to create this(read-only) column in Webdatagrid.
void Webdatagrid1_Init(object sender, EventArgs e)
{
BoundCheckBoxField ReadOnly = new BoundCheckBoxField(true); ReadOnly.Key = c_sReadOnly;ReadOnly.Header.Text = ReadOnlyText();ReadOnly.Width = Unit.Pixel(65);ReadOnly.CssClass = "CheckboxItem";ReadOnly.CheckBox.CheckedImageUrl = "~/ig_res/Default/images/ig_checkbox_on.gif";ReadOnly.CheckBox.UncheckedImageUrl = "~/ig_res/Default/images/ig_checkbox_off.gif";this.Webdatagrid1.Columns.Add(ReadOnly);
}
I want this column to be not clickable for all the rows except the row which was created by me. Hope this can be done in InitializeRow.
Need your inputs on how to achieve this in code behind.
If you want only some cells in this column to be editable then I am going to suggest you a different approach. Leave the column to be editable and handle the EnteringEditMode client side event of the grid. Then perform a check and if you do not want that row to be edited call eventArgs.set_cancel(true).
Please note that Infragistics policy is to open a new thread/case for every different issue. This helps searching and tracking and enables us to provide a better support for you. So in case you have further questions please open a new thread in the Infragistics forum where you will get a respond.
Best Regards,Hristo AnastasovDeveloper Support EngineerInfragistics, Inc.
Sorry for the inconvenience.
I have created new post. Your samples and suggestions had always helped me in knocking down the issues quickly. That pushed to point the queries to you.
Thanks much.
Hello Jeevtiha,
Your first two answers in this thread have been answered so this case is closed. Please open a new thread with your next demand so that I could prepare a sample for you and upload it there.
I ll take care to post new one in future. Sorry abt that.
Would you mind helping me with a sample in js, as i dint get much info while browsing through your site.
Thanks for your support.