Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion FindControl
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrew Powell (appendTo)  
View profile  
 More options Apr 30 2012, 9:12 am
From: "Andrew Powell (appendTo)" <apow...@appendto.com>
Date: Mon, 30 Apr 2012 06:12:39 -0700 (PDT)
Local: Mon, Apr 30 2012 9:12 am
Subject: Re: FindControl
Sorry, that Linq statement should have read:

_Tabs.TabPages[0].Controls.All().Where(c => c.ID == "_Textbox");

On Apr 30, 9:10 am, "Andrew Powell (appendTo)" <apow...@appendto.com>
wrote:

> I've opened an issue for this and you can following tracking here:https://github.com/appendto/juiceui/issues/18

> Until the next maintenance release, you can access the control as
> such:

> _Tabs.TabPages[0].Controls[0].Controls[0]

> In this case, I am accessing an asp:Textbox, which is the first
> control in the first TabPage. It's no where close to pretty or ideal,
> but it'll get you by while we fix this.

> You could also use Linq. You'll have to add this to your app
> somewhere:

>                 /// <summary>
>                 /// Allows Linq operations on the controls collection.
>                 /// </summary>
>                 public static IEnumerable<Control> All(this ControlCollection
> controls) {
>                         foreach(Control control in controls) {
>                                 foreach(Control grandChild in control.Controls.All())
>                                         yield return grandChild;

>                                 yield return control;
>                         }
>                 }

> And then...

> _Tabs.TabPages[0].Controls.Where(c => c.ID == "_Textbox")

> On Apr 30, 8:10 am, Paul Beckett <emailpaulbeck...@gmail.com> wrote:

> > I am using a Juice Tabs control.

> > How is it possible to access a gridview contained within a tab, from the
> > codebehind? I have tried all sorts of combinations of FindControl but none
> > seem to work.

> > Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.