コード例 #1
0
ファイル: ViewCourses.cs プロジェクト: quintonn/QBicSamples
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Course Type", "CourseType");
            columnConfig.AddStringColumn("Presenter", "Presenter");
            columnConfig.AddStringColumn("Venue", "Venue");
            columnConfig.AddStringColumn("Region", "Region");
            columnConfig.AddStringColumn("Country", "Country");
            columnConfig.AddDateColumn("Start Date", "StartDate");
            columnConfig.AddStringColumn("Course Id", "CourseId");

            columnConfig.AddLinkColumn("Attendees", "Id", "Attendees", MenuNumber.ViewAttendees);

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCourse);

            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?", MenuNumber.DeleteCourse));
        }
コード例 #2
0
ファイル: SampleView.cs プロジェクト: quintonn/QBicSamples
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("String Value", "StringValue");
            columnConfig.AddStringColumn("Number Value", "NumberValue");
            columnConfig.AddDateColumn("Date Value", "DateValue");
            columnConfig.AddStringColumn("Long Value", "LongTestValue");
            columnConfig.AddStringColumn("Category", "Category.Description"); // You can reference sub fields in the column name field

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.SampleEdit);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete item?")
            {
                OnConfirmationUIAction = MenuNumber.SampleDelete
            });
        }
コード例 #3
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("String Value", "StringValue");
            columnConfig.AddStringColumn("Number Value", "NumberValue");
            columnConfig.AddDateColumn("Date Value", "DateValue");
            columnConfig.AddStringColumn("Long Value", "LongTestValue");
            columnConfig.AddStringColumn("Category", "Category");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.AdvancedEdit);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete item?")
            {
                OnConfirmationUIAction = MenuNumber.AdvancedDelete
            });
            columnConfig.AddButtonColumn("Details", "Id", "...", MenuNumber.AdvancedDetails, new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Hide,
                Conditions = new List <Condition>()
                {
                    new Condition("Category", Comparison.Equals, "Special") // Can be used to hide buttons for certain types of data
                }
            });
        }