User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: January 20, 2011 10:29 PM

Unfortunately, disabling edit visually in the GridPresenter has not been supported. In order to achieve such scenario, you will need to override the celltemplate. Here is some snippet for string cell and boolean cell:

<Intersoft:DataPresenterTextColumn Caption="User Name" DataMemberField="UserName" IsPrimaryKey="True" Width="150" Editable="False" IsReadOnly="True">
<Intersoft:DataPresenterTextColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding UserName}" Padding="4" />
</DataTemplate>
</Intersoft:DataPresenterTextColumn.CellTemplate>
</Intersoft:DataPresenterTextColumn>
<Intersoft:DataPresenterCheckBoxColumn Caption="Cat Add" DataType="System.Boolean" DataMemberField="Add" Width="60" Editable="False">
<Intersoft:DataPresenterCheckBoxColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding Add}" IsEnabled="False" Margin="4" />
</DataTemplate>
</Intersoft:DataPresenterCheckBoxColumn.CellTemplate>
</Intersoft:DataPresenterCheckBoxColumn>


Thank you for the tips. Other user who share the same scenario might find this very useful.

Posted: January 20, 2011 9:15 PM

Based on my analysis, you are using the same WebTextEditor snippet in the IntegrationWithWebFileUploader.aspx sample. Does the sample runs without any issue on the workstation?

I also notice that you are using a third party smart panel control, do you mind testing the sample without the smart panel to determine this is not a compatibility issue?

In order to bind the CustomObject to the WebGrid, you will need a collection object which implements at least CollectionBase and IHierarchicalList. A sample for such scenario has been provided in the BindtoHierchicalCustomObject.aspx sample on the WebGrid sample. In the sample, the collection also implements IObjectRelations in order to support the hierarchical data.

In your scenario, you could opt to not implement the IObjectRelationssince you are not using hierarchical data.

Posted: January 19, 2011 8:55 PM

You could use the ApplicationPackage Tag property in order to share data across XAP. In the external XAP, get the ApplicationPackage which has the Tag information modified using the UXShell object. Here is the snippet:

string tag2 = UXShell.Current.GetApplication("ClientUIExternalApp2").Tag.ToString();
string tag = UXShell.Current.GetApplication("ClientUIExternalApp1").Tag.ToString();
uXTextBox1.Text = tag + " || " + tag2;



Posted: January 18, 2011 10:00 PM

Baased on further analysis by our developer, the scenario has not been supported by WebDialogBox. Currently nested WebDialogBox only supported in IntegrationMode with WebDesktopManager. 

Posted: January 18, 2011 9:16 PM

Hi Glenn,

 

I would like to change the color of individual tabs when they are hovered over and then another when clicked on (made 'active'). I tried using style-active-backcolor but it didn't work, nor did any of the others.

 

I may be doing this incorrecdtly but I suspect it is the same bug discussed above, i.e. the element style (TabItemStyle - I assume) is overriding my changes.


Based on further analysis by the developer, individual WebTab item style has not been supported. A feature request must be made in order for WebTab to support this feature in future release.

Posted: January 17, 2011 2:33 AM

The scenario is already supported by using DataPresenter manual generated column. This way, you could manually mapped the table data field with the DataPresenter. This topic has been discussed on the DataPresenter documentation on the article Auto Generate Columns vs Manual Generated Column.

A walkthrough for generating columns manually has also been provided in the article Walkthrough: Configuring Columns Manually.

Posted: January 13, 2011 9:31 PM

We have detailed such scenario in the Intersoft Presenter Documentation on the article Walkthrough: Performing CRUD operation using Astoria Data Source Control.

If you wish to know more about the Astoria Data Source control we also have a documentation of the control in the Intersoft DataSource Documentation.

Posted: January 6, 2011 10:47 PM

Tyr using CSS instead of directly modifying the cell background color style. Here is the snippet:

<style type="text/css">
.CustomRowColor
{
background-color: "#DC143C" !important;
}
</style>

Instead of:

cell.style.setAttribute("backgroundColor", "Red", true);

Try:

cell.className += " CustomRowColor";


 

All times are GMT -5. The time now is 4:44 PM.
Previous Next