I have a telerik :RadGrid in my project with a Master, Detail configuration. Both Master and Detail tables are have EditMode='Batch'
I need to dynamically set some columns to readonly on a per row basis. I used BatchEditOpening() to acheive this by setting args._cancel to true on the columns that need to be read only. There is more logic to determine the editability than in the example but the end result is the same: setting args._cancel = true if the field needs to be not editable. To replicate the issue:
click the built in 'Add new record' button 3 times. 3 rows are created as expected.
Then click any where in any of those rows, which should open the row for edit which it does. An error in the telerik function _openCellinEditMode()
It calls this function for the cells that were set to args._cancel = true in the BatchEditOpeining function. The _openCellinEditMode function fails when the following line is executed if (o && $telerik.getElementByClassName(o.cell, e).style.display === "") because there is no element with the rgBatchContainer class that it is looking for because this cell is no longer editable.
Is anyone aware of this issue? and is there a workaround / fix for it?
If I take the code out of the BatchEditOpening function, the error does not occur. It also doesnt occur as each row is added. I have stepped through the code and for each new row added it only calls _openCellinEditMode() for the appropriate editable columns. Then when you click on a cell to edit it will fail by calling the function for a column that has edit cancelled.
function
BatchEditOpening(sender, args) {
var
row = args.get_row();
//var cell = args.get_cell();
tableView = args.get_tableView();
//var column = args.get_column();
var
columnUniqueName = args.get_columnUniqueName();
args._cancel =
false
;
var
rowstatus =
''
;
if
(
columnUniqueName ==
"NotEditableColumn"
) {
args._cancel =
true
;
}
}
_openCellInEditMode:
function
(q) {
var
u =
this
;
var
n = q.cell;
var
s = u._getEditorControlsContainer(q.tableView, q.column.get_uniqueName(), n);
var
r = u._getDataControl(s);
var
t = s.parentNode;
var
p = u._getSetCellValue(n);
var
o;
if
(t.tagName.toLowerCase() ===
"td"
|| (u._currentlyEditedRow && n.parentNode.id !== u._currentlyEditedRow.id)) {
if
(u._currentlyEditedRow && n.parentNode.id !== u._currentlyEditedRow.id) {
t = u._currentlyEditedRow.cells[n.cellIndex];
}
o = u._getCellDataToOpenEdit(t);
if
(o && $telerik.getElementByClassName(o.cell, e).style.display ===
""
) {
if
(!u._updateCellValue(o)) {
return
false
;
}
u._currentlyEditedCellInfo =
null
;
}
}
Hello, new to Telerik and have what I think it a pretty basic question.
I've inherited a site where the business wants some more functionality on the page. One of the items is to make it more reactive. Telerik looks like it has some great options. My challenge is, the current page calls a sp that returns multiple unnamed tables.
I can connect the grid to it fine and it binds to the first table (as I understand is the default behavior)
Can someone please tell me how I can reference the subsequent tables via index?
I think it's something like below to get the 4th table from the SP for example but when I run it, I get:
Type 'System.Web.UI.WebControls.SqlDataSource' does not have a public property named 'DataSource'.
can someone please point me in the right direction?
thank you for your help
Paul
<asp:SqlDataSource ID="AvailablePlans" DataSource ="[3]" runat="server" ConnectionString="<%$ ConnectionStrings:///////////////// %>" SelectCommand="ListDataForElections" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter DefaultValue="123456" Name="customer_id" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
Greetings to all,
Quick question:
Is the overflow property always set to "hidden" according to your framework? I've been commissioned to work on a project that is using Telerik.
I need to set it up to "visible" because it's eating up a tab menu after the user clicks on a anchor hyperlink type of link on the bottom pane.
Nothing is set up on <telerik:RadPane ID="radPaneBottom" runat="server" Width="100%" height="64%" OnClientLoaded="SplitterLoaded" scrolling="None" >
that points out to the overflow being directly set to "hidden" but looking using the inspect option for browser debugging, there is a div container named:
<div id="RAD_SPLITTER_PANE_CONTENT_radPaneBottom" style="width: 434px; height: 510px; overflow: hidden;">
If I set the overflow to 'visible' on the debugger (Elements) from google chrome, then the problem is gone.
Is there something I am missing here? Would there be a RadPane property that would allow me to set the overflow to "visible"?
Please advice.
On my web application I need to offer users a way to print a pane, and I have been using the javascript function to do that( https://docs.telerik.com/devtools/aspnet-ajax/controls/splitter/panes/printing-content ). But the problem is that there is a popup of the pane contents that remains after they have finished printing. And this can be confusing for some people as they may still think the popup is an editable form.
I have been using the code from this forum post: https://www.telerik.com/forums/radpane-close-after-print
But it only works on IE, which is now obsolete and removed from all of our employee's machines. On Chrome and Edge it will simply try to print a blank page, as the print dialog appears before the popup is actually rendered.
Is there any solution for this that works properly on Edge and Chrome?
I would like to set some attributes to each group by item when binding the scheduler with appointments, filtered by some criterion.
My aim is to ultimately access this attribute via the DOM to then do further logic.
E.g.
'VB.Net
schedule.GroupBy =
"FoodType"
'Other code...
Private
Sub
schedule_ResourceGroupByItemDataBound(sender
As
Object
, e
As
EventArgs)
Dim
group = e.Item
group.Attributes.Add(
"data-foodtypeid"
, group.Value)
End
Sub
// Example case on the client
function
schedule_Load(sender, args) {
$(
"schedule [data-foodtypeid='1']"
).hide();
}
Hi,
I'm using RadAsyncUpload to upload images with mobile devices, such as Android.
Progress bar does not fully work. It doesn't move until upload is complate.
Best regards, Mikko
<rad:RadEditor ID="ctl_txt_Body" runat="server" Width="500px" Height="400px" SkinID="DefaultSetOfTools" |
EditModes="Design, Html"> |
<Tools> |
<rad:EditorToolGroup Tag="MainToolbar"> |
<rad:EditorTool Name="AjaxSpellCheck" /> |
<rad:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" /> |
<rad:EditorSeparator /> |
<rad:EditorTool Name="Undo" ShortCut="CTRL+Z" /> |
<rad:EditorTool Name="Redo" ShortCut="CTRL+Y" /> |
</rad:EditorToolGroup> |
<rad:EditorToolGroup Tag="FileManagers"> |
<rad:EditorTool Name="ImageManager" /> |
</rad:EditorToolGroup> |
<rad:EditorToolGroup> |
<rad:EditorTool Name="Bold" /> |
<rad:EditorTool Name="Italic" /> |
<rad:EditorTool Name="Underline" /> |
<rad:EditorSeparator /> |
<rad:EditorTool Name="ForeColor" /> |
<rad:EditorTool Name="BackColor" /> |
<rad:EditorSeparator /> |
<rad:EditorTool Name="FontName" /> |
<rad:EditorTool Name="RealFontSize" /> |
</rad:EditorToolGroup> |
</Tools> |
<ImageManager ViewPaths="~/Img" UploadPaths="~/Img" DeletePaths="~/Img" /> |
</rad:RadEditor> |
<handlers> |
<add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> |
<add name="Telerik.Web.UI.DialogHandler.axd_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> |
<add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/> |
<add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0"/> |
<add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0"/> |
</handlers> |