我有一个在ASP.net和C#开发的Web应用程序.我还使用Telerik ASP.NET AJAX进行Web UI.应用程序System.Web.UI.ViewStateException: Invalid viewstate在生产服务器中抛出异常().它在测试服务器中工作正常.而且这个错误是随机抛出的.
System.Web.UI.ViewStateException: Invalid viewstate. 
Client IP: x.x.x.x
Port: xxxxx
Referer: http://webaddress/Page.aspx
Path: /Page.aspx
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CMNTDF; BRI/1; InfoPath.3; BRI/2; .NET4.0C)
ViewState: /wEPDwUILT ... [further contents omitted for this question]
我正在研究RadGrid,我想访问它的行,但它似乎没有.Rows属性.
这是我到现在为止所尝试的:
 
  
我怎样才能访问rgCustomers'Rows系列?我想为每一行添加一个按钮.  
我正在使用KendoUI KendoGrid.我有一个带删除按钮或"销毁"操作的列.Kendo会显示一个警告框,其中包含"您确定要删除此记录吗?" 我需要这个文本更具体地说明我的情况.你如何自定义这个文本?
任何帮助,将不胜感激.
我添加列的代码是:
$reports.kendoGrid(
{
    dataSource: dataSource,
    pageable: {
        refresh: true,
        pageSizes: true
    },
    toolbar: [{ name: "create", text: "Add" }],
    columns:
    [
        { field: 'name', title: 'Report', sortable: true },
        { command: ["edit", "destroy"], title: " ", width: "180px", } 
    ],
    editable: "inline",
    selectable: true,
在我的解决方案中,我有telerik报告,当试图在Visual Studio 2010设计器中打开它们时,我收到此错误:
Value cannot be null. Parameter name: instance
Call Stack 
at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)  
当我运行解决方案时,它们正在出现并且它们很好.所以,唯一的问题是设计师和这个错误.
提前致谢.
是的,这肯定是一个重复的问题,但我想得到一些新鲜的.
我的印象是Telerik是一个更完整的套件,但我真的被他们的控件的响应性所关闭.就响应性而言,它似乎"笨拙"(我有一台非常快的计算机和视频卡).滚动网格并转换块,即使在他们声称具有良好性能的最新演示中也是如此.我确实认为他们的WPF套件在API方面与他们的SL匹配.
Infragistics拥有更少的控件和更少的主题可能性,但他们的控件非常敏感.滚动网格是非常流畅的,它们的组合菜单和所有其他控件也是如此.
我检查了ComponentOne,他们的控件在上面提到的几点上看起来与Telerik类似,但是稍微不那么"漂亮".
这些套房的其他用户有什么想法吗?基本上,我正在寻找的是一个高性能和响应性的套件,从主题角度可以相对定制,并且具有足够的功能来开发LOB SL应用程序,而无需使用多个套件来满足大多数常见要求.
我正在使用KendoGrid并进行内联批量编辑.只有少数几列可以编辑.当按Tab键时,下一列被选中,但它不是下一个可编辑列.有没有办法控制KendoGrid中的Tab键顺序?如何使标签跳过不可编辑的列?
我的标记:
<div id="employeeGoalsGrid"></div>
我的Javascript:
var goalsDataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: '/MVC/ResearcherPoints/GetEmployeeResearchers',
                type: 'POST',
                contentType: 'application/json'
            },
            update: {
                url: '/MVC/ResearcherPoints/UpdateEmployeeGoal',
                type: 'POST',
                contentType: 'application/json'
                //dataType: "jsonp"
            },
            parameterMap: function (options, type) {
                debugger;
                $.extend(options, { ID: options.id });
                return JSON.stringify(options);
            }
        },
        batch: false,
        schema: {
            model: {
                id: 'ID',
                fields: {
                    id: { editable: false, nullable: false },
                    FirstName: { editable: false, nullable: true  },
                    LastName: { editable: false, nullable: true },
                    Title: { …我试图让ID字段只读.它是数据库中的标识字段,因此用户不会设置它.但他们希望看到它.如果分配给a DataForm仍然允许该值被编辑,我在下面遗漏了什么.
public class StatusChoice : BindableBase
{
    private int id;
    [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    [Editable(false,AllowInitialValue = false)]
    public int ID
    {
        get { return id; }
        set
        {
            id = value;
            OnPropertyChanged();
        }
    }
}
我想在下拉列表中绑定员工列表,具有自动完成功能,以便用户可以搜索正确的名称.i使用RadComboBox
我有两个主要问题:
1-关于5000item 的列表非常大.所以在浏览器中绑定大量数据会使其挂起或变慢.(性能问题)
根据Telerik文档
将数据源设置为RadComboBox.使用DataSourceID或DataSource属性执行此操作,并将DataTextField和DataValueField属性设置为数据源中的相应字段.(请注意,使用DataSource时,必须在每个回发上设置属性,最方便的是在Page_Init中.)将EnableAutomaticLoadOnDemand设置为true.
所以我每次都要调用以下方法Page_Init!!!
  protected void BindInnerInstructors()
    {
        ddl_inner_sup.Items.Clear();
        ddl_inner_sup.DataSource = Utilities.GetAllInnerInstructors();
        ddl_inner_sup.DataValueField = "emp_num";
        ddl_inner_sup.DataTextField = "name";
        ddl_inner_sup.DataBind();
    }
2-尝试设置组合框的选择时,未将对象引用设置为对象的实例.
我通过这个克服了这个问题.
我有关于4下拉列表,但每个人都必须根据事件绑定,但我必须绑定所有这些page_init.
我将很感激这个问题的详细答案.
我在树视图和列表框中启用了滚动查看器,甚至自定义了滚动条,引用了这个网站,我已经实现了我需要的东西.我的滚动条现在看起来像下面
但我需要我的滚动条看起来像这样
我需要在右下角的空间用水平或垂直滚动条填充.是否可以在wpf?
以下是滚动条的自定义样式
<local:ThicknessConverter x:Key="ThicknessConverter" />
    <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Style.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">
                <Setter Property="Width" Value="Auto"/>
                <Setter Property="Height" Value="18" />
                <Setter Property="Template"
                    Value="{StaticResource HorizontalScrollBar}" />
            </Trigger>
            <Trigger Property="Orientation" Value="Vertical">
                <Setter Property="Width" Value="18"/>
                <Setter Property="Height" Value="Auto" />
                <Setter Property="Template"
                    Value="{StaticResource VerticalScrollBar}" />
            </Trigger>
            <Trigger Property="Name" Value="PART_VerticalScrollBar">
                <Setter Property="Margin" Value="{Binding RelativeSource={RelativeSource AncestorType=ScrollViewer},Converter={StaticResource ThicknessConverter}}">
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
这里有树视图代码
   <telerik:RadTreeView x:Name="radTreeView"   Background="#4E4E4E" Margin="0,0,456,0" Grid.Row="2"  
              ItemsSource="{x:Static local:MainWindow.AnimalCategories}" ItemPrepared="treeView_ItemPrepared" 
                             ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" Grid.RowSpan="2" Grid.ColumnSpan="2">
            <telerik:RadTreeView.ItemTemplate> …我正在使用来自Telerik的NativeScript,我使用调试名称("notiApp")创建了一个应用程序,但现在我无法在启动器和操作栏中更改应用程序的名称.
我已经尝试配置我AndroidManifest.xml的/app/App_Resources/Android/修改标签的android:label属性<application>.
<?xml version="1.0" encoding="utf-8"?>
<manifest>
    <application
        android:label="DESIRED NAME">
    </application>
</manifest>
此外,我尝试更改我的项目的根目录名称为新的应用程序所需的名称.
还有什么我可以做的或者我可以提供的任何其他信息?
先谢谢你们!
telerik ×10
c# ×6
asp.net ×3
javascript ×2
kendo-ui ×2
.net ×1
android ×1
grid ×1
iis-7 ×1
infragistics ×1
jquery ×1
nativescript ×1
performance ×1
radcombobox ×1
radgrid ×1
silverlight ×1
wpf ×1
wpf-controls ×1
xml ×1