User Profile & Activity

Glenn Layaar Support
Page
of 99

I did not see any attachment in your previous post.

However, based on the description of the issue, I suspect the issue is caused by the incomplete Italian localization. You will need to add the Paging related localization in the wglang_it-IT.xml.

A quick comparison between the wglang_it-IT.xml and default.xml in the common library WebGrid localization folder, default location in C:\Program Files\Intersoft Solutions\WebUI Studio for ASP.NET\CommonLibrary\WebGrid\V7_0_7200\Localization, show that these paging related node is missing in the Italian localization:
- Tooltip/PagingFirst
- Tooltip/PagingPrev
- Tooltip/PagingNext
- Tooltip/PagingLast
- Tooltip/PagingGoTo
- Tooltip/PagingSlider
- Paging/PageFormat

I have use a conditional checking so the LoadValue will only be invoke if the TextBoxValue and element value is different. However using the steps in your previous post, this block will not be executed and the GetRowSelected method will return null.

In order to resolve this issue just comment out the conditional logic for the LoadValue

//if (editObject.element.GetTextBoxValue() != editObject.element.Value)
//{
editObject.element.Value = editObject.element.GetTextBoxValue();
editObject.element.LoadValue(true);
//}


You are correct, the snippet for OnExitEditMode event handler logic will set the ProductName cell value to empty if the inserted ProductId is not on the list. I highlighted the responsible line that will set the ProductName value if the ProductId is not in the list.

function OrderDetails_WebGrid_OnExitEditMode(controlId, tblName, editObject)
{
var wg = ISGetObject(controlId);
var cellObj = editObject.ToCellObject();
if (cellObj.Name == "ProductID_WebGridColumn")
{
if (editObject.element.IsInProgress)
{
editObject.ToCellObject().Select(true, true);
return false;
}
else
{
if (editObject.element.GetTextBoxValue() != editObject.element.Value)
{
editObject.element.Value = editObject.element.GetTextBoxValue();
editObject.element.LoadValue(true);
}

if (editObject.element.GetSelectedRow() != null)
{
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[1].innerText);
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[1].innerText);

setTimeout(function()
{
cellObj.GetRow().GetCell('ProductID_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[0].innerText);
cellObj.GetRow().GetCell('ProductID_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[0].innerText);
}, 5);
}
else
{
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText("");
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue("");
}
}
}

return true;
}

Feel free to modify them to fit your scenario.

Posted: March 7, 2010 10:43 PM

The BindingImageSourceField property will accept a URL / path string of the image.

In your sample, please assign the value of strPicPath to the cardURI in order to resolve the issue. You may need to modify the cardData class so the cardURI will accept string value. 

Sorry for the the misunderstanding.

Currently, StackGridTextObject will have the same behavior with the ToolTipTextObject. Only the global setting will be modifying the stack grid text style, the individual setting will be overrriden by WebFishEye internal process.

Modifying the stack grid text "Stack Menu" is not currently possible in the latest release of WebFishEye.

In order to modify the text value of the WebFishEye button you will need to modify the Text property of the button.

If you would like to modify the style of the text such as its color and font size, you will need to modify the global TooltipTextObject in WebFishEye.The individual TooltipTextObject is currently being overriden by the WebFishEye internal process. Here is the snippet:

<ISNet_Silverlight_WebAqua:WebFishEye.TooltipTextObject>
<TextBlock FontSize="24" Foreground="#FFE42A2A"/>
</ISNet_Silverlight_WebAqua:WebFishEye.TooltipTextObject>


Do you mind elaborating on the WebGrid setting and the object model you are using to replicate the issue?

It would also help us greatly if you could send us a simple running project that could replicate the issue.
Posted: March 4, 2010 10:16 PM

Unfortunately, the latest version of WebAqua has not support StackButtons databinding. However, support for this feature is planned in the next major release of WebAqua.

You could try checking the TextBoxValue of the WebCombo and try to load the selected item from the TextBoxValue. Here is the snippet:

function OrderDetails_WebGrid_OnExitEditMode(controlId, tblName, editObject)
{
var wg = ISGetObject(controlId);

var cellObj = editObject.ToCellObject();

if (cellObj.Name == "ProductID_WebGridColumn")
{
if (editObject.element.IsInProgress)
{
editObject.ToCellObject().Select(true, true);
return false;
}
else
{
if (editObject.element.GetTextBoxValue() != editObject.element.Value)
{
editObject.element.Value = editObject.element.GetTextBoxValue();
editObject.element.LoadValue(true);
}

if (editObject.element.GetSelectedRow() != null)
{
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[1].innerText);
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[1].innerText);

setTimeout(function()
{
cellObj.GetRow().GetCell('ProductID_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[0].innerText);
cellObj.Get Row().GetCell('ProductID_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[0].innerText);
}, 5);
}
else
{
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText("");
cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue("");
}
}
}

return true;
}

You will also need to set the ProductID column to the textbox value because under certain condition the Value is not updated with the TextBoxValue.

Posted: March 3, 2010 10:11 PM

The issue is still being fixed by the developer. The fix is planned for the next hotfix which is scheduled to be released in a few weeks.

All times are GMT -5. The time now is 10:49 AM.
Previous Next