Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
168 views
Hi all,

I have a requirement that the insert / edit form be displayed below the grid. Is this possible?  By default, the grid edits according to the place it's found in the grid.  The inserting is also always on the top of the grid is it possible to move the inserting form to the bottom?

Please let me know if you need a clarification on what I've asked.

Thanks,
Josh
Josh
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
125 views
I have a radMenu with an ItemTemplate in it.  Within that ItemTemplate, I have an asp textbox and  imagebutton comprising a search feature.  How can I get a server side event to fire when that imagebutton is clicked?  I can't seem to access it.  I understand how to access and change properties of controls within ItemTemplate.  But I cannot figure out how to get an event handler.  Here is my code.  Thanks for your help!

<telerik:RadMenu ID="trmNavSearch" runat="server" Skin="NavSearch" EnableEmbeddedSkins="false" 
        EnableEmbeddedBaseStylesheet="false"
        <Items> 
            <telerik:RadMenuItem runat="server" Width="164px"
                <ItemTemplate> 
                            <asp:TextBox ID="tbSearch" ValidationGroup="vgSearch" MaxLength="100" 
                                runat="server" CssClass="textbox"></asp:TextBox> 
                            <asp:ImageButton ValidationGroup="vgSearch" ID="btnSearch" runat="server" 
                                ImageUrl="~/global/images/green_arrow_submit.png" /> 
                </ItemTemplate> 
            </telerik:RadMenuItem> 
        </Items> 
    </telerik:RadMenu> 

This code behind obviously does not work as "btnSearch" is not recognized in the handler.
Protected Sub btnSearch_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles btnSearch.Click 
        Dim myURL As String = "" 
        myURL = myURL & "Search.aspx?SearchTerm=" & trmNavSearch.FindItemByText("tbSearch").Text.Trim & "&I=" 
        Response.Redirect(myURL.ToString) 
    End Sub 



Brad H
Top achievements
Rank 2
 answered on 25 Aug 2009
2 answers
189 views
Hello All,

I have a RadToolBar with a RadDropDownList item on it. Within that RadDropDownList I have a button that is templated to have a checkbox, textbox and button. The idea is for the user to fill in the textbox, check the checkbox (if desired) and click the button for the server to do some activity. However, when the user clicks the checkbox, the entire dropdownlist closes. How can I stop this from happening. 

<telerik:RadToolBar ID="RadToolBarGridMenu" runat="server" Width="100%"  
            onbuttonclick="RadToolBarGridMenu_ButtonClick" OnClientButtonClicked="ToolbarClicked" Skin="Black" > 
            <Items> 
                 <telerik:RadToolBarDropDown Text="View"
                    <Buttons> 
                        <telerik:RadToolBarButton Text="All Projects" /> 
                        <telerik:RadToolBarButton IsSeparator="true" /> 
                        <telerik:RadToolBarButton CssClass="logo"
                            <ItemTemplate>                             
                                 <table id="NewView" width="275px" style="margin-left:25px"
                                    <tr><td>View Name:</td><td><asp:TextBox ID="TextBoxViewName" runat="server" Width="100px" /></td></tr> 
                                    <tr><td>Is Default View:</td><td><asp:CheckBox ID="CheckBoxViewDefault" runat="server" /></td></tr> 
                                    <tr><td colspan="2"><asp:Button ID="ButtonCreateView" runat="server" Text="Save Template As View" /></td></tr> 
                                 </table>                                                    
                            </ItemTemplate> 
                        </telerik:RadToolBarButton> 
                    </Buttons> 
                </telerik:RadToolBarDropDown> 
            </Items> 
        </telerik:RadToolBar> 

Thank you for your help
Chad
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
81 views
Hello

I am having a bit of a problem.
I have recently changed my project so that the progress area and progress manager are now on my master page rather than on the upload content page.
The reason I did this was so I could use some styles to grey out the page when the progress area appears, and I couldn't do this from within my content page.

It all appears to be working fine on the upload page, but I am finding when I login or use the forgotten password functions (both asp membership defaults) I get a pop up box with "RadUpload Ajax callback error: source url returned invalid content".

Any ideas?

Thanks

Genady Sergeev
Telerik team
 answered on 25 Aug 2009
3 answers
2.0K+ views
Ok, I have a text box that the users can input an organization. Once they click search there is a method that loops through the tree to find any node that contains the value entered in the text box. There could be occurences where multiple nodes in the tree contain what the user enters, however, the search stops and the first one found from the top. I would like to add the functionality to enable the user to click search again and the next tree node that contains the search value would be selected, rather than the first node encountered that contains the value.

Here is the code I have to I currently use to accomplish the first part. The Search button's on_click event is SearchButton_Click. I'm using Q1 2009.

private void FindRecursive(RadTreeNode treeNode, string searchString, Boolean foundFirst)  
    {  
        Boolean found = foundFirst;  
        foreach (RadTreeNode tn in treeNode.Nodes)  
        {  
              
            if (tn.Text.ToUpper().Contains(searchString) && (!found))  
            {  
                found = true;  
                tn.Selected = true;  
                tn.Focus();  
            }  
            FindRecursive(tn, searchString.ToUpper(), found);  
        }  
    }  
 
 protected void SearchButton_Click(object sender, EventArgs e)  
    {  
        if (Org_Emp_Srch.Text.Trim() != "")  
            {  
                string SearchStr = Org_Emp_Srch.Text.ToUpper();  
                FindRecursive(radtreeview1.Nodes[0], SearchStr, false);  
            }  
        radtreeview1.ExpandAllNodes();  
    } 
Casey
Top achievements
Rank 1
 answered on 25 Aug 2009
5 answers
179 views
Hi

I was wondering if there is a way by which I can display the original image in a new window when the user clicks on the image in side the GridBinaryImageColumn?

If there was an event like onlick associated with the GridBinaryImageColumn then this problem could have been solved.

Regards

Dana
Daniel
Telerik team
 answered on 25 Aug 2009
4 answers
186 views
Hi,
I have Radsplitter and radpane in it, when i display pdf file in this radpane (e.g using iframe or contenturl) i can't resize this panel using radsplitter, did someone have similar problem?
Genady Sergeev
Telerik team
 answered on 25 Aug 2009
4 answers
121 views
Hi ,
           I am trying to generate rad color picker programmatically in rad dock. Now when i click on the icon for the color picker the palette is not aligning below the icon like it is suppose to. Please could you provide a solution to this issue.

Regards,
Ajit
ajit
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
111 views
Hi Telerik-Team

We've got the following scenario: a RadGrid with an EditForm Template inside. The EditForm contains several RadTextboxes, everything works fine.

Now we're trying to apply some custom css to the RadTextboxes inside the EditForm. We're working on this for several hours now but we still fail. Embeddedskins are turned off. Can you show us a simple way to achieve this? A small sample explaining how to set width/font et cetera of this nested textboxes would be very helpful. We're using 2008 Q2.

Thanks in advance!
Tom
Dimo
Telerik team
 answered on 25 Aug 2009
2 answers
103 views
Hi.  We are building a typical website that has a constant header, footer, and left frame w/ a PanelBar for navigation, which changes the contents of a main content frame/RadPane, and I use a Master Page with content areas to accomplish this.  What is Telerik's recommendation for doing the navigation, i.e., shouldn't I AJAXify it so that as people click the links in the PanelBar, only the main content pane refreshes, changing to whatever .aspx page of mine they clicked to go to?  If I do this, obviously my content pages would no longer be children (or whatever) of a master page, they would just be standalone pages that would fill the content area, but in thinking about it, is this like having a 1-page site - I read in a forum somewhere that that's what you'd have and it's not recommended but I can imagine the AJAXification would make the look and feel quite nice.  Also, would the PageLoad event still fire when I load the page into the main content area - we need to track our visitors usage and we have code that logs this (I guess you could put on the click of the PaenlBar). 

Does Telerik/everyone have a recommendation or best practices of whether to do a site like this or not (most major sites I've seen, even with some ajaxification, do not - when you click their main menu/navigation links, the whole page refreshes), and if so, is there a link to an example of this?


Thanks a million!


Scott
Scott
Top achievements
Rank 1
 answered on 25 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?