[PasswordPropertyText(true)]
public string Password {get;set;}
Hi...
i got some problem on my custom new row element according to this link, but on my code i made with button element
internal
class
CustomGridNewRowElement : GridRowElement
{
private
GridCellElement cellElement;
private
RadButtonElement radButtonElement;
public
RadButtonElement AddButtton =>
this
.radButtonElement;
public
CustomGridNewRowElement() { }
protected
override
void
CreateChildElements()
{
base
.CreateChildElements();
this
.cellElement =
new
GridCellElement(
null
,
this
) { StretchHorizontally =
true
, StretchVertically =
true
};
this
.radButtonElement =
new
RadButtonElement(
"Add New"
);
this
.Children.Add(cellElement);
this
.cellElement.Children.Add(
this
.radButtonElement);
this
.cellElement.ClipDrawing =
true
;
}
public
override
bool
IsCompatible(GridViewRowInfo data,
object
context)
{
return
data
is
CustomGridViewRowInfo;
}
}
internal
class
CustomGridViewRowInfo : GridViewNewRowInfo
{
public
CustomGridViewRowInfo(GridViewInfo viewInfo) :
base
(viewInfo)
{
}
public
override
Type RowElementType =>
typeof
(CustomGridNewRowElement);
}
the problem is im missing an rowheadercellelement as shown on attachment, i need the Add Button only fit on GridViewDataColumns like a standard GridViewNewRowInfo,
and shown on 2nd attachment it throw an exception when mouse right button press / contextmenu on Add Button Element, i couldnt find whats wrong.
any help please.
i'm using 2015 version and can't find GetUnderlyingData Method under LocalDataSourceProvider class.
receving error - "GetUnderlyingData is not a member of LocalDataSourceProvider ".
please help, how can i add it or how can i override it?
Hi,
I have a solution where a user ​drags data into my application, onto a RadListView. The user drops the data on top of a RadListViewItem representing the subject to added the data to. I have added code for detecting which item that ​was dropped on (from Telerik documentation), but it always returns null from GetElementAtPoint. I have tried other Points (screen, control, client), but it's allways null.
The RadListView is unbound, in DetailView mode and have an icon and two columns. I don't know if that makes any difference in how this is handled.
private
void
radListView1_DragDrop(
object
sender, DragEventArgs e)
{
Point point = radListView1.PointToClient(
new
Point(e.X, e.Y));
BaseListViewVisualItem droppedItem = radListView1.ElementTree.GetElementAtPoint(point)
as
BaseListViewVisualItem;
if
(droppedItem !=
null
)
{
ListViewDataItem item = droppedItem.Data;
// handle dropped data here
}
}
I am using Telerik version 2014.1.226.40.
Best regards
Thomas
Is it possible to drag a row from telerik grid to drop on windows form treeview control?
In my code i am able to drag the row from telerik grid but DragEnter event of windows form treeview control is not firing?
Hi,
if you change PC's text size to 125% and run Demo Application, LayoutControl, Frist look - the layout is different then in 100% text size, also resizing works other way. Is it possible to make LayoutControl work same way in 100% and 125% text size?
Thanks,
Alex
Hi
I am trying to save a row item to a internel variable without much succes.
lstTags is a detailed veiw and it curretly works.
I basicaly want to get reocrd 6 save to listViewDataItem
then look to see what the sub items are set too?
The code i have is;
Dim listViewItem As ListViewDataItem = lstTags.Items(6)
Dim itemId As String = listViewItem.SubItems(1).Text
There are no sub-items.
Neil
Hi,
I'm having a hard time trying to get a datetime value from my gridview to string in the correct format that I have set to display on the gridview.
I want: yyyy/MM/dd HH:ss ex. 2020/01/30 14:15
But the result keeps giving me 1/23/2020 2:05:08 PM
Then to string with all the non-alphanumeric removed it gives me: 1232020258PM (noticed it removed any 0s in front of the mins and secs...
I have already formatted the datetime on the gridview to display the correct format. But the value to string still gives me the other format.
I've also tried to grab the data from Sql database instead of gridview, however I still get the same result.
Ultimately, I need the correct format in the string so that I can eventually take it apart again to put in a different table. And why it will be in string is because i need to grab this info to include in the name of the PDF file. Then I'll make a table using info from the name breakdown to pull the PDF to put info a table to select it.
Help? Thank you!!!
My code:
private
void
radGridView1_CommandCellClick(
object
sender, GridViewCellEventArgs e)
{
plantCode = radGridView1.CurrentRow.Cells[
"plantCode"
].Value.ToString();
machine = radGridView1.CurrentRow.Cells[
"machine"
].Value.ToString();
ordNum = radGridView1.CurrentRow.Cells[
"productionOrderNum"
].Value.ToString().Substring(0, 7);
ordItem = radGridView1.CurrentRow.Cells[
"productionOrderNum"
].Value.ToString().Substring(8, 3);
apprStatus = radGridView1.CurrentRow.Cells[
"approvalList"
].Value.ToString();
custName = radGridView1.CurrentRow.Cells[
"addrName"
].Value.ToString();
process = radGridView1.CurrentRow.Cells[
"process"
].Value.ToString();
prodCode = radGridView1.CurrentRow.Cells[
"prodCode"
].Value.ToString();
custId = radGridView1.CurrentRow.Cells[
"custId"
].Value.ToString();
approvalTime = Regex.Replace(radGridView1.CurrentRow.Cells[
"approvalTime"
].Value.ToString(),
"[^a-zA-Z0-9]"
,
""
);
See I already formatted it on the datetime column in the gridview and this works fine displaying in the gridview:
gridViewTextBoxColumn16.DataType =
typeof
(System.DateTime);
gridViewTextBoxColumn16.FieldName =
"approvalTime"
;
gridViewTextBoxColumn16.FormatString =
"{0:yyyy/MM/dd HH:mm}"
;
gridViewTextBoxColumn16.HeaderText =
"approvalTime"
;
gridViewTextBoxColumn16.IsVisible =
false
;
gridViewTextBoxColumn16.Name =
"approvalTime"
;
gridViewTextBoxColumn16.ReadOnly =
true
;