User Profile & Activity

Erwin Sanders Member
Page
of 11

Hello Sachin,

This issue's been addressed under ASPNET-368. In the meantime the best workaround would be using VistaCalendar to replace the CalendarCombo. First set the EditType to Custom, then set the CustomEditorName to VistaCalendar, and change the FilterEditType value to SameAsEditType. Here's the example:

...
if (MyColumn.Name == "RequiredDate" || MyColumn.Name == "ShippedDate" || MyColumn.Name == "OrderDate") {
    MyColumn.EditType = EditType.Custom;
    MyColumn.CustomEditorName = "VistaCalendar";
    MyColumn.FilterEditType = FilterEditType.SameAsEditType;
}
...

 

Hope this helps.

Best Regards,
Erwin Sanders

Hi Sachin,

Thanks for the sample! I investigated it and this is a problem from our internal code. I reported this to our dev team and they delivered with a nightly build hotfix which I attached it below. To apply it manually, you can visit our page here.

Btw, looking at your code, our WebCalendar uses a display block style, hence your center aligned style won't be applied. So I suggest you put it in another div with display: inline-block style.

Hope this helps.

Best Regards,
Erwin Sanders

Hello,

Thank you for the additional information about postback. I managed to modify the function to suit your needs. Using ISPosLib.getTopW3C, it's possible to get the node position value for the scrollTop property. I also substract it with the WebTreeView frame element itself in case you aren't placing the WebTreeView on top of the page.

I attached the modified sample for you.

Hope this helps.

Best Regards,
Erwin Sanders

Yes it's the same as mine! Thanks for the info, Luciano! I'm very glad that it works out fine for you in the end. Should you have any more questions, please feel free to ask us again. And I'll keep you updated on that hierarchical issue. Thanks again for your cooperation :)

Best Regards,
Erwin Sanders

Hi Luciano, I'm still struggling to replicate that WebGrid Designer issue. I tried creating new Web Site, embedded the WebGrid, opened the Design tab, right clicked the WebGrid, and chose WebGrid Designer. But still, no issues occur. I'm using VS 2015 Enterprise, WebGrid 10, and WebUI Framework 3.0.5000.972. Have you tried run your VS as admin? Did this problem occur suddenly one morning without any changes or configuration that you did?

As for the hierarchical issue, I believe there would be fixes by next week. Please kindly wait and sorry for any delay.

Best Regards,
Erwin Sanders

Hello,

Quick update on that Calendar height issue. It doesn't happen in the sample that you sent, so then I tried using the one from Live Experience that you told us. And from that Live sample, this issue is caused by determining the line height style in WebCalendar's div. After I removed it, it works fine.

Hope this helps.

By the way, is this CalendarCombo issue the same as you reported here? I did reply it on that thread though. If so, please continue in that thread as well.

Best Regards,
Erwin Sanders

Hello,

That's odd, it works everytime on my end though. I'm using WebTreeView 2 and had it tested on Chrome and IE 11. Have you modified the function to suit your needs? Anyway, I'm sending you a webform showing you how I implement the function itself.

Had you find any trouble with my sample, please let me know.

Best Regards,
Erwin Sanders

Hello Shailendra,

Here's a snippet code to fill your request. In this code, it's also possible to expand only the searched node if the WebTreeView is in collapsed mode.

function btn_Click() {
    var txt = document.getElementById("TextBox1").value;
    var treeview = ISGetObject("WebTreeView1");
    var frameelement = treeview.GetFrameElement();

    //use this to expand searched node's parents
    var node = treeview.FindNodesByText(txt)[0];
    var parent = node.Parent;
    while (parent && parent.Expand) {
        parent.Expand();
        parent = parent.Parent;
    }

    //this is for showing the searched node
    node.Select();
    frameelement.children[0].scrollTop = ISPosLib.getTopW3C(node.GetElement());
}

Hope this helps.

Best Regards,
Erwin Sanders

Hello,

actually the multiple selection issue has nothing to do with the js. So if you had updated the ISNet.WebUI.WebEssentials.dll, it should be fine. Have you ensured that you updated the Reference in your project as well? If you only updated the bin, then had the project compiled, the assemblies in the bin folder would get replaced.

Best Regards,
Erwin Sanders

Hello, unfortunately we only fix bugs and other issues on our latest version of a product. So, to answer you question, there won't be any fixes for WebUI 2015 R1.

Best Regards,
Erwin Sanders

All times are GMT -5. The time now is 1:57 AM.
Previous Next