我刚刚赢得了1个Telerik Premium Collection for .NET Developer的订阅(幸运的是我!),并想知道OpenAccess ORM是否值得学习?有没有人抛弃他们的开源变种,现在正在使用Telerik ORM工具?
使用Telerik ORM工具而不是开源变体有什么好处吗?
有什么想法吗?
顺便说一下,我迫不及待地开始使用他们的RadControls for ASP.NET AJAX!
我试图刷新下拉列表后另一个DropDownList是更改但刷新()方法是未定义错误正在提升.为我尝试再次读取数据源,它显示它加载但数据仍然是相同的.帮助解决请问这个问题.
码:
$("#DropDownList1").change(function () {
custCode = $("#DropDownList1").val();
$("#titles").data("kendoDropDownList").dataSource.read(); //shows list Loading But Same Data Is present .
$("#titles").data("kendoDropDownList").refresh(); //NOT Working
});
Run Code Online (Sandbox Code Playgroud) 我有以下情况:
我的页面上有一个gridview:
page1.aspx
Run Code Online (Sandbox Code Playgroud)
我page2.aspx在rad窗口中通过gridview 打开另一个页面(),然后通过page2.aspx我的一些按钮打开最后一页(page3.aspx)rad window.
所有这些步骤都是通过服务器端代码执行的:
protected void OpenNewWindow(string url, int width, int height, int mode)
{
RadWindow newWindow = new RadWindow();
newWindow.NavigateUrl = url;
newWindow.VisibleOnPageLoad = true;
newWindow.KeepInScreenBounds = true;
newWindow.Skin = "Metro";
if (width > 0)
{
newWindow.Width = width;
}
if (height > 0)
{
newWindow.Height = height;
}
newWindow.VisibleStatusbar = false;
if (mode == 0)
{
{
}
//newWindow.OnClientClose = "OnChildWindowClosed";
newWindow.DestroyOnClose = true;
newWindow.InitialBehaviors …Run Code Online (Sandbox Code Playgroud) 我是使用Kendo Grid和Kendo UI的新手.我的问题是如何解决此错误
Uncaught TypeError: Cannot read property 'replace' of undefined
Run Code Online (Sandbox Code Playgroud)
这是我在KendoGrid上的代码
$("#Grid").kendoGrid({
scrollable: false,
sortable: true,
pageable: {
refresh: true,
pageSizes: true
},
dataSource: {
transport: {
read: {
url: '/Info/InfoList?search=' + search,
dataType: "json",
type: "POST"
}
},
pageSize: 10
},
rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')),
altRowTemplate: kendo.template($("#rowTemplate").html())
});
Run Code Online (Sandbox Code Playgroud)
导致错误的行
rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')),
Run Code Online (Sandbox Code Playgroud)
rowTemplate的HTML
<script id="rowTemplate" type="text/x-kendo-tmpl">
<tr class='k-alt'>
<td>
${ FirstName } ${ LastName }
</td>
</tr>
</script>
Run Code Online (Sandbox Code Playgroud) 我正在使用Telerik UI For Windows表单.
我有一个RadGridView,我在其上代表一个名为的自定义类型MarketInfo:
Public NotInheritable Class MarketInfo
...
Public ReadOnly Property Participants As ReadOnlyCollection(Of ParticipantInfo)
Get
Return Me.GetParticipants()
End Get
End Property
...
End Class
Run Code Online (Sandbox Code Playgroud)
它只包含text和booleans属性,以及Participants返回另一个自定义类型集合的属性:
Private Function GetParticipants(ByVal market As XElement) As ReadOnlyCollection(Of ParticipantInfo)
Dim participantInfoList As New List(Of ParticipantInfo)
For Each participantNode As XElement In market...<participant>
participantInfoList.Add(New ParticipantInfo(participantNode))
Next
Return New ReadOnlyCollection(Of ParticipantInfo)(participantInfoList)
End Function
Run Code Online (Sandbox Code Playgroud)
这是完整的ParticipantInfo课程:
Public NotInheritable Class ParticipantInfo
Private ReadOnly participantElement As XElement …Run Code Online (Sandbox Code Playgroud) 我有一个带有Ajax Tab控件的页面,其中一个选项卡中是一个webcontrol,作为Telerik RadGrid,Edit窗体指向另一个Web控件.该编辑表单还包含Ajax选项卡,在其中一个选项卡上,还有另一个webcontrol的Ajax模式弹出窗口.
初始webcontrol在其自己的页面上使用时工作正常,但是当在Ajax选项卡中根据需要使用控件时,编辑表单无法显示.脚本管理器抛出以下错误:
Microsoft JScript运行时错误:Sys.InvalidOperationException:找不到ID为"xxx"的UpdatePanel.如果它是动态更新的,那么它必须在另一个UpdatePanel内.
对此的任何帮助将不胜感激.
我在页面上有一个日期选择器和一个网格.我希望根据datepicker中的日期填充网格.我使用grid.dataBind使用Telerik mvc网格完成了这项工作.
var grid = $('#Grid').data('tGrid');
var pDate = document.getElementById('DatePicker').value;
$.ajax(
{
type: 'POST',
url: '/Home/AccountSummary/',
dataType: 'json',
data: { date: pDate },
success: function (result) {
grid.dataBind(result);
}
});
Run Code Online (Sandbox Code Playgroud)
现在我想用Kendoui网格做同样的事情.我知道我需要通过使用获得网格$('#Grid').data('kendoGrid').但是如何将结果绑定到网格?
我有一个注册表单,其中包含3到4个下拉控件和2个日期选择器,现在当选择下拉控件值时(选择索引更改被触发)然后我不希望我的页面回发.
我使用更新面板来阻止这种帖子的行为,如下所示:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<%--Update Panel for date picker%>
<asp:UpdatePanel ID="UpdatePanelDatepicker" runat="server">
<ContentTemplate>
<telerik:RadDatePicker ID="rdpDate1" runat="server">
</telerik:RadDatePicker>
</ContentTemplate>
</asp:UpdatePanel>
<%--Update Panel for Dropdown--%>
<asp:UpdatePanel ID="updatepaneldata" runat="server">
<ContentTemplate>
<telerik:RadComboBox ID="ddlCountry" runat="server">
</telerik:RadComboBox>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</asp:UpdatePanel>
Run Code Online (Sandbox Code Playgroud)
所以我只是想问这是在更新面板下放置多个控件的正确方法吗?
我有一个 ASP.NET Core 5 MVC Web 应用程序,使用 Entity Framework Core 5。
我们实现 Web 组件,例如网格或电子表格(我们与 Telerik 合作)。当我在组件中进行一些更改,然后尝试保存更改时,组件会调用 my ApplicationDbContext.SaveChanges. 然后我收到以下错误:
System.InvalidOperationException:配置的执行策略“SqlServerRetryingExecutionStrategy”不支持用户启动的事务。使用“DbContext.Database.CreateExecutionStrategy()”返回的执行策略将事务中的所有操作作为可重试单元执行。
这是我ConfigureServices用于 DBContext 的方法:
public static void AddDbContext(this IServiceCollection services, string connectionString) =>
services.AddDbContext<ApplicationDbContext>(options =>
{
options.UseSqlServer(connectionString,
providerOptions =>
{
providerOptions
.EnableRetryOnFailure(
maxRetryCount: 5,
maxRetryDelay: TimeSpan.FromSeconds(30),
errorNumbersToAdd: null)
.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery);
});
options.EnableSensitiveDataLogging();
options.ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning));
});
Run Code Online (Sandbox Code Playgroud)
该错误不会系统地发生。当然,当我尝试将多个元素保存到数据库时。而且当只有一个元素时也是如此。当我以经典形式逐一编辑或相同元素时不会发生,只有当它发生在多个对象场景(网格或电子表格)中时...
作为示例,我给出了一个方法,允许将Entreprise对象从电子表格提交到数据库,以便使用CreateExecutionStrategy方法:
public ActionResult Data_Source_Entreprises_Submit(SpreadsheetSubmitViewModel model)
{
var result = new SpreadsheetSubmitViewModel()
{
Created = new …Run Code Online (Sandbox Code Playgroud) c# telerik entity-framework-core asp.net-core asp.net-core-5.0
在我的ASP.NET站点中,我使用Telerik控件来绑定日期和时间选择器,并且它在除IE 10之外的所有浏览器中都很好用,然后我运行脚本调试器它说js错误:
SCRIPT5007:无法获取未定义或空引用的属性'documentElement'Telerik.Web.UI.WebResource.axd,第166行字符2
谁知道,如何解决这个问题?
非常感谢!
telerik ×10
asp.net ×5
c# ×5
javascript ×3
jquery ×3
kendo-ui ×3
ajax ×2
vb.net ×2
.net ×1
asp.net-core ×1
excel ×1
kendo-grid ×1
orm ×1
radwindow ×1
updatepanel ×1