User Profile & Activity

Martin Lie Support
martin@intersoftsolutions.com
Page
of 43
Posted: November 25, 2010 4:22 AM

Hello,

It depends on your scenario whether you need to use UXDesktop or not.

What is your difficulty to use ItemSource in UXDesktop? And, how do you want to apply them? I might need a more details scenario to have a better idea for this issue.

If your scenario works without UXDesktop, then it is not necessary to use/integrate with UXDesktop.

 

Thank you.

Posted: November 24, 2010 3:59 AM

Hello Indah,

I am afraid your scenario is not possible to be implemented because EdityType Dropdownlist is a built-in control in WebGrid, and thus, it does not invoke any of standard dropdownlist events. Also, OnChange event is used to be invoked from Client-side. Therefore, it does not trigger any events from Server-side. Since we need to pass through Server-side in order to retrieve the database, this scenario is most likely not recommended to be implemented.

Hope this helps. Thank you.

 

Regards,

-Martin-

Posted: November 24, 2010 2:06 AM

Hello,

I use TotalRows method in order to obtain the total grid's rows, and the method also gets the total rows after a record is added.

function GetTotal()
{
   var grid = ISGetObject("WebGrid1");
   alert(grid.TotalRows);
}

I have created a sample for your reference.

Hope this helps. Thank you.

 

Regards,

-Martin-

Posted: November 22, 2010 3:22 AM

Hello Andre,

First of all, you can add the following namespace into you code-behind:

using Intersoft.Client.UI.Aqua.UXStackMenu;

Next, add the following code in order to get the selected item that is being removed:

String item = ((UXStackItem)(data.SourceElement)).Text;

Here is the complete code to obtain the removed item:

private void UXStackButton1_Drop(object sender, Intersoft.Client.UI.Controls.Interactivity.DragEventArgs e)
{
   DragDropEventData data = e.Data as DragDropEventData;            
   String item = ((UXStackItem)(data.SourceElement)).Text;
            
   if (data != null && !data.Cancel)
   {
      if (data.Sender.IsRemove())
      {
         MessageBox.Show(item +" is removed.");
      }
      else
         MessageBox.Show(item + " is moved.");
   }
}

Hope this helps. Thank you.

 

Regards,

-Martin-

Posted: November 18, 2010 2:52 AM

Hello Andre,

Thank you for your patient.

I found out how to trigger the event when we remove an item from UXStackButton. You can use ISDragDrop.DragEndEvent that is available in Routed Events architecture. To learn more about the events, please refer to the following link:

http://www.intersoftpt.com/Support/ClientUI/Documentation/#url=Drag-dropFrameworkOverview.html.

You might want to know about routed events, please refer to the following link:

http://www.intersoftpt.com/Support/ClientUI/Documentation/#url=RoutedEventsOverview.html

 

Use ISEventManager to register the event handler like following:

public UXStackButton()
{
   InitializeComponent();

   ISEventManager.RegisterInstanceHandler(
      this.UXStackButton1,
      ISDragDrop.DragEndEvent,
      new Intersoft.Client.UI.Controls.Interactivity.DragEventHandler(UXStackButton1_Drop), true);
}

Then, you can customize any operation you want to perform in the following code:

private void UXStackButton1_Drop(object sender, Intersoft.Client.UI.Controls.Interactivity.DragEventArgs e)
{
   DragDropEventData data = e.Data as DragDropEventData;
   if (data != null && !data.Cancel)
   {
      if (data.Sender.IsRemove())
      {
         MessageBox.Show("The item is removed.");
      }
      else
         MessageBox.Show("The item is moved.");
      }
}

Hope this helps. Thank you.

 

Regards,

-Martin-

Posted: November 15, 2010 11:43 PM

Hello Tom,

You can set BackgroundImage and CustomRules properties in FrameStyle of WebDesktopManager.

Set BackgroundImage to the image url you want to use and set CustomRules to background-position: center;background-repeat: no-repeat.

Hope this helps.

Thank you.

 

Regards,

-Martin-

Posted: November 15, 2010 4:31 AM

Hello Andre,

I am currently investigating the event that will be triggered after we remove the stack item. So far, I've been trying to use DragEnter, DragLeave, Drop events with no luck. Those events does not get invoked when we remove an item.

Then, I tried StackOpened and StackClosed, but these events will be triggered when we open/close the stack button.

I will let you know the progress. Thank you for your patient.

 

Regards,

-Martin-

Posted: November 14, 2010 10:58 PM

Hello Ken,

Could you explain in more details what kind of crashes you are getting? It is better if you can provide a screenshot.

Could you also please explain what are the 30 business examples you want to view and download? Where did you download the samples?

Thank you.

 

Regards,
-Martin-

Posted: November 12, 2010 5:59 AM

Hello Andre,

If you enable AllowRemoveItem property, you will be able to remove the item in UXStackButton.

To remove the item, simply drag and drop the item outsite the UXStackButton area.

I am not clear enough with your question. Could you explain it in more details? Do you want to know what event is triggered when AllowRemoveItem is executed, or do you want to know the code/method to execute remove item?

Thank you.

Regards,

-Martin-

Posted: November 12, 2010 5:08 AM

Hello Indah,

Glad you have resolved the issue.

Should you have further questions regarding technical issue, please do not hesitate to post it through Community and we will be glad to assist you.

Regards,

-Martin-

All times are GMT -5. The time now is 7:53 AM.
Previous Next