User Profile & Activity

Sachin Jain Member
Page
of 5

Hi,

Chrome with new version introduced a new problem.

On click on any cell, cell text ended with space which tuns into "\t" into database while save. which is causing issues. (Unable to attach pictures because of issue into editor)
NOTE: Chrome earlier version (67.0) is working fine.

I am using Webgrid product version 10.0.

Please give us a solutions.

Regards

Sachin Jain


Hi,

Please reply as I required to do best fit columns at client side(javascript).

Request had made one year ago, Please do reply ASAP.

when i set to LayoutSettings.AutoFitColumns = true/false does not work.

Regards

Sachin Jain

Hi Yudi,

Thanks for providing link to understand default behaviour of clipboard for Chrome and Mozilla browser. Although It seems that your provided link for granting javascript access to clipboard is not workable now.
I was searching clipboard functionality for chrome. I landed on 2015's sample page created by Matt Gaunt [https://developers.google.com/web/updates/2015/04/cut-and-copy-commands]. I used sample provided by Matt and found the copy on event is working in Chrome browser.

I put aspx page's code by slightly changing class name etc. On click on button text is copied in clipboard. May be intersoft already started support. if it is still not supporte then I believe that intersoft can use similar type of functionality to support Copy in Mozilla and chrome.

thanks and regards
Sachin




<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebGrid10OnFirefoxAndChrome.WebForm2" %><!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript"> $(document).ready(function () { var copyEmailBtn = document.querySelector('.button'); copyEmailBtn.addEventListener('click', function (event) { // Select the email link anchor text var emailLink = document.querySelector('.largefont'); var range = document.createRange(); range.selectNode(emailLink); window.getSelection().addRange(range); try { // Now that we've selected the anchor text, execute the copy command var successful = document.execCommand('copy'); var msg = successful ? 'successful' : 'unsuccessful'; console.log('Copy email command was ' + msg); } catch (err) { console.log('Oops, unable to copy'); } // Remove the selections - NOTE: Should use // removeRange(range) when it is supported window.getSelection().removeAllRanges(); }); }); </script> <style type="text/css"> .largefont { color: #0066FF; font-family: arial; font-size: 18px; } .button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 1px 1px; text-align: center; text-decoration: none; display: inline-block; font-size: 10px; } </style> </head> <body> <form id="form1" runat="server"> <div> <p><span class="largefont">Lorem Ipsum</span></p> <p> <button class="button">Click to Copy text</button></p> </div> </form> </body> </html>






Hi Yudi,
              The provided link worked. Thanks for help.
               The issue of Copy cell still exist for Chrome and Firefox. Is any solution exist for this also ? In IE copy cell and copy Row options working properly but not in FireFox and Chrome. For some reason it is also not working for live sample also. 
               I am attaching the screenshot for your reference. It would be good if this feature support Chrome and FireFox also.
regards
Sachin
Posted: February 27, 2017 3:03 PM
Hi Yudi,
Sorry for delay in reply. Thanks for your sample.
We found that your sample is working properly on Firefox and Chrome. We checked detail and found that sample have IsNet.dll,ISNet.WebUI.dll and ISNet.WebUI.Resources.dll version as 3.0.5000.976; we were using 3.0.5000.975 which we got as hotfix; earlier version was 3.0.5000.969 .

Can you provide latest hotfix dll's link ?

We also found that for some reasons copy this cell/row/table are not working fo Chrome/Firefox for your provided sample or on live sample site; an alert appears(The function is not natively supported by the browser.). I attached screenshot of sample. Could you suuggest that how can we fix this because this feature is already working on IE?


regards
Sachin
 
Hi,
I used OnColumnResize client event to get width of all columns as

<ClientSideEvents OnColumnResize="TestresizeColumn" />

function TestresizeColumn(controlId, tblName, rowIndex, cellIndex, cellEl) {
var WebGrid1 = ISGetObject(controlId);
var ColumnHeaderElement = WebGrid1.GetRootTable().GetElement(WG40.COLHEADER, WG40.HTMLTABLE);
var SelectedCell = ColumnHeaderElement.rows[0].cells;
for( i=1; i<SelectedCell.length; i++ )
{
alert(SelectedCell[i].colName + ' ' + SelectedCell[i].clientWidth);

}

return true;
}

but it gave use clientwidth before column reszied.
As per documentation
Description
Specifies the client-side function to be invoked when a column is being resized.


Would you mind to suggest some other event or way which can be use for get modified column's width after column is resized?   Client requires to have same column width which he/she resized in last visit.
regards
Sachin


Posted: November 11, 2016 9:44 AM
 Hi Yudy,
Thanks for your detail reply. It is still not working after making suggested change. I also add proxy testing method in apsx.cs class which is working as expected. I believe that there is some setting which I am missing.

I again visited http://www.intersoftsolutions.com/Support/WebCombo/Tutorial/Text/Configure-WebCombo-To-Retrieve-Data-From-Web-Service/ . I did not see any difference in given example and my sample except retrieval  of Data from Northwind database.

Would you look on code provided in attachment and point out the wrong setting for binding webcombo.

thanks and regards
Sachin

Hi Yudi,

It is not working at my end.

I am using windows 10 + Internet exploree 11.

Please find screenshot.


Regards

Sachin Jain.

Thanks :-)

Hi, Can you please reply Please? Regards Sachin Jain
All times are GMT -5. The time now is 11:01 PM.
Previous Next