[CLOSED] DirectEvent Parameters (Multiple)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] DirectEvent Parameters (Multiple)

    Hello,

    Would it be possible to introduce some logic to allow DirectEvent parameters to evaluate arrays or collections to send multiple values? Would be extremely helpful in ASP.NET MVC as doing the following is getting annoying:

    					<DirectEvents>
    						<Click
    							Buffer="300"
    							CleanRequest="true"
    							Url="/Example/Example">
    							<ExtraParams>
    								<ext:Parameter Name="Parameter1" Value="Ext.pluck(Store.getRange(), 'id').join()" Mode="Raw" />
    							</ExtraParams>
    						</Click>
    					</DirectEvents>
    public ActionResult Example(string parameter1)
    {
    	string[] values = parameter1.Split(',');
    
    	...
    }
    Thoughts? I can think of few scenarios where it would be helpful.

    Cheers,
    Timothy
    Last edited by geoffrey.mcgill; Sep 09, 2010 at 8:46 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Can you provide more details? What exactly do you need? You can pass arrays if set Encode="true" for the parameter (on the server side that array will be represented as string)

    I think you posted code should works fine, isn't it? Can you provide mockup code of desired functionality?
  3. #3
    Please close -- this was a misunderstanding on my part.

    Cheers

Similar Threads

  1. [CLOSED] DirectEvent return parameters?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 13, 2012, 7:49 PM
  2. Replies: 1
    Last Post: Jun 09, 2011, 7:04 PM
  3. [CLOSED] Multiple Editors - Multiple Instances?
    By jwf in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 09, 2011, 5:45 PM
  4. [CLOSED] MVC FileContentResult With DirectEvent Parameters
    By paulc in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Jun 09, 2011, 4:37 AM
  5. [CLOSED] Adding a button directevent in a directevent method
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 31, 2011, 10:29 AM

Posting Permissions