Hi
I want to change the header height in scheduer, but i cant figure out how.
It is scheduer in winforms.
Hi,
I have a gridview with cells bound to a datasource. In addition I added a checkboxcolumn as follows:
this
.radGVMeldinger.MasterGridViewTemplate.Columns.Add(new GridViewCheckBoxColumn());
I want this grid not editable, only the checkbox.
I made the following code snippet:
private
void radGVMeldinger_CellClick(object sender, GridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
if (this.radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value.ToString() != "True")
{
radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value =
true;
}
else
{
radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value =
false;
}
}
}
Everything works fine, unless the fact that when I click the checkbox column this event doesn't fire.
This event fires when I click on every other column.
Has anyone a solution?
Regards,
/Henk
Lets say I added a row, and a required field is missing, so I alert the user, I want to keep the values the same, but after the alert values disappear. Here is the code, how i tried to return values
01.
if (!String.IsNullOrEmpty(newItem.stCountryName))
02.
dr.Cells["column1"].Value = newItem.stCountryName;
03.
//((CountryTable)dr.DataBoundItem).stCountryName = newItem.stCountryName;
04.
if (!String.IsNullOrEmpty(newItem.stCountryCode))
05.
((CountryTable)dr.DataBoundItem).stCountryCode = newItem.stCountryCode;
06.
if (newItem.nCodeLen != null)
07.
((CountryTable)dr.DataBoundItem).nCodeLen = newItem.nCodeLen;
08.
if (newItem.nRegionID != null)
09.
((CountryTable)dr.DataBoundItem).nRegionID = newItem.nRegionID;
Hi,
I am using the RadMenu and my menu is dynamically created using a database. The user can select a default start up form and I need to search though the menuitems with recursion to find that startup item and then perform the click event on that menu item.
In the windows menu I was able to do this this.mainMenu.Items.Find(reportID, true). How can I do this on the menu items?
Thanks,
Tim
hi
in my grid i have a column decimal but I want to remove zero after float . 750.000 -> 750
when i use FormatString = {G} or {N0} occur exception
There are three elements that are grouped.
The customer demanded that, when pressed again, the selection was removed.
Hung on the event items Click and wrote
but the selection does not disappear. How to fix?
if(radiobutton)
radiobutton.isChecked = false
else
radiobutton.isChecked = true
What is the proper way to insert text with specified font in any place in measured document? I have tried with the following code but it does not set the font if just right of the caret is space, and it changes the font of the whole word if the caret is in the middle of the word.
var editor =
new
RadDocumentEditor(radRichTextEditor1.Document);
editor.ChangeFontFamily(
new
Telerik.WinControls.RichTextEditor.UI.FontFamily(
"Times New Roman"
));
editor.Insert(
"ABC"
);
Hi,
1) I have a custom grid column/cell based on the examples
protected
override
void
CreateChildElements()
{
base
.CreateChildElements();
this
._stackElement =
new
StackLayoutElement();
this
._stackElement.StretchHorizontally =
true
;
this
._stackElement.StretchVertically =
true
;
this
._textElement =
new
LightVisualElement();
this
._textElement.StretchHorizontally =
true
;
this
._textElement.StretchVertically =
true
;
//this._textElement.Padding = new Padding(0, 0, 5, 0);
this
._imageElement =
new
LightVisualElement();
this
._imageElement.ImageAlignment = System.Drawing.ContentAlignment.MiddleRight;
this
._imageElement.ImageLayout = ImageLayout.Center;
this
._imageElement.Size =
this
._imageElement.MaxSize =
new
System.Drawing.Size(20, 20);
this
._imageElement.StretchHorizontally =
false
;
this
._imageElement.StretchVertically =
true
;
this
._imageElement.Click += (o, e) =>
{
if
(
this
.Enabled)
...
};
_stackElement.Children.Add(_textElement);
_stackElement.Children.Add(_imageElement);
this
.Children.Add(_stackElement);
}
Now the problem is, the sender in the grid OnToolTipTextNeeded is the LightVisualElement from the textElement/imageElement and not the cell it self (compared to the other "normal" columns)
I know that I get the cell over the Parent.Parent from the LightVisualElement but is there a simpler / more generic way?
2) Also is with the StackLayoutElement, is there any way that the image element would be the last to hide if the column width is to small (see attached images)
Hi, Dess | Tech Support Engineer, Sr.
I am using spreadsheet, I don't want someone else to edit the cell when I import the xlsx.
One idea I've come up with is to protect worksheets, but it would pop up and it didn't seem to release the mouse event.
you can look the attachment file,I don't want to use "protect", what should i do?