SingleMinus.gif,
SinglePlus.gif so that the users can easily identify that the detail table is there.
Hi,
My grid is databound using NeedDataSource and I localize my column names in the Pre-Render event. When I enable ShowGroupPanel to allow users to drag columns for grouping, the name that appears in the group box and in the grouping row titles is not the localized name. I have searched the column properties but I can't see anything obvious for this - what do I need to set in order to get the names displaying correctly?
Hi,
Now I am looking into this demo
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/commanditem/defaultcs.aspx
First, I edit the second row in the gird, then delete the first row. I found after the first row was deleted. The original second row(now it is the first row after deleting) lost "in edit" state. And the original third row(now it changed to the second row) got the "in edit" state.
Is it a software defect? And is there any solution now?\
Thanks.
Zhang Rui
Hello everybody
I'm working currently on a application that uses telerik for all controls except some special type called "bowserfield", is like an inputbox with autocomplete. I need to use this control mandatory.
My problem starts when I try to use this control inside a itemtemplate and want to get the row in this customcontrol onclick event. I have the row number in RANK1 control, could I use this inputbox to get the row number? I could use ONCLICK in server side, but I dont know how to get the radgrid sender reference. ALso notice that I dont have the row selected when the event is launched from this control.
My case:
<telerik:GridTemplateColumn HeaderText="BB" HeaderStyle-Width="15%" UniqueName="cv" >
<ItemTemplate>
<asp:hiddenfield runat="server" id="KEY1" Value='<%# Bind("ID") %>' ></asp:hiddenfield>
<asp:hiddenfield runat="server" id="RANK1" Value='<%# Bind("rank") %>' ></asp:hiddenfield>
<et:bowsefield runat="server" id="DocID" bowsername="document" OnChange="Save($(this),'1')"/>
</ItemTemplate>
</telerik:GridTemplateColumn>
<script type="text/javascript">
function Save(sender, args)
{
if (sender != null) {
var grid = $find('<%= RadGrid1.ClientID %>');
var MasterTable = grid.get_masterTableView();
var tableEl = MasterTable.get_element();
var DocX
var idX
if (args == '1')
{
var textBox = sender[0].$telerik.findElement(tableEl, "DocID"); ----> GIVES ME ALWAYS ROW 1 :(
}
...
}
}
</script>
I think that a solution could be use this control only in edit mode, but is possible to do without it? Thanks a lot.-
Using the MetroTouch skin in version 2015.3.1111.45 - In lightweight RenderMode - if you click directly on the text of a button it does not fire the click even - you must click somewhere else on the button.
If you set RenderMode="Classic" the issue is resolved.
In the Q3 2015 SP1 release the server-side OnClick event of RadButton is not raised when the following conditions are met:
The issue will be fixed for the official Q1 2016 release and the 2015.3.1124 internal build.
For the time being you can use one of the following resolutions:
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
UseSubmitBehavior
=
"false"
Text
=
"Click"
OnClick
=
"RadButton1_Click"
RenderMode
=
"Lightweight"
/>
<script>
var
$T = Telerik.Web.UI;
$T.RadButton.prototype._mouseClickHandler =
function
(args) {
var
button =
this
, result;
var
target = args.target;
var
e = args.rawEvent;
var
element = button.get_element();
if
(target !== element && $telerik.isDescendant(element, target)) {
$telerik.cancelRawEvent(e);
simulateMouseEvent(element,
"click"
, e);
return
;
}
try
{
if
(button._functionality.clicking(args) && !element.getAttribute(
"rwOpener"
)) {
button._functionality.click(args);
result = button._functionality.clicked(args);
}
}
finally {
button._mouseUp(args);
button._restoreFlags();
setTimeout(
function
() { Page_BlockSubmit =
false
; }, 0);
return
!result ? $telerik.cancelRawEvent(e) :
true
;
}
};
function
simulateMouseEvent(element, eventName, args) {
var
o = $telerik.$.extend({}, args || {});
var
oEvent;
if
(document.createEvent) {
//deprecated DOM2 Event Model
oEvent = document.createEvent(
"MouseEvents"
);
oEvent.initMouseEvent(eventName, o.bubbles, o.cancelable, document.defaultView,
o.button, o.screenX, o.screenY, o.clientX, o.clientY,
o.ctrlKey, o.altKey, o.shiftKey, o.metaKey, o.button, element);
}
else
if
(
"MouseEvent"
in
window) {
//standard DOM3 Event Mode
oEvent =
new
MouseEvent(
'click'
, o);
}
oEvent && element.dispatchEvent(oEvent);
if
(!oEvent) {
//IE
oEvent = extend(document.createEventObject(), o);
element.fireEvent(
'on'
+ eventName, oEvent);
}
return
element;
}
function
extend(destination, source) {
for
(
var
property
in
source) {
destination[property] = source[property];
}
return
destination;
}
</script>
I want to freeze the column header, so that i set UseStaticHeaders=True.
But i found that the Group Header had alignment problem (please see attached screen capture).
Please help. Thanks
I have a RadComboBox that is loading items on demand from a Page method. About 1% of the time, it would lose the selected value on post back. After much digging, I found that in all of those1% cases, there was a \r and/or \n character in the data stringbeing used for the item's text. Once I filtered out the \r and \n characters everything works fine.
I thought I would post this in case anyone else has a similar problem.
I would also urge Telerik to either fix this issue or to put something very clear in the documentation about this.