devexpress

How to AspxMenu fill from xml file

狂风中的少年 提交于 2019-12-12 01:30:04
问题 On my page I have two AspxMenu.Click on Master Menu correspondent value will show on Child menu XML syntax: <Demo> <ClientCompanyId CompanyId="1"> <MyMenu> <module Text="Basic Settings" ModID="Mod1" ModuleID="1" MenuType="0" Perm="False"> <menu Text="Forms" MID="1-1" ParentID="Mod1" MenuDescription="Mod" ModuleID="1" MenuType="0" Perm="False"> <Leaf Text="LookUp" MID="1-3" ParentID="1" MenuDescription="" ModuleID="1" MenuType="0" Perm="False" LeafNode="true" TargetUrl="" ModuleMenuID="1-3"> <

ASPxGridView, ITemplate, and Eval

╄→尐↘猪︶ㄣ 提交于 2019-12-12 00:23:35
问题 How can I create a template in c# for an AXPxGridViewDataTextColumn without any markup and with using Eval to display the DataItem value? -The problem that I am having is that the string "<%#Eval("dataTableField1")%>" shows up in the GridView for every row instead of the appropriate values. Here is an example of my attempt: public override void DataBind() { ... GridViewDataTextColumn myCol = new GridViewDataTextColumn(); myCol.Caption = "col1"; myCol.FieldName = "dataTableField1"; myCol

How to bind panels with controls in devexpress docklayoutmanager

落花浮王杯 提交于 2019-12-11 20:37:28
问题 File Name SampleProject My xaml file Mainwindow.xaml---------- <Window x:Class="SampleProject.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking" Closing="Window_Closing" Title="MainWindow" Height="800" Width="800" WindowState="Maximized"> <Grid> <dxdo:DockLayoutManager x:Name="docklayoutmanager1" dxdo:RestoreLayoutOptions.RemoveOldPanels="False"

How to add a Row at Runtime to Devexpress Gridview

梦想的初衷 提交于 2019-12-11 20:15:05
问题 I'm using devexpress's gridview-control for showing information about files. You have to select a folder, and then the gridview is going to show the information, like this: name|date|size but I can't get it done to add a new row to the gridview. The name of it is gdFiles for example, but what would the command for adding a new line be? Something like gdFiles.insert(x,y,z)? 回答1: You can always use methods of your data source to add, delete and modify individual rows if the data source supports

e.GetListSourceFieldValue returns null in the CustomUnboundColumnData event handler

陌路散爱 提交于 2019-12-11 19:43:16
问题 I am using DevExpress control within an ASP.NET MVC 4 project. I am using unbound columns in the GridView extension for ASP.NET MVC. In the CustomUnboundColumnData event handler, the e.GetListSourceFieldValue always returns null for me. I then tried getting the value directly from the model instead of calling this method (please see the commented line just above the call to the method) but even though that worked, it had side-effects, which I won't get into just now. I am using ASP.NET MVC 4

is there off-the-shelf convenient way to filter by a group column in XtraGrid GridView?

懵懂的女人 提交于 2019-12-11 17:09:36
问题 I know I can invoke filter editor and so on. But this is not a convenient thing, especially for non technical users. Can GridView continually display a nice filter field for a group column as it does for normal columns? I know I can roll my own via filtering on a hidden column and so on, but that's a lot of work. Maybe there is a built-in way to do this instead? 回答1: Set the GridView.OptionsView.ShowGroupedColumns property to true, the group column will be also shown in the column header

Is It Possible to Add Multiple Repository Items in a Gridview Cells using DEVEXPRESS?

为君一笑 提交于 2019-12-11 16:33:28
问题 I have Datatable and I have to add Two repository items to same cell DataTable dtbl = null; public Form1() { InitializeComponent(); dtbl = new DataTable(); dtbl.Columns.Add("T1"); dtbl.Columns.Add("T2"); dtbl.Columns.Add("T3"); dtbl.Rows.Add("Test1", "Test2", "Test3"); dtbl.Rows.Add("Test4", "Test5", "Test6"); dtbl.Rows.Add("Test7", "Test8", "Test9"); gridControl1.DataSource = dtbl.DefaultView; gridView1.CustomRowCellEdit += new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler

access object from javascript DevExpress

做~自己de王妃 提交于 2019-12-11 16:26:15
问题 I wonder why I cant access Object by ClientInstanceName from javascript. example: function NextStep(pageControl) { currentStep = pageControl.GetActiveTabIndex(); switch (currentStep) { case 0: selectedRowsCount = GridViewClient.GetSelectedRowCount(); break; } The error is: There is no definition for GridViewClient; but ClientInstanceName is set to GridViewClient Case is that I have thos grid on other tabs in ASPxPageControl so that these aren't visible but What I want to do is to refresh one

Databinding within Cell templated Devexpress:GridControl not working

依然范特西╮ 提交于 2019-12-11 16:01:38
问题 I try to bind a List property SubscribedSymbols within a class object StrategySubscription as part of List to comboboxes in each cells of a specific column in a Devexpress GridControl but cannot get the data binding to work. The auto column generator works and populates values onto the grid. So, I am sure the data exists. I attached the xaml code and data object as well as a screenshot of the current output. Can you please help to get the data binding to work correctly? I want the collection

How to pass parameters to devexpress XtraReport from combobox

让人想犯罪 __ 提交于 2019-12-11 15:42:00
问题 I have a form that contains 3 comboboxes and a button like shown below and a report that containes 3 parameters that are bounded to richtext i used the following code for this process when clicking the button Print but parameters aren't passed and richtext fields are empty private void btnPrint_Click(object sender, EventArgs e) { // Create a report instance. var report = new XtraReport1(); // Obtain a parameter, and set its value. report.ClassName.Value = cmbClass.SelectedText; report