iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
<ISWebInput:WebInput ID="WebInput1"> <ClientSideEvents OnFocus="WebInput1_OnFocus"> </ClientSideEvents> </ISWebInput:WebInput>
In JavaScript code:
function WebInput1_OnFocus(controlId) { var WebInput1_dd = document.getElementById(controlId + "_dd"); WebInput1_dd.click(); }
I attached the page regarding this work around as well.Hope this helps.Thank you.Regards,Hans K.
Hello,Thank you for your reply.It seems you haven’t yet used the latest / current WebDesktop version, which is WebDesktop v4.I’m afraid that WebDesktop v3 has now been discontinued for a year and there are not going to be any further updates for it.Please kindly try to use the latest WebDesktop v4 on your end.I apologize for any inconvenience.Regards,Hans K.
Thank you for the question.I apologize for any inconvenience this problem may have caused you.I can reproduce the error message on my end as well.I create a work around sample to resolve this issue that perhaps similar with your current scenario.First, let me explain a little about the sample.In this sample I add one WebGrid & two WebCombo. I bind those controls to access data source control (Northwind data base).The WebGrid was bound to Order Details table; the first WebCombo (CategoriesWebCombo) bind to Categories table; the second WebCombo (ProductsWebCombo) bind to Products table.In ProductID WebGrid’s column, I set the “EditType” to “WebComboNET” and “WebComboID” to “ProductsWebCombo”.In CategoriesWebCombo, I add OnAfterItemSelected client side event:
function CategoriesWebCombo_OnAfterItemSelected(controlId){ var ProductsWebCombo = ISGetObject("ProductsWebCombo"); //clears the data list in ProductsWebCombo ProductsWebCombo.NeedClearList = true; ProductsWebCombo.IsDirty = true; return true; }
In ProductsWebCombo, I set the Set “AllowAutoQueryHandler” property to “False”. Then I add “OnBeforeRequestclient” side event:
function ProductsWebCombo_OnBeforeRequest(controlId, action) { var CategoriesWebCombo = ISGetObject("CategoriesWebCombo"); if(action == "LoadData") { if (CategoriesWebCombo.Value == "" || CategoriesWebCombo.Value == null) { alert("Please select a value for the following webcombo input : " + CategoriesWebCombo.Name); return false; } } return true; }
And I add “OnInitializeDataSource” server side event:
protected void ProductsWebCombo_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e) { OleDbConnection oConn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Northwind.mdb;Persist Security Info=True"); oConn.Open(); string queryText = ""; DataTable dt = new DataTable("Products"); if(CategoriesWebCombo.Value != "" && CategoriesWebCombo.Value != null) { queryText = "CategoryID = " + CategoriesWebCombo.Value; OleDbDataAdapter da = new OleDbDataAdapter("Select * From Products Where " + queryText, oConn); da.FillSchema(dt,SchemaType.Mapped); da.Fill(dt); e.DataSource = dt; } ProductsWebCombo.DataMember = "Products"; ProductsWebCombo.DataTextField = "ProductName"; ProductsWebCombo.DataValueField = "ProductID"; }
With this work around, the ProductsWebCombo will show data based on the selected item in CategoriesWebCombo.Please kindly try to select an item in CategoriesWebCombo, and then try focus on ProductID WebGrid’s column on Add New Row section.Hope this helps.Regards,Hans K.
Hello,Thank you for the question regarding UXScheduleView.Currently there is no such as SelectedItem property in UXScheduleView.
I apologize for the inconvenience.Meanwhile you could this example work around below for this scenario.Based on your information I try to modify one of UXScheduleView samples from ClientUI Control Solution Samples, Month View page.The following steps are how I implement the example work around:1. In “MonthViewViewModel.cs” page (under Intersoft.ClientUI.Samples.UXScheduleView -> ViewModels folder), I create a “MyCalendar” object.
private DateTime _myCalendar; public DateTime MyCalendar { get { return _myCalendar; } set { if (_myCalendar != null) { _myCalendar = value; OnPropertyChanged("MyCalendar"); } } }
2. Then in “Default.xaml.cs” page (under Intersoft.ClientUI.Samples.UXScheduleView -> Views -> MonthView folder), I add / create a new event handler that similar with “SelectedItem Property”, in this work around I use “MouseLeftButtonDown” event.
public Default() { InitializeComponent(); // Add new event handler SampleControl1.MouseLeftButtonDown = new MouseButtonEventHandler(SampleControl1_MouseLeftButtonDown); }
3. In then “MouseLeftButtonDown” event (in Default.xaml.cs), I try to get the selected MonthViewCell object using this code below:
// Get the MonthViewCell object UXScheduleMonthViewCell monthViewCell = Intersoft.Client.Framework.Utility.FindVisualAncestor(e.OriginalSource as DependencyObject, typeof(UXScheduleMonthViewCell)) as UXScheduleMonthViewCell;
4. After that I try to get the ViewModel of this as well.
// Get the ViewModel of this view MonthViewViewModel vm = monthViewCell.DataContext as MonthViewViewModel;
5. The last step is I set the “MyCalendar” object with DisplayDate value from MonthViewViewModel.
vm.MyCalendar=monthViewCell.DisplayDate;
Please kindly have review on the attached file to see result.Hope this helps.Regards,Hans K.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname