User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: January 29, 2010 2:20 AM

You could read more about WebSchedulerRecurrenceMode and WebSchedulerRecurrenceRangeMode in the WebScheduler documentation under the article titled "WebSchedulerRecurrenceMode Enumeration" and "WebSchedulerRecurrenceRangeMode Enumeration". You could also try adding recurring event in our sample and check the new entry in the database in order to determine the value.

Programmatically changing the data source connection will also work with such connection, as long as the database has the same table structure and query defined in the database operation of the WebScheduler.

Posted: January 29, 2010 2:11 AM
During the InitializeDataSource event handler, I modified the code so intially the WebGrid will be loaded with all the Orders.

You will also need to reset the FilterEditType and EditType of the column after invoking the RetrieveStructure() fucntion.

I also add InitializeWebCombo event handler to load the emplaoyee data to the WebCombo.

Attached is the modifed code.
Posted: January 28, 2010 4:00 AM

It seems Firefox did not recognoze the Add function in the Options object. In order for compliance with Firefox we will have to add the new options using indexer. Here is the new snippet:

function display(idx) {

var grid = ISGetObject("WGActivity");
var tblElm = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE);

var selRow = tblElm.rows[idx];
var optText = "";
var optVal = "";

for (j = 0; j < selRow.cells.length; j++) {
var val = selRow.cells[j].innerText;
if(j == 0)
optVal = optText = val;

if (selRow.cells[j].getElementsByTagName("input").length > 0)
if (!(val == " " || val == "<nobr> </nobr>") &&
j > 0 && selRow.cells[j].getElementsByTagName("input")[0].checked)
optText += " " + val;
}

var listBox = document.getElementById("lbactivity");
var doAdd = true;

for (var i = 0; i < listBox.options.length; i++)
{
if (listBox.options[i].value == optVal) {
doAdd = false;
listBox.options[i].text = optText;
if (optText == optVal)
listBox.options[i] = null;
break;
}
}

if (doAdd)
listBox.options[listBox.options.length] = (new Option(optText, optVal));
}


Posted: January 27, 2010 10:38 PM

After analysing the attached project, the issue seems to be caused by invalid value in Mode and RangeMode field on RecurrenceInfo table. The Mode field and AllDayEvent in the Recurring Event table also have invalid value.

These field, Mode, RangeMode, and AllDayEvent, must not have null value. Did you insert the data manually into the database? Please compare it with the data inserted using the EditingForm in the provided WebScheduler sample in order to understand the value required in the fields. 

Posted: January 27, 2010 9:13 PM
WebValueList could be bind on the InitializeLayout or PrepareDataBinding event server side event handler. In my test, binding the WebValueList on PrepareDataBinding event handler will set the WebValueList correctly after changing dataset.
In the latest nightly build of the WebScheduler, the fix for both of the issue has been included. You could download our latest nightly build using this link
Posted: January 27, 2010 4:42 AM
Thank you for the additional information. I will update the bug report with this new information. We will inform you if there is any progress / update regarding this issue.
Posted: January 26, 2010 10:54 PM

We already have a sample for such scenario in the provided WebGrid tutorial sample. Our sample use InitializeDataSource and PrepareDataBinding server side event in order to achieve the result. Attached is the modified sample using UpdatePanel and ScriptManager. The original sample, ChangeDS.aspx, is located in the WebGrid tutorial sample under the folder V3.1

   

We already have an article, Rich Features in Low Client Footprint, in our blog regarding reducing the size of the javascript using compression.
Posted: January 26, 2010 8:25 PM

Based on the consultion with the developer this issue is caused by a limitation of the browser and he suggest using paging in order to lessen the process in the first load. Here is a quote and suggestion from the developer regarding this issue:

That is unfortunately a limitation from browser – we already used browser’s native API to perform the operation.

The solution that we usually recommend is to enable paging, either virtual or classic paging. That way, users can still browse data but without have to preload so much rows in the first load.

All times are GMT -5. The time now is 6:23 AM.
Previous Next