Hi all,
When clicking the "Draw Shape", "Draw Text", etc, buttons on the image editor, is there a way to disable the pop up windows that comes up by default?
I don't want my users to be able to select the colors when they draw. Thank you.
Hi,
I currently export using a custom function that takes the grid as an argument and passes it to the function to create the excel,however when i filter my grid to only show a few items it still prints all of the original items in the grid which have been filtered out
I Know it is exporting them all to the function because obviously they still live in the grid,i was wondering there was a way i could create another grid and set it to the filtered grid with only the displayed rows or whether i can remove those rows from my grid before sending it to my function
I Do now want the use the export function provided by telerik as i have a very specific layout that my excel must have and this function is to be used by hundreds of Screens in the future
Kind Regards
Josh
How can change the aspect of linear bar like picture bellow? I don't want it to be a straight line,like in default.
When I disable a RadTextboxControl the "BackColor" color turns "gray" which appears to be the default color. I've been unable to find anything on how to change the default "BackColor" on the disabled control. Anytime I update the "BackColor" property via the code behind or designer itself it always goes back to the same "gray" BackColor. Thoughts?
private
void
radGridView5_CellEditorInitialized(
object
sender, GridViewCellEventArgs e)
{
if
(e.Column.Name ==
"operati"
)
{
RadDropDownListEditor editors = (RadDropDownListEditor)e.ActiveEditor;
RadDropDownListEditorElement elements = (RadDropDownListEditorElement)editors.EditorElement;
switch
(_endOperationSoc)
{
case
"принят"
:
elements.Items.RemoveAt(4);
elements.Items.RemoveAt(1);
break
;
case
"приостановлен"
:
elements.Items.RemoveAt(3);
elements.Items.RemoveAt(1);
break
;
case
"снят"
:
elements.Items.RemoveAt(4);
elements.Items.RemoveAt(3);
elements.Items.RemoveAt(2);
break
;
case
"возобновлен"
:
elements.Items.RemoveAt(4);
elements.Items.RemoveAt(1);
break
;
}
}
if
(e.Column.HeaderText ==
"соц. работник"
)
{
RadDropDownListEditor editors = (RadDropDownListEditor)e.ActiveEditor;
RadDropDownListEditorElement elements = (RadDropDownListEditorElement)editors.EditorElement;
if
(radGridView5.RowCount != 0)
elements.SelectedIndex = elements.FindString(radGridView5.Rows[radGridView5.RowCount - 1].Cells[1].Value.ToString());
}
RadDropDownListEditor editor = e.ActiveEditor
as
RadDropDownListEditor;
if
(editor ==
null
)
{
return
;
}
RadDropDownListElement element = editor.EditorElement
as
RadDropDownListEditorElement;
int
scrolBarWidth = 0;
if
(element.DefaultItemsCountInDropDown < element.Items.Count)
{
scrolBarWidth = 35;
}
foreach
(RadListDataItem item
in
element.Items)
{
string
text = item.Text;
Size size = TextRenderer.MeasureText(text, element.Font);
if
(element.DropDownWidth < size.Width)
{
element.DropDownWidth = size.Width + scrolBarWidth;
}
}
}
here is this moment:
switch (_endOperationSoc)
{
case "принят":
//elements.Items[4].IsVisible = false;
elements.Items.RemoveAt(4);
elements.Items.RemoveAt(1);
RadMessageBox.Show("принят", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
break;
case "приостановлен":
elements.Items.RemoveAt(3);
elements.Items.RemoveAt(1);
RadMessageBox.Show("приостановлен", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
break;
case "снят":
elements.Items.RemoveAt(4);
elements.Items.RemoveAt(3);
elements.Items.RemoveAt(2);
RadMessageBox.Show("снят", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
break;
case "возобновлен":
elements.Items.RemoveAt(4);
elements.Items.RemoveAt(1);
RadMessageBox.Show("возобновлен", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
break;
}
}
How do I not delete items but just hide or display them?
It is necessary to do it in this moment.
Thank you.