User Profile & Activity

zxdluck Member
Page
of 2

Hi Bernard,

I have seen your sample, it runs normally,I think Maybe my html  form has some problems, when I create a new project, the problem doen not reappear, thank you very much!  

Hi Hans,

I have seen the samples, and this helps me to realize the Hierachical mode. Thank you very much!

Hi Yudi,

I just have another problems in UXCalendar,in the doucuments, it said we can add events to UXCalendar by using Events property or EventsSource property. I know how to use EventSource property to add event, but using Event property to add event puzzled me , would you give me a sample that using Event property add event? Thank you very much!

Hi Yudi,

Thanks for your video, I got it ! Thank you very much!

Posted: May 1, 2013 11:25 PM

Hi Bernard,

Thanks for your sample,and depending on your sample,I just know my error now,thank you very much!

 

Posted: April 26, 2013 11:48 PM

Hi Bernard,

Thank you very much for your sample, and I ran it ,it executed successfully, and I know, use DataSource control it can work fine. But my doubt is that I didn't use DataSource control to bind the grid,I just use WebGrid1_InitializeLayout and WebGrid1_PrepareDataBinding above,and set the CategoryID valueList in WebGrid1_PrepareDataBinding, just see the attachement in  previous topic, it cause error, so I wonder if it should use datasource control to bind the grid and valuelist,or it may cause error?  the following is my code,Thank you !

 protected void WebGrid1_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)

        {

            e.DataSource = service.GetProducts();

        }

        protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)

        {

            if (!IsPostBack)

            {

                WebGrid1.RetrieveStructure();

            }

            WebGrid1.RootTable.Columns.GetNamedItem("CategoryID").UseValueListForSorting = ValueListSorting.Yes;

            WebValueList v1 = WebGrid1.RootTable.Columns.GetNamedItem("CategoryID").ValueList;

            if (!v1.IsDataCached())

            {

                DataTable dt = service.GetCategories();

                v1.DataSource = dt;

            }

            //v1.DataMember = "Categories";

            v1.DataTextField = "CategoryName";

            v1.DataValueField = "CategoryID";

        }

        protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)

        {

            WebGrid1.RootTable.Columns.GetNamedItem("CategoryID").UseValueListForSorting = ValueListSorting.Yes;

            WebValueList v1 = WebGrid1.RootTable.Columns.GetNamedItem("CategoryID").ValueList;

            if (!v1.IsDataCached())

            {

                DataTable dt = service.GetCategories();

                v1.DataSource = dt;

            }

            //v1.DataMember = "Categories";

            v1.DataTextField = "CategoryName";

            v1.DataValueField = "CategoryID";

        }

        protected void WebGrid1_CustomFilter(object sender, FilterEventArgs e)

        {

            WebGridFilter filter;

            filter = e.FilterColumns.GetNamedItem("CategoryName");

            if (filter != null)

                e.FilterColumns.Remove(filter);

            WebGridFilter oldFilter;

            oldFilter = e.FilterColumns.GetNamedItem("CategoryID");

            if (oldFilter != null)

            {

                e.FilterColumns.Remove(oldFilter);

                filter = new WebGridFilter();

                filter.Table = oldFilter.Table;

                // remember to set column member field BEFORE FilterType and FilterText

                filter.ColumnMember = "CategoryName";

                filter.FilterType = oldFilter.FilterType;

                filter.FilterText = oldFilter.FilterText;

                e.FilterColumns.Add(filter);

            }

        }

Posted: April 11, 2013 1:14 AM

Hi Yudi,

I got it now,I do it as you told me,it is right now, Thank you very much!

Posted: April 10, 2013 11:00 PM

Hi Yudi,

I have solved the problem now,I didn't set localcopy= true,so it cause the problem, thank you  all the same, I have another problem now.When I install webui,the devforce services install automaticlly,if I want to create a project using Wcf RIA services,but it may auto load the devforce service,how to set it to avoid auto generating devforce service when creating a clientUi MVVM application project??

Posted: April 10, 2013 3:56 AM

Hi Yudi,

The following is my Configuration infomations:

  • Operating system version: Windows 7 Professional Service Pack 1 64-bit.
  • Version of MS Visual Studio: Visual Studio 2010 SP1Rel.
  • Intersoft WebUI Studio version: Intersoft WebUI Studio 2012 R2.
  • DevForce version, for example: DevForce 2010 v6.1.7.0.
  • SqlExpress service enabled
  • What is the name of the project template: Intersoft ClientUI MVVM Application
  • I know that if I use project template like this: Intersoft ClientUI MVVM Data Application (DevForce),and just override the Ado.net Data entity Model as my own Data entity Model,it can work fine,but if I use project template ClientUI MVVM Application, it cause the above errors....

    Hi Surya ,

    OK,I know now,thank you very much for your help!

    All times are GMT -5. The time now is 3:44 AM.
    Previous Next