User Profile & Activity

Martin Lie Support
martin@intersoftsolutions.com
Page
of 43

Hello Doug,

I have consulted your inquiry with the developer team.

Actually, we do have a documentation topic about Event sequence in WebGrid. You can locate the topic from WebGrid 7 Documentation from Start Menu >> All Programs >> Intersoft WebUI Studio 2010 R2 >> WebUI Studio for ASP.NET >> WebGrid 7.

Browse through Features and Concepts >> Events >> Event sequence of server side events. You will get the information about the Event sequence valid in WebGrid.

Based on the event sequence, InitializeLayout Server-side event will be invoked before InitializeDataSource and PrepareDataBinding events. Means that it is not possible for grid to obtain the tables' name and columns' name.

Via Client-side, you can get the table info from the row object.

Please refer to the Event sequence topic for more information.

Hope this helps.

 

Thank you.

Hello Maged,

Did you apply the assemblies in your project's bin folder?

Update Manager will only update the assemblies in [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET. Means that you need to apply manually on your project's bin folder.

Here is the step to update WebGrid build version:

  • Open WebGrid's bin directory from [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET\WebGrid.NET 7.0\Bin.
  • Copy ISNet.WebUI.WebGrid.dll, ISNet.WebUI.WebGrid.Resources.dl, ISNet.WebUI.WebGrid.ISChartEngine.dll and paste it into your project's bin directory.
  • Delete ISNet.WebUI.WebGrid.Editor.dll from GAC (located in C:\Windows\assembly).
  • Drag ISNet.WebUI.WebGrid.Editor.dll from [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET\WebGrid.NET 7.0\Bin to GAC.

You might want to update WebUI Framework build version too:

  • Open WebUI Framwork's bin directory from [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET\WebUI.NET Framework 3.0\Bin.
  • Copy ISNet.WebUI.Resources.dll and paste it to your project's bin directory.
  • Delete ISNet.dll, ISNet.WebUI.dll, ISNet.WebUI.Design.dll, ISNet.WebUI.Editor.v4.dll and ISNet.WebUI.Silverlight.dll from GAC (located in C:\Windows\assembly).
  • Drag ISNet.dll, ISNet.WebUI.dll, ISNet.WebUI.Design.dll, ISNet.WebUI.Editor.v4.dll and ISNet.WebUI.Silverlight.dll from [Installation Folder]\Intersoft Solutions\WebUI Studio for ASP.NET\WebUI.NET Framework 3.0\Bin to GAC.

To ensure that you have used the latest build version, right-click on WebGrid control when you are in Design view on your project and select About. It will show a dialog box that contains information about WebGrid and WebUI Framework build version you are currently using.

Hope this helps.

 

Thank you.

Hello Maged,

Have you tried to use Update Manager tool? The latest hotfix build is already available and can be downloaded and installed from Update Manager.

To apply the changes, you simply need to copy the latest assemblies to your bin directory project. You may need to update WebUI Framework as well.

It is much easier if you use Update Manager because the tool will automatically apply the changes on your controls.

Hope this helps.

 

Thank you.

Posted: January 24, 2011 4:22 AM

Hello Mark,

It is possible to achieve your scenario.

First of all, you need to create an event, set the EventType to Event and StartDate to any specific date you want to, such as following:

<Intersoft:UXCalendar HorizontalAlignment="Left" Margin="10,10,0,0" Name="uXCalendar1" VerticalAlignment="Top" CalendarDayButtonStyle="{StaticResource UXCalendarDayButtonStyle1}">
   <Intersoft:UXCalendar.Events>
      <Intersoft:UXCalendarEventItem StartDate="1/15/2011" />
      <Intersoft:UXCalendarEventItem StartDate="1/20/2011" />
   </Intersoft:UXCalendar.Events>
</Intersoft:UXCalendar>

Open your project using Microsoft Expression Blend. Right-click on the WebCalendar control and select Edit Additional Templates >> Edit CalendarDayButtonStyle >> Edit a Copy, then click OK.

Add the following code in the EventStates:

<VisualStateGroup x:Name="EventStates">
	<VisualState x:Name="HasEvent">
		<Storyboard>
			<ColorAnimation Duration="0" To="Red" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="SelectedGlass"/>			
		</Storyboard>
	</VisualState>
	<VisualState x:Name="NoEvent"/>
</VisualStateGroup>

Attached is the sample file for your reference.

Hope this helps.

 

Thank you.

Posted: January 23, 2011 10:45 PM

Hello,

I think that would be the best way for styling since WebInput has provided TextBoxStyle for user to customize the WebInput's element.

 

Thank you.

Posted: January 23, 2011 10:42 PM

Hello,

My code is similar to yours.

function DoUncheck()
{
   var grid = ISGetObject("WebGrid1");
   var table = grid.GetRootTable();
   var checkedRows = table.GetCheckedRows();

   for (var i = 0; i < checkedRows.length; i++)
   {
      var selectedRows = checkedRows[i].childNodes[1].childNodes[0];
      selectedRows.click();
   }
}

Well, I think that's the best way so far for your scenario.

Hope this helps.

 

Thank you.

Hello Adam,

Yes, the grouping works fine. However, your sample will show an error when I group since I don't have your database, but the layout is fine.

You could try our sample on Grouping.aspx sample for your reference.

 

Thank you.

Posted: January 21, 2011 6:16 AM

Hello,

You can use the following code to check/uncheck all rows:

function DoUncheck()
{
    var grid = ISGetObject("WebGrid1");
    var colHeader = grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV);
    var checkRowElm = colHeader.childNodes[0].childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0];

    checkRowElm.click();
}

Hope this helps.

 

Thank you.

Posted: January 21, 2011 6:15 AM

Hello,

You can use the following code to check/uncheck all rows:

function DoUncheck()
{
   var grid = ISGetObject("WebGrid1");
   var colHeader = grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV);
   var checkRowElm = colHeader.childNodes[0].childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0];

   checkRowElm.click();
}

Hope this helps.

 

Thank you.

Hello,

I have tried your sample and it works fine on my end. The columns are well-aligned when WebGrid is using XHTML DocType.

I'm currently using build 418 for WebGrid when I tested the sample.

I have attached a screenshot for your reference.

We are going to release the latest hotfix build 418 by today. However, here is the link to download the nightly-build hotfix if you need to test your project.

http://www.intersoftpt.com/tdn/downloads/WebGridNET7_0_7200_418.zip

Hope this helps.

 

Thank you.

All times are GMT -5. The time now is 11:40 AM.
Previous Next