| Dim s_wtr2 As New StringWriter() |
| Dim h_wtr2 As HtmlTextWriter = New HtmlTextWriter(s_wtr2) |
| 'Check Type |
| If drpType.SelectedValue = "CC Declined" Then |
| gridPacc.RenderControl(h_wtr2) |
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|
I want to fill RadGrid when I click on the In Gantt Tree list .
Use this code and it works fine The problem is the RadGrid is not filling.
<body>
<form id="form1" runat="server">
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager2_AjaxRequest" ></telerik:RadAjaxManager>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
//Put your JavaScript code here.
</script>
<div>
<telerik:RadGantt ID="RadGantt1" Height="450px" SelectedView="MonthView" ReadOnly="false" runat="server">
</telerik:RadGantt>
</div>
<telerik:RadGrid ID="RadGrid1" RenderMode="Lightweight" EnableAriaSupport="true"
runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="6" AllowSorting="True" Skin="Web20" Width="100%" ShowStatusBar="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True" ShowFooter="True" Font-Bold="True" AllowFilteringByColumn="true" >
<itemstyle backcolor="Gainsboro" />
<GroupingSettings CollapseAllTooltip="Collapse all groups" />
<MasterTableView AllowAutomaticDeletes="True" EditMode="InPlace" BorderWidth="2px" AllowMultiColumnSorting="True" AllowSorting="True"
AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="ID" PageSize="6" ShowGroupFooter="True" >
<CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False" />
<RowIndicatorColumn Visible="False"> </RowIndicatorColumn>
<ExpandCollapseColumn Created ="true" ></ExpandCollapseColumn>
<FooterStyle BackColor="#cc6633"></FooterStyle>
<BatchEditingSettings OpenEditingEvent="Click" EditType="Cell"/>
<Columns>
<telerik:GridBoundColumn DataField="Activity_Code" AllowFiltering="true" HeaderButtonType="TextButton" HeaderText="رقم البند" SortExpression="Activity_Code" > </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Activity_Name" AllowFiltering="false" HeaderButtonType="TextButton" HeaderText="إسم البند" SortExpression="Activity_Name" ItemStyle-Width="200px" >
<ItemStyle Width="200px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Item_Code" AllowFiltering="true" HeaderText="رقم المادة" SortExpression="Item_Code" > </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Item_Name" AllowFiltering="true" HeaderText="إسم الماده" SortExpression="Item_Name" > </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Qty" AllowFiltering="false" HeaderText=" الكمية" SortExpression="Qty" > </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UnitName" AllowFiltering="false" HeaderText="Ø§Ù„ÙˆØØ¯Ø© " SortExpression="UnitName" > </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UnitCost" AllowFiltering="false" HeaderText="سعر Ø§Ù„ÙˆØØ¯Ø©" SortExpression="UnitCost" > </telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Total" AllowFiltering="false" HeaderText="الإجمالي" SortExpression="Total" > </telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ValidationSettings EnableValidation="true" ValidationGroup="Editsub"/>
<FilterMenu RenderMode="Lightweight">
</FilterMenu>
<HeaderContextMenu RenderMode="Lightweight">
</HeaderContextMenu>
</telerik:RadGrid>
<script type="text/javascript">
function pageLoad() {
var $ = $telerik.$;
var gantt = $find("RadGantt1");
$(".rgtTask").on("dblclick", function (e) {
e.stopPropagation();
var $element = $(e.target);
if (!$element.is(".rgtTask")) {
$element = $element.parents(".rgtTask").first();
}
var uid = $element.attr("data-uid");
var tasks = gantt.get_allTasks();
var task;
for (var i = 0; i < tasks.length; i++) {
if (tasks[i]._uid === uid) {
task = tasks[i];
break;
}
}
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(task.get_id());
});
}
</script>
</form>
</body>
Hi,
How can I Show the Add Child only and at the same time is hide Add Above and Add Below ?
I use a language ASP.Net .
Is there a code that I can distinguish that the user wants to add Child or Add Above or Add Below ?
i'm so sorry regarding my frequent requests
I understand that i need to add the 3 app settings for the encryption key, but would like to check where do i add the decryption key?
after patch the dlls and adding the keys to web.config, is there any requirement to do a code change?
i am currently using version 2015.2.729.40

Hi, I have a perfectly working code for auto populate textbox via rest api(it populates after 2 characters typed). Can you assist me on modifying the same api code to find out the total length of array(/total companies) and assign to textbox val something like $("#TotalCompany").val(...) I currently have autopopulate companies $("#Company").autocomplete working just fine.
$(document).ready(function () {
var baseServiceUrl = 'http://services.appserver.com/';
$("#Company").autocomplete({
minLength:
2,
source:
function (request, response) {
$.getJSON(baseServiceUrl + '/company/name/' + request.term + '/?callback=?',
{
contextKey: function () {
// applies to associated parties
var key =
$(this).parent().parent().find('.type').val();
if (key !== "--Select--" &&
key !== "")
key = key ===
"O" ? "Company" : "Company";
else
key =
"";
return key;
},
format: "json"
},
function (data) {
response($.map(data,
function (item) {
return {
label:
item['Company'].replace(/&/g, '&'),
value:
item['Company'].replace(/&/g, '&')
}
}));
}).sort();
}
});
});
The web service API return something simillar to the script
below:
<ArrayOfCompany xmlns="http://schemas.datacontract.org/2004/07/CR.WebServices.Model.EntityFramework" xmlns:i=http://www.w3.org/2001/XMLSchema-instance>
<Company>…</Company>
<Company>…</Company>
<Company>…</Company>
</ArrayOfCompany>
Please let me know if you need more details Greatly appreciated any help
Hello,
We are trying to upload a M4A file type using RadAsyncUpload and getting an error saying that it is not an allowed type, so is there any custom method to allow that along with the default allowed extensions.
We want all the default allowed ones and then this extra M4A. Please advice an optimized solution.
Thanks.

How can I make radasyncupload progress bar thicker in Lightweight render mode?
I found this:
http://www.telerik.com/forums/to-make-radasyncupload-progress-bar-thicker
but only works in rendermode="Classic"
Thanks