User Profile & Activity

Hans Kristian Member
Page
of 69
Posted: May 31, 2012 9:54 PM

Hello,

I am sorry, but i haven't heard any news about the progress.
Currently, we are focusing to release our new products.
It would be released in the early of june.
Perhaps, it would be fixed after the release.
I will  keep inform you if I got news from them.

Thank you for your understanding

Regards,
Hans.

Hello,

You could use “OnDirty” client side event in WebInput.
However, you should use “setTimeout” function in that event.
Here’s the example snippet code, how to use “OnDirty” event:

function WebInput1_OnDirty(controlId, dirtySourceType) {
    var WebInput1 = ISGetObject(controlId);
    window.setTimeout(function () { Validate(WebInput1.GetValueData(true)); }, 300);
    return true;
}

function Validate(value) {
    // your validation
}
Hope this helps.
Thank you.
Regards,
Hans.

 

Hello,

I apologize for the inconvenience.
If you didn’t get any update for the framework, it means you already have the latest framework version.

Then please ensure your framework version in your project bin folder, using the latest framework version.
However, if you still get the same issue, please tell me your framework version.

Thank you.
Regards,
Hans.

Hello,

I apologize for the inconvenience.
If you didn’t get any update for the framework, it means you already have the latest framework version.

For “ISNet.WebUI.ISNetControl.get_IsMvc()” error, please ensure your framework version in your project bin folder, using the latest framework version.
However, if you still get the same issue, please tell me your framework version.

Thank you.
Regards,
Hans.

Posted: May 27, 2012 10:50 PM

Hello,

I’m sorry for the late response and I apologize for the inconvenience.
I’ve tried to make a sample project that maybe similar with your scenario.
I made a simple table, called “Sorting” table. The table two fields, ID field (as primary key) & Codes field.
I added data that maybe similar with your scenario. (SortingTable.png)

I bind the table to WebGrid and then I tried to sort the Codes column.
However, it’s works fine on my end. (ResultSorting1.png & ResultSorting2.png)

I attached the database and the sample project, in order to make you easier understand about my sample.

Would you mind to tell me how to replicate this issue? There may be a setting the I miss, in my sample.
Or could you send me your sample project that replicate this issue?

Thank you.
Regards,
Hans.

Hello,

Yes, you could use this code. However, you should modify this code (the validation) according to your needs.

I try to make an edit and leave the cell without making any changes, by using example project that I’ve gave to you in earlier post.
But unfortunately, the value didn’t turn into “null”.

Would you mind to tell me how to replicate this issue? There may be a setting that I miss, in my example project.

Thank you.
Regards,
Hans.

Hello,

To resolve this issue, please replace the code in OnAfterExitEditMode to this code below:

function WebGrid1_OnAfterExitEditMode(controlId, tableName, editObject) {
    var WebGrid1 = ISGetObject(controlId);
    var ColumnName = editObject.ToCellObject().Name;

    if (ColumnName == "UnitPrice") {
        var TextPrice = editObject.element.value;
        var IntPrice = parseFloat(TextPrice);
        if (IntPrice >= 100 || IntPrice < 0) {

            editObject.ToCellObject().SetText("0", true);
            editObject.ToCellObject().SetValue("0");
            alert("Invalid UnitPrice Value");
            return false;
        }
        else {
            editObject.ToCellObject().SetText(TextPrice.toString(), true);
            editObject.ToCellObject().SetValue(TextPrice.toString());
            return true;
        }
    }
}

Hope this helps. Thank you.
Regards,
Hans.

Hello,

To apply this scenario, you should set DataFormatString to “##.##” and do some validation using OnAfterExitEditMode client side event.
I’ve made a sample project that similar with this scenario.
In my sample, I use Northwind.mdb database and Products table. Then, at UnitPrice column, I set DataFormatString to “##.##”.

And here the validation code in WebGrid’s OnAfterExitEditMode event:

function WebGrid1_OnAfterExitEditMode(controlId, tableName, editObject) {
    var WebGrid1 = ISGetObject(controlId);
    var ColumnName = editObject.ToCellObject().Name;
    if (ColumnName == "UnitPrice") {
        var TextPrice = editObject.ToCellObject().Text;
        var IntPrice = parseInt(TextPrice);
        if (IntPrice >= 100 || IntPrice < 0) {
            editObject.ToCellObject().SetText("0");
            editObject.ToCellObject().SetValue("0");
            alert("Invalid UnitPrice Value");
            return false;
        }
        else {
            return true;
        }
    }
}

I attached my sample as well, in order to make you easily understand about my sample.

Thank you.
Regards,
Hans.

Hello,

My apologize for the inconvenience.
To publish your site, make sure you using your  RuntimeLicenseKey, because  RuntimeLicenseKey is different with Design Time LicenseKey.
Let me explain a little about RuntimeLicenseKey and Design Time LicenseKey.

- Design Time license key is a key required in development environment to change the trial suite into full-licensed. This key is obtained when you purchase Intersoft ASP.NET products and it is used only for installation purpose in development environment. You will be adviced to input the Design Time license key using License Manager in order to use the full version of Intersoft products.

- Runtime license key is a key required when you deploy the project that includes Intersoft products. This key is used to license Intersoft products for deployment purpose in production/deployment environment. You will be adviced to input the Runtime license key during deployment using Deployment Manager (for ASP.NET products) or Runtime Application Licensing (for Silverlight/WPF products).

For further information about Runtime LicenseKey, please follow this link below:
http://www.intersoftpt.com/Support/WebUIStudio/Tutorial/Text/What-is-Design-Time-license-key-and-Runtime-license-key/

To handle general licensing issue on deployment phase, please follow this link below:
http://www.intersoftpt.com/Support/WebUIStudio/Tutorial/Text/General-licensing-issue-on-deployment-phase/

However, if you still get the same issue, please let me know your RunTime-License Key.
I would also need your UserID & Password in http://dev2.intersoftpt.com.
I need to confirm whether your license key  is correct or not.

Thank you.

Regards,
Hans

Posted: May 21, 2012 9:00 PM

Hello,

I'm glad to hear that you have finally resolved your issue.
If you have any issues or questions, please don't hesitate to send your inquiry to us and we will be more than happy to assist you again.

Regards,
Hans.

All times are GMT -5. The time now is 8:07 PM.
Previous Next