Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
261 views
Hello,

I have a radgrid with a detailedtable in it. Also I have a Custom FormTemplate.

When I press the 'add new record' button, I would like the form to fill with the apropriate info and have the dropdownlists on the value that was saved in the database. For some reason I can not use 'selectedvalue = <% ... %>' I get the error that it can not be set declarativily.

So I added a onItemCommand function (see below). This works fine for the dropdownlists, but now the textboxex in the custom form are empty. Is there any other way to select an item in the dropdownlists, or is it possible to get the values for the textboxex from the OwnerTableView or something?

I hope someone can help me, couse it drives me insane!!

        protected void grdAccounts_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) {
            if (e.CommandName == RadGrid.EditCommandName) {
                string sAccountType = grdAccounts.MasterTableView.DataKeyValues[e.Item.ItemIndex]["AccountType"].ToString();
                e.Canceled = true;
                e.Item.OwnerTableView.InsertItem();

                GridEditableItem insertedItem = e.Item.OwnerTableView.GetInsertItem();
                ((DropDownList)(insertedItem.FindControl("drpAccountType"))).SelectedValue = sAccountType;
            }
        }
Shinu
Top achievements
Rank 2
 answered on 15 Apr 2009
8 answers
118 views
Hello do you have any working example for rad toolbar, combobox, toolbarbutton that has some handlers.

I am kind of new here, you example only show interface but not really link to codebehind (I prefer in vb) to complete the job.

For instance it took me alot of time to find out about .findcontrol and .findcontrol button in template to modify some control at run time.
Now i really need to do some action for each buttons but have not many example for it.

If you can will help a lot.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2009
2 answers
149 views
I am working on converting my old-style RadSpell to the new ajax version. I have the RadSpell control wrapped in my own class so I can set a few common properties and make updates a little easier. The wrapper looks like this:

public class SpellChecker : RadSpell {
 public SpellChecker() {
  this.Skin = "Default";
  this.ButtonType = Telerik.Web.UI.ButtonType.ImageButton;
 }
}

Nothing fancy. This worked fine with the old version, but with the ajax version I get the error message in the subject on a page that has two spell check controls (pages with a single control are fine). I changed the affected page to use the <telerik:RadSpell... /> tag instead of my own tag (bypassing the wrapper) and it worked correctly. So I wonder if there is some problem with the wrapper class concept, or if I need to set some property, or what.
Rumen
Telerik team
 answered on 15 Apr 2009
1 answer
103 views

<telerik:RadTabStrip ID="rtabsUserAccount" runat="server" Width="600" MultiPageID="RadMultiPageMain">  
 
        <Tabs> 
 
            <telerik:RadTab Text="<%=Resources.Common.AccountDetails%>" PageViewID="RadPageViewAccountDetails" /> 
 
            <telerik:RadTab Text="<%=Resources.Common.CreatorOwner%>" PageViewID="RadPageViewAccountCreator" /> 
 
        </Tabs> 
 
    </telerik:RadTabStrip> 
 
Does anybody knows why the above code does not works. When I load mt web form the tab strip Text is empty!
Paul
Telerik team
 answered on 15 Apr 2009
1 answer
80 views

Any good sources(links) about optimizing Telerik Web controls? I imagine that there are features that are turned on by default. These features require resources (javascript, css, images) to be downloaded on request. It would be nice to know what these feature are and to turn them off if not used.

Do you know of such features? I'm primarily interested in Telerik AJAX components.

Daniel
Telerik team
 answered on 15 Apr 2009
7 answers
141 views
Is there a way to put some image in the background of the cell of the grid?
tcipcic
Top achievements
Rank 1
 answered on 15 Apr 2009
1 answer
176 views
Using Q1 2009, and setting the Skin to WebBlue in the web.config file.

I'm trying to find the most straightforward (and quick) way to set up a couple of different button styles that override the default skin.  For example I need one button that overrides the default to have a different font color, and an orange background.

What  have been trying is to:
1. create an additional buttonsprites.gif file that has the colors I need
2. create  inline styles that override the decorated styles on a particular button with my changes.

So I have created a new gif file called button_orange.gif.  My inline styles look like this:

    <style type="text/css">  
        #divTop  
        {  
            width:760px;  
        }  
        #divTop .rfdSkinnedButton span.rfdInner  
        {  
            font-family: Verdana, Arial, Sans-Serif !important;  
            font-size: 9px !important;  
        }  
        #divBottom  
        {  
            width:760px;  
        }  
        #divBottom .rfdSkinnedButton span.rfdInner  
        {  
            font-family: Verdana, Arial, Sans-Serif !important;  
            font-size: 9px !important;  
        }  
        #divBottom.orange a.RadForm_WebBlue, a.RadForm_WebBlue span  
        {  
            background-image: url(../Images/Sprites/button_orange.gif) !important;  
            color: #ededed !important;  
        }  
 
    </style> 
 

What I am trying to do, is in the divBottom div, where an asp button exists that is assigned a cssclass of "orange", I am trying to override that particular button's background-image to use my newly created sprite file and also to set color.

In the style above, the .rfdSkinnedButton style inside the div styles works ok.  However I can't seem to get the right style overrides for the background-image change.

The code that has the actual button in it is below so you can see how I have the div and styles set up:

<div id="divBottom">  
        <table width="100%">  
            <tr> 
                <td align="left">  
                    <asp:TextBox ID="txtSendTestTo" runat="server" Text="{SEND TEST TO:}" MaxLength="75"></asp:TextBox> 
                    &nbsp;<asp:Button ID="btnSendTestTo" runat="server" Text="{SEND TEST}" CssClass="orange" /> 
                </td> 
                <td align="right">  
                    &nbsp;<asp:Button ID="btnSaveProgress" runat="server" Text="{SAVE PROGRESS}" /> 
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="{CANCEL}" /> 
                    &nbsp;<asp:Button ID="btnDeploy" runat="server" Text="{DEPLOY EMAIL}" /> 
                </td> 
            </tr> 
        </table> 
    </div> 

You can see that the btnSendTestTo button is using the cssclass of orange. 

Strangely, this code causes all buttons on the page to use my new color and btnSendTestTo is the button that does NOT use it!  I assume I am overriding the incorrect styles.

Hopefully this approach can be done to create some quick "alternate" color schemes that override what the skin provides, so that I can have a few different button styles.  Need to differentiate between button types and they are too spread around on this particular page to go with zones (at least I think they are).

Advice appreciated!

Thx
Martin
Telerik team
 answered on 15 Apr 2009
1 answer
314 views
One of my users wants custom tooltips for every expandable item in the grid. Instead of "Expand" or "Collapse" the user wants "expand a" or "collapse b."

While I'm aware that that there is a way to change this globally for a grid by setting collapsetooltip and expandtooltip in the hiarchysettings, I don't know how to do it for individual items. Is this possible? How would one go about doing this if so?
Princy
Top achievements
Rank 2
 answered on 15 Apr 2009
1 answer
195 views
Has anyone implemented a vertical TabStrip that's fixed & sticky where it doesn't move when you scroll or page down in the browser?

Thanks,
Rich
Paul
Telerik team
 answered on 15 Apr 2009
4 answers
138 views
I have a custom UserControl set for the editing on the GridControl.
I need to get the Text value from a TextBox on this UserControl back to the Server.

Sofar, I tried to access this using the following:

UserControl userControl = (UserControl)e.Item.FindControl GridEditFormItem.EditFormUserControlID);  
string result = (userControl.FindControl("txtNote") as TextBox).Text; 




This is returning "" on the server side. 

How can I perform a postback on this textbox in order for the Server to get the values from the client?

Any help please?
Yavor
Telerik team
 answered on 15 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?