User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: March 31, 2010 2:34 AM

Unfortunately, such functionality is not possible with the current WebAqua. A feature request has been submitted to the developer for programmatic animation trigger in WebAqua.

We will inform you if there is any update or progress regarding the feature request.

For such scenario, you could try parsing the XmlResponseObject using regex to retrieve the value you wanted. Here is the snippet to retrieve the value of the sixth td element in the XmlResponse object during OnAfterAdd client side event:

function wgTest_OnAfterAdd(controlId, tblName, rowObject, xmlResponseObject)
{
var wgTest = ISGetObject(controlId);

var text = ISXml.GetNodes(xmlResponseObject, "//htmlRow")[0].text;
var m = (new RegExp('(<td[\\w\\W]+?</td>){6}', "gm")).exec(text);

var fieldVal = m[1].replace(new RegExp('(<[/]?td[\\w\\W]*?>|<[/]?nobr[\\w\\W]*?>)',"g"), "");

alert(fieldVal);

return true;
}


Could you provide us with a running sample for what you are trying to do, or provide us with a snippet code for the event handler where you are trying to change the WebCombo data source.

This will allow us to replicate the scenario you are facing more accurately.

The cause of this issue is .NET TableAdapter limitation. The database field name will be converted in command parameter, since .NET parameter name will not accept # or - character, the parameter will be renamed, in your scenario from Original_Category# to _Original_Category_ and Category-Name to p1.

Similar behavior could also be observed if you are using ObjectDataSource and GridView.

In order to analyze the issue we need to be able to replicate the issue in our environment.

I have prepared a simple sample page with the scenario you described, custom object bound to ObjectDataSource and WebGrid is bound to the ObjectDataSource. The custom object has already been available in our WebGrid sample. Feel free to modify the sample or the custom object in order to replicate the issue. 

Posted: March 30, 2010 12:04 AM

Unfortunately we do not have any way to bind data in the server side using a loop.

However, if you wish to assign color to the event element, you could use the OnEventBound client side event handler. In the event handler, you could retrieve the HTML element of the currently bound event using GetElement and GetContentElement and assign the color for each HTML element using css.

You could add a new cell during InitializeDataSource server side event in the WebGrid datasource and fill in the value of the cell during InitializeRow server side event. Here is the snippet to fill in the FullName cell with FirstName and LastName cell value:

protected void wgTest_InitializeRow(object sender, RowEventArgs e)
{
if (e.Row.Type == RowType.Record)
{
e.Row.Cells.GetNamedItem("FullName").Text = String.Join(" ",
new string[] { e.Row.Cells.GetNamedItem("FirstName").Text, e.Row.Cells.GetNamedItem("LastName").Text});

e.Row.Cells.GetNamedItem("FullName").Value = String.Join(" ",
new string[] { e.Row.Cells.GetNamedItem("FirstName").Text, e.Row.Cells.GetNamedItem("LastName").Text });
}
}

Other method would be to modify the select query so you will get the merge cells. Again we show how to select a FullName by merging FirstName and LastName field

SELECT EmployeeID, FirstName, LastName, FirstName + ' ' + LastName AS FullName FROM [Employees]

If the proposed solution does not fit for your scenario, please elaborate your scenario.

Posted: March 28, 2010 10:41 PM

WebCoverFlow has prepared some client side functionality if you wish to modify the image. Here is the snippet if you wish to modify the image of item Cover1 from WebCoverFlow1 instance.

var WebCoverFlow1 = ISGetObject('WebCoverFlow1'); 
WebCoverFlow1.Items.GetNamedItem('cover1').Source = '../images/iMovie.png';
WebCoverFlow1.RefreshUIElement();


In order to automatically set the WebCombo value to the shown dropdown item you will need to use EntryMode AutoComplete instead of InstantLookup.

Regarding the missing WebCombo text, in such scenario you will need to fill the virtual column (in this case FullName) as you set the value to the WebCombo. The InitializeRow server side event will be invoked when you show the WebCombo dropdown, in your scenario the InitializeRow will not be triggered.

Other suggestion regarding your scenario would be modifying the select query from the database. Instead of SELECT UserID, FirstName, LastName FROM [Users], please use SELECT UserID, FirstName, LastName, FirstName + ' ' + LastName AS FullName FROM [Users]


Posted: March 26, 2010 3:13 AM

Currently the column must be preserved the way it is in order to avoid any issue with the freezing column feature, the column could not be hidden or altered. 

All times are GMT -5. The time now is 9:32 PM.
Previous Next