Hi,
I am trying to access a control in InsertItemTemplate.
On EditTemplate is fine, I use:
var Ctlcst_costru_civmec_note = (RadTextBox)CtlCstCostruzione.EditItems[0].FindControl("Ctlcst_costru_civmec_note");
But I am not able to find the same control on insert one. How can I do?
Thx,
Valerio
I have a requirement to dynamically build a table on server side and fill it with either textbox(for entering strings) or textbox with a small drop down next to it to enter numbers and unit of measure. My problem is that if I add both text and drop down to the same cell drop down overlaps text box for few pixels and is not aligned with other controls in rows above.normal text box size is 200(from CSS) and short is 150(from CSS). List box width is set to 50, so I expect controls to be aligned, but they are not. Screen shot attached. How this can be fixed?
Here is my code :
CSS:
.myLabelCss {
color: Red !important;
width: 20px !important;
}
.myLabelCssDD {
color: Red !important;
width: 10px !important;
}
.CustomClass {
width: 200px !important;
}
.CustomClass .riSingle .riTextBox {
width: 200px !important;
}
.CustomClassShort{
width: 150px !important;
}
Table declaration
<asp:Table ID="tblParms" runat="server" Font-Names="Arial" ForeColor="Black" CellSpacing="10" BorderColor="Black" Width="100%"
EnableViewState="False" BorderStyle="None" meta:resourcekey="tblParmsResource1"> </asp:Table>
VB code:
Private Sub buildControls()
Dim tRow As New TableRow()
tRow.ID = "MyRow1"
Dim tCell As New TableCell()
' cell 1, label
tCell.Text = "MyLabel1"
tCell.VerticalAlign = VerticalAlign.Top
tCell.Width = New Unit("30%")
tRow.Cells.Add(tCell)
'cell 2, controls
tCell = New TableCell()
tCell.VerticalAlign = VerticalAlign.Top
tCell.HorizontalAlign = HorizontalAlign.Left
tCell.Width = New Unit("30%")
Dim txtBox = New RadTextBox()
txtBox.ID = "MyText1"
txtBox.CssClass = "CustomClassShort"
txtBox.Label = "*"
txtBox.LabelCssClass = "myLabelCss"
txtBox.MaxLength = 15
tCell.Controls.Add(txtBox)
Dim ddUOMList As RadDropDownList = New RadDropDownList
ddUOMList.ID = "MyList1"
ddUOMList.Width = 50
ddUOMList.CausesValidation = False
Dim UOMItem As New DropDownListItem()
UOMItem.Text = "A"
UOMItem.Value = "A"
ddUOMList.Items.Add(UOMItem)
UOMItem = New DropDownListItem()
UOMItem.Text = "mA"
UOMItem.Value = "mA"
ddUOMList.Items.Add(UOMItem)
tCell.Controls.Add(ddUOMList)
tRow.Cells.Add(tCell)
tblParms.Rows.Add(tRow)
tRow = New TableRow()
tRow.ID = "MyRow2"
tCell = New TableCell()
' cell 1, label
tCell.Text = "MyLabel2"
tCell.VerticalAlign = VerticalAlign.Top
tCell.Width = New Unit("30%")
tRow.Cells.Add(tCell)
'cell 2, controls
tCell = New TableCell()
tCell.VerticalAlign = VerticalAlign.Top
tCell.HorizontalAlign = HorizontalAlign.Left
tCell.Width = New Unit("30%")
txtBox = New RadTextBox()
txtBox.ID = "MyText2"
txtBox.CssClass = "CustomClass"
txtBox.Label = "*"
txtBox.LabelCssClass = "myLabelCss"
txtBox.MaxLength = 15
tCell.Controls.Add(txtBox)
tRow.Cells.Add(tCell)
tblParms.Rows.Add(tRow)
End Sub
Hi
I have a problem in scrolling radgrid in chrome using <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="7" ></Scrolling>
whenever my scrollbar goes to end it resets itself to first column. and i just have this problem in chrome
what should I do?
hi
I'm using radtreeview for my page and i set treeview direction " right to left"
i want to be able to drag a node and drop it under another node
but the problem is when i set tree direction right to left my grabbed ( selected) node disappears and page width keep growing
i don't have this problem when i set tree direction to left to right
does telerik support treeview drag and drop for rtl treeview ?
this is the code that i'm using
<div style="direction:rtl;">
<
telerik:RadTreeView
PersistLoadOnDemandNodes
=
"true"
runat
=
"server"
ID
=
"rtvTables"
EnableDragAndDrop
=
"True"
ClientIDMode
=
"AutoID"
OnClientNodeExpanded
=
"onTreeViewExpanded"
OnClientNodePopulating
=
"nodePopulating"
OnClientNodeDropping
=
"onClientNodeDropped"
OnClientContextMenuShowing
=
"OnClientContextMenuShowing"
OnClientNodeDragStart
=
"OnClientNodeDragStart"
> <
WebServiceSettings
Path
=
"frmReporting.aspx"
Method
=
"OnNodeExpanded"
> </
WebServiceSettings
> <%-- <
WebServiceSettings
Path
=
"Services/frmReporting.asmx"
Method
=
"OnNodeExpanded"
>
</
WebServiceSettings
> --%> </
telerik:RadTreeView
>
</div>
thank you
Hi,
We're using your image editor tool for in-browser editing of images.
And it seems it have a strange behavior when resizing very lange images.
When i resize a image step-by-step from 2000 pixels width to 200 pixels with steps of 400 pixels each time, the resized image have better quality then when i resize it once from 2000 pixels to 200 pixels.
Is this a known behavior or i can do something to improve it?
Kind regards,
Jelle
Hi,
I am able to reproduce the issue at the demo site:
1) Open 'Find and Replace' dialog.
2) Click on the HTML tab.
3) Enter a word that needs to be found.
4) Click on the 'Find' button.
When the 'Find' button is clicked, the word does not get highlighted. It only highlights the word when I close the 'Find and Replace' dialog.
Thank you.
I was newbie in Kendo Ui and also javascript programming. I have a simple question how to submit the value from my checkbox to dataSource transport : read?
so "getData.php" able to get "c1" value (active) and reload the page again.
Here I provide my code? Hope someone can help me. Thank You.
My checkbox :
<
input
type
=
"checkbox"
id
=
"c1"
name
=
"checkbox1"
class
=
"k-checkbox"
checked
=
"checked"
value
=
"active"
onclick
=
"checkBox()"
>
Javascript code for checkbox:
$(
function
() {
var
dataSource =
new
kendo.data.DataSource({
transport: {
read: {
url:
"/getData.php"
,
type:
"POST"
}
},
schema: {
model: {
id:
"segmentID"
}
}
});
});
function
checkBox() {
var
checkbox = document.getElementById(
"c1"
);
if
(checkbox.checked ==
true
) {
$(
"#grid"
).data(
"kendoGrid"
).dataSource.read(checkBox.value);
}
else
{
if
(checkBox.value ==
'active'
) {
var
x =
'inactive'
;
}
$(
"#grid"
).data(
"kendoGrid"
).dataSource.read(x);
}
}