using
(
this
.RadGridView.DeferRefresh()) Getting an error with latest release of controls:
{
this
.RadGridView.SortDescriptors.Clear();
this
.RadGridView.SortDescriptors.Add(
new
SortDescriptor()
{
Member = Common.sort.PropertyName,
SortDirection = Common.sort.Direction
});
foreach
(var column
in
this
.RadGridView.Columns)
{
if
(column.Header.ToString() !=
string
.Empty && column.Header.ToString() != CommonStringLibrary.HeaderName)
column.IsVisible =
false
;
}
int
index = 1;
foreach
(var item
in
this
.Visibles)
{
var temp = item;
// work around closure issue.
var column =
this
.RadGridView.Columns.FirstOrDefault<GridViewColumn>(c => c.UniqueName == temp.Id);
if
(column ==
null
)
throw
new
ArgumentException(
string
.Format(
"Unable to find a column with UniqueName {0}."
,
temp.Id));
column.DisplayIndex = index++; <---- Error
is
here.
column.IsVisible =
true
;
}
}
Dear Team, My scenario is: There are two table one is product master where product_code and product_description and productlinking master where product_code and linking_code fields available. Now, I want to select product code in RadGridComboBoxColumn (it will be loaded from productmaster table) and another RadGridComboBoxColumn will load their linking code from productlinking table.
I am trying this but when product code changed all column value of linking code loaded with current product code values.
Product Code Linking Code
Product A Link 1
Product B Link 2
Product C Link 1
but I changed the product A to C then all linking code showing blank and then showing only Link 1 for all Product A, B & C.
Sir,
I am using silverlight 2010 telerik RadGridView. I am customizing grid view and put two simple buttons for Edit and Delete for opening separate Forms for editing and deleting.
Kindly you can tell me how to mark row as selected when I am clicking on buttons unfortunately when I am clicking on button the raw was not marks as selected.
foreach
(GridViewHeaderCell hc
in
gvData.ChildrenOfType<GridViewHeaderCell>())
{
if
(hc.Column.UniqueName ==
"ATU"
)
{
var fdd = hc.ChildrenOfType<FilteringDropDown>()[0];
//.
MessageBox.Show(fdd.ActualWidth.ToString());
fdd.Width = 15;
}
}
"1000"
, "1001", "1002", "159", "17", "13"
it will sort in this order:
1000 |
1001 |
1002 |
13 |
159 |
17 |
Hi Team,
I'm using telerik grid in one of my windows form. First column is a GridViewCheckBoxColumn and it has checkbox in the header column as well and user can check/uncheck every row manually either by clicking on the checkbox or anywhere on the row(I've written code on the CellClick event to check/uncheck the checkbox). The header checkbox behaves fine if I check/uncheck the row's checkbox but if I click on row it won't check/uncheck the header checkbox. Below is the code written in Cellclick event of the grid:
private
void
dgvManageBill_CellClick(
object
sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
if
(e.RowIndex >= 0 && dgvManageBill.CurrentRow !=
null
)
{
if
(e.Column.Name !=
"columnSelectAll"
)
{
dgvManageBill.CurrentRow.Cells[
"columnSelectAll"
].Value = !Convert.ToBoolean(dgvManageBill.CurrentRow.Cells[
"columnSelectAll"
].Value);
}
}
}
I thought of accessing the row's checkbox object and then setting its checked state instead of setting the cell value but I'm unable to find the checkbox in the cell. Is there any other way to achieve above requirement? I've been stuck on this quite a long now, will really appreciate some help!
Thanks
Amit