标签: infragistics

使用bindingsource将正确位置的新行添加到用户已排序的wingrid

我有一个使用bindingSource的Infragistics UltraGrid.

如果我在绑定列表中添加一个新对象,它会在网格底部添加一行,如果没有用户定义的排序则可以.

问题是,如果用户单击列标题对网格进行排序,是否有办法让新行以正确的排序顺序显示而不是始终位于底部?

重新排序每个插入的所有行太昂贵.

sorting infragistics ultrawingrid bindingsource

3
推荐指数
1
解决办法
6129
查看次数

Infragistics UltraGrid:如何在用户从下拉列表中选择后强制执行CellUpdate事件

Infragistics UltraGrid:列具有自动完成的下拉列表.当用户从列表中选择一个项目而不必等待他按Enter键或单击另一个单元格时,如何强制执行CellUpdate.

c# infragistics ultrawingrid

3
推荐指数
1
解决办法
1万
查看次数

怎样才能在超级复合材料柱上"分组"?

在控件上出现一个功能,说"将列标题拖到该列的gorup".我能以编程方式执行此操作吗?是否有任何属性或我需要嵌入SQL语句?

谢谢,孙

c# infragistics

3
推荐指数
1
解决办法
1万
查看次数

如何在XamDataGrid中实现导致多列记录过滤的搜索?

我试图在XamDataGrid上实现搜索(Ctrl + F)功能.如何以编程方式在网格上调用记录筛选,搜索多列中的内容并仅显示与搜索匹配的列?

wpf infragistics xamdatagrid

3
推荐指数
1
解决办法
5166
查看次数

如何在外部点击时从Infragistics超网格单元格中删除焦点?

我在Windows窗体中有一个infragistics ultragrid控件.外面有一个"添加新"按钮,可以在网格中插入新行.

我遇到的问题是,当我点击网格外的按钮时,当我在网格内编辑一个单元格时,单元格不会失去焦点.因此,编辑的新值不会更新到其基础数据源.

我需要此单元格失去焦点并更新它的基础数据源,因为"添加新"按钮创建一个新行,该特定列具有默认值,该默认值是根据前一行的编辑值计算的.

关于如何疏散超格子细胞的任何想法?这种情况也可能适用于普通的GridView.

infragistics ultrawingrid winforms

3
推荐指数
1
解决办法
7228
查看次数

Infragistics网格的GET返回空响应

我正在尝试使用Infragistics的网格来显示我的数据库中的项目列表.我正在使用带有Razor引擎的MVC应用程序中的实体框架的代码优先方法.除了Infragistics网格之外,视图中的每个东西都能正常工作.

这是我的家庭观点:

@using Infragistics.Web.Mvc
@model IEnumerable<BusinessModel.Models.TestPlan>

@{
    ViewBag.Title = "Home";
}

@( Html.Infragistics().Grid<BusinessModel.Models.TestPlan>(Model)
.AutoGenerateColumns(true)
.DataSourceUrl(Url.Action("igListTestPlan"))
.DataBind()
.Render())
Run Code Online (Sandbox Code Playgroud)

这是我的控制器:

[GridDataSourceAction]
public ActionResult igListTestPlan()
{
    return View(service.getListTestPlan());
}
Run Code Online (Sandbox Code Playgroud)

使用firebug我可以清楚地看到请求是以状态代码"200 OK"发送的,但响应选项卡是空的.它还会导致控制台出错(在infragistics.js中):

Uncaught TypeError: Cannot read property 'length' of undefined 
Run Code Online (Sandbox Code Playgroud)

我想这是因为空的反应.

我尝试了什么:

调试我的控制器显示我return View(service.getListTestPlan());没有返回一个空列表:我有3个有效的项目.

我也试过Html.Infragistics().Grid<BusinessModel.Models.TestPlan>(Model__.ToList())但没有改变.还Html.Infragistics().Grid(Model)告诉我我的参数无效

提前致谢.

asp.net-mvc infragistics razor ignite-ui iggrid

3
推荐指数
1
解决办法
2570
查看次数

获得ultragridcolumn的实际宽度

如何在UltraGrid中准确地获得扩展的UltraGridColumn宽度?

我有以下Windows窗体:

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        IEnumerable<string> test = new List<string>{DateTime.Now.ToString()};
        this.ultraGrid2.DataSource = test;
        this.ultraGrid2.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;
    }

    private void button1_Click(object sender, EventArgs e)
    {
        MessageBox.Show("The column width is " + this.ultraGrid2.DisplayLayout.Bands[0].Columns[0].Width);
    }
}
Run Code Online (Sandbox Code Playgroud)

形式是什么样的

无论我如何操纵或调整表单.在width仍然给出了同样的默认值.只有我调整列的大小才会改变.在这种情况下,我认为宽度将接近表单本身的x大小.

c# infragistics ultrawingrid winforms

3
推荐指数
1
解决办法
1579
查看次数

如何在单击按钮时重新绑定igGrid igniteUI控件中的数据?

我在ASP.NET MVC3应用程序中使用Infragistics(Ignite UI)控件.我有网格,我已经绑定'客户'数据.工作良好.现在我有按钮.点击后我拨打ajax电话.在控制器中,我编写的查询只选择"客户"数据的一部分.我使用json返回数据.我尝试使用以下方法重新绑定它:

$("#CustomerGrid").igGrid("dataSourceObject", returnData);    
Run Code Online (Sandbox Code Playgroud)

但网格继续显示旧数据.它没有刷新.

asp.net-mvc infragistics ignite-ui iggrid

3
推荐指数
1
解决办法
6687
查看次数

jQuery 无法在调用 ignite ui 过滤网格方法的初始化错误之前调用方法

我正在尝试从他们的小提琴示例中引用 infragistics ignite ui grid 上的过滤器方法。似乎在他们的小提琴上表现正常,但在我的 angularjs 应用程序上表现不佳。你可以在这里找到小提琴 - http://jsfiddle.net/40xgtcry/

在我的 angular js 应用程序中,我正在使用一些虚拟数据在 angular 指令中初始化网格,然后我通过调用 igGridFiltering 方法进行跟踪。

define(['directives/directives', 'northwind'],
    function(directives) {
        directives.directive('gridView', function () {
            return {
                restrict: 'EA',
                scope: true,
                link: function (scope) {
                    scope.$on("InventoryDataReady", function  (){
                           // $( '#' + scope.gridSettings.targetId ).igGrid(scope.gridSettings);
                        $('#' + scope.gridSettings.targetId).igGrid({
                            autoGenerateColumns: false,
                            columns: [
                                { headerText: "Employee ID", key: "EmployeeID", dataType: "number" },
                                { headerText: "First Name", key: "FirstName", dataType: "string" },
                                { headerText: "Last Name", key: "LastName", dataType: "string" },
                                { …
Run Code Online (Sandbox Code Playgroud)

infragistics angularjs ignite-ui

3
推荐指数
1
解决办法
2083
查看次数

最初折叠所有节点Infragistics IgTree

我使用以下Infragistics组件来查看分层数据.http://www.igniteui.com/tree/drag-and-drop-single-tree

我已经初始化了如下所示的树视图,以查看最初扩展的树的所有节点.有人可以建议我,如果我错过任何选项显示最初折叠的所有节点?

 $("#tree").igTree({
                    checkboxMode: "off",
                    singleBranchExpand: true,
                    nodeClick: function (evt, ui) {

                        if (ui.node.data.Folder == "") {
                            var agreements = [];
                            var entry = [];

                            entry.push(ui.node.data.AgreementNbr);
                            entry.push(ui.node.data.ExternalDescription);
                            entry.push(ui.node.data.Description);
                            entry.push(ui.node.data.EffDate);
                            entry.push(ui.node.data.ExpDate);
                            entry.push(ui.node.data.ReleaseStatus);

                            agreements.push(entry);    

                            $('#example').DataTable({
                                responsive: true,
                                columns: [
                                { title: "Agreement Number" },
                                { title: "External Description" },
                                { title: "Description" },
                                { title: "Effective Date." },
                                { title: "Expiry Date" },
                                { title: "Release Status" }
                                ],
                                data: agreements,
                                destroy: true,
                                processing: true,
                            });
                        }
                        else {

                            var output …
Run Code Online (Sandbox Code Playgroud)

javascript jquery infragistics ignite-ui igtree

3
推荐指数
1
解决办法
637
查看次数