User Profile & Activity

leo Chandra Member
Page
of 14
Posted: June 24, 2015 2:28 AM

Hi Loren,

There's still no news on ASPNET-176. I will give you an update if I hear any news regarding this. For a workaround, you could run the following javascript on WebScheduler Client side event:

function WebScheduler1_OnInitialize(controlId) {	if (window.Event && !window.Event.prototype.preventDefault)
		Event.prototype.preventDefault = function () {
			this.returnValue = false;
		}
	if (window.MSEventObj && !window.MSEventObj.prototype.preventDefault) {
		window.MSEventObj.prototype.preventDefault = function () {
			this.returnValue = false;
		}
	}
}

Please note that this workaround won't work on IE 7.

Best Regards,
Leo

Hi Jimmy,

I just got news from our development team that CROS-795 "Visibility binding for android" feature has been implemented. This feature will be available on our next release, crosslight 4, that will be released soon.

Best Regards,
Leo

Posted: June 18, 2015 2:53 AM

Hi John,

You're welcome. Glad that it worked for you.

Best Regards,
Leo

Hi Jimmy,

This feature have been implemented on our Crosslight next version, Crosslight 4. For your information, Crosslight 4 will be released soon.

Best Regards,
Leo

Posted: June 17, 2015 4:11 AM

Hi John,

I have look at your sample. Changing your sample WebGrid1_PrepareDataBinding to the following should solved your issue:

Protected Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding
	' This function will restore to the Filter Row the saved filter
	If Not IsPostBack Then
		Dim _file As String = Server.MapPath("~/App_Data/UserLayout/UserStructure.xml")
		If IO.File.Exists(_file) Then
			With Me.WebGrid1
				.LoadTablesStructureFromXml(_file)
				.RootTable.FilteredColumns.Clear()
				.RootTable.GroupedColumns.Clear()
			End With
		End If
// Add Following Line WebGrid1.RootTable.DataKeyField = "CustomerID" End If End Sub

Hope this help could help you.

Best Regards,
Leo

Posted: June 16, 2015 2:00 AM

Hi Loren Devine,

Sorry for my late response. I have submit this issue under "ASPNET-175" For IE11 on Edge Compatibility View, and "ASPNET-176" Drag to resize issue. I will keep you update regarding this issue.

Best Regards,
Leo

Posted: June 4, 2015 10:25 AM

Hi Benny,

I have attached a sample that have used the workaround that I proposed earlier. Please have it evaluated by adding it to webgrid sample included in installation folder and inform me whether my sample have replicated your issue. If my sample did not replicate the issue that you are facing, please modified the sample so that I could used it to observed this problematic behaviour.

Best Regards,
Leo

Posted: June 1, 2015 9:13 AM
Hi Sun,

I have report this issue to WebGrid development team under 'ASPNET-172'. For a workaround, please attach below javascript to your webgrid OnEnterEditMode clientside event:
function EnterEditMode(controlId, tblName, editObject)
{
if (IS.chrome)
{
var grid = ISGetObject(controlId)
var element = editObject.element;
if (editObject.element.GetFrameElement)
element = editObject.element.GetFrameElement();
var offsetTop = ISPosLib.getTopNonIE(grid.FrameObj) - ISPosLib.getTop(grid.FrameObj);
var offsetLeft = ISPosLib.getLeftNonIE(grid.FrameObj) - ISPosLib.getLeft(grid.FrameObj);
element.style.top = (parseInt(element.style.top) + (offsetTop)) + "px";
element.style.left = (parseInt(element.style.left) + (offsetLeft)) + "px";
}
}
Please infrom me whether this workaround work for you after you test it.

Best Regards,
Leo
Posted: June 1, 2015 6:26 AM
Hi Maged,

You should not change the caption of WebDialogBox through Text property. After all, Window caption was manage by WebDialogBox.window (WebDesktopWindow) rather than the WebDialog itself. Text property only used once as Window caption when WebDialogBox tried to create it's window, after WebDialog's window has been created, any changes to text property won't change the window caption. To change the window caption, you should used below example code:
if (dlgBox.Window != null) dlgBox.Window.SetCaption("My Caption");
Hope this help you.

Best Regards,
Leo
Hi Minh,

Please try change your javascript code to below. It should work fine.
function DoAdd(){
var grid = ISGetObject("WebGrid1");
var newRow = grid.RootTable.NewRow(); // create new row object
var cells = newRow.GetCells(); // get WebGridCell collection

cells.GetNamedItem("ID").SetText("E6", true);
cells.GetNamedItem("Name").SetText("Emp 6", true);
cells.GetNamedItem("Phone").SetText("12345", true);
cells.GetNamedItem("ParentID").SetText("M1", true);
cells.GetNamedItem("HasChild").SetText("0", true);
try{
 newRow.Update(); } catch(e){}
grid.AcceptAllChanges(); }

Best Regards,
Leo
All times are GMT -5. The time now is 5:57 PM.
Previous Next