User Profile & Activity

Hans Kristian Member
Page
of 69
Posted: July 14, 2014 9:58 PM
Hello,

I’m glad to hear that this work around suitable for you.

Should you have further question, please do not hesitate to contact us.

Thank you very much.

Regards,
Hans K.
Posted: July 14, 2014 4:17 AM
Hello,

Thank you for your question.

WebInput doesn’t have time picker control only.

There is work around to show the DateTime dropdown on focus event.

Here’s the example snippet code how to show the DateTime dropdown:

In WebInput, I add OnFocus client side event:
<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 question.

By basically, WebGrid doesn’t have feature to print after exporting.
Perhaps you could create your own JavaScript code to handle Print function.

I am sorry for the inconvenience.

Regards,
Hans K.
Hello,

Thank you for your question.

By default, WebGrid didn’t have feature to export the Hierarchical WebGrid with its hierarchical structure.
However you could export the Root table and Child table separately.
But WebGrid only export the selected Child table from a row (one row) in Root table, not all Child table rows.

For further information regarding exporting WebGrid data from JavaScript, please kindly follow this link below:
http://www.intersoftpt.com/Support/WebGrid/KB/Export-WebGrid-Data-Using-Javascript/

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.

Posted: July 11, 2014 4:57 AM
Hello,

Perhaps you could set the “EditType” property to “WebComboNET” and then set the “NewRowEditType” to “SameAsEditType”.

However, if this configuration doesn’t suitable with your current scenario, please kindly provide me more detail your scenario, perhaps I can help you a work around for your scenario.

Thank you for your help.

Regards,
Hans K.
Posted: July 11, 2014 4:22 AM
Hello,


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.

Based on your post, I try to enable all Exceptions in Visual Studio 2010, and then I try to run one of WebDesktop Solution Samples, SimpleDesktop.aspx page.
But unfortunately, I didn’t get any error message on my end.

Could you please provide me information regarding your current WebDesktop assembly version?

I made a video about how I enable the Exceptions in Visual Studio 2010 and how I run the sample (SimpleDesktop.aspx page).

Please kindly have review on the video and let me know if there is a missing step while I am trying to attempt your issue.

Please forgive me for lack of understanding about the reported problem.

Regards,
Hans K.
Posted: July 10, 2014 3:25 AM

Hello,

Thank you for the question regarding UXScheduleView.

Currently there is no such as SelectedItem property in UXScheduleView.

I have forward this scenario as a feature request to the developer team. I will let you know if there is an update regarding this feature.

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.

Hello,

Thank you for the question regarding Crosslight.

For further information regarding Crosslight’s update, please kindly follow this link below:
http://developer.intersoftpt.com/display/crosslight/Crosslight+2.0+Update+2+Release+Notes

And information regarding updating Crosslight, you could follow this link below:
http://developer.intersoftpt.com/display/crosslight/Updating+Crosslight

Hope this helps.

Regards,
Hans K.
All times are GMT -5. The time now is 3:26 AM.
Previous Next