Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
Hi!
I have a radgrid with template columns which contains ASP.NET controls inside, like textboxes, some ajax-extenders etc. The datasource is a List of speacial objects with appropriate properties, and controls are binded to these objects.
Then I try to add a row in the grid using approach like this http://demos.telerik.com/aspnet-ajax/Grid/Examples/Client/InsertUpdateDelete/DefaultCS.aspx and I see that new row is added but input fields are not added to table cells.
Any suggestion where have I failed?

PS I don't want to use InPlace Edit mode because each new row should be switched to this mode, but this action causes postback. Also I don't see any ability to use RadAjax because it may conflict with MS UpdatePanels used in my page.
Rosen
Telerik team
 answered on 15 Jan 2009
1 answer
148 views
Hi Support Team,
I would like to know how to add multiple controls to a node at runtime, without losing my node text. 
For instance a user would do the following:
Add a textbox
Then add a label
Then add a radio button
All on the same node,   
Currently I have a button which allows the user to add a control to a node, but do not see how to add multiple controls to the same node. 
I did review the adding Controls to the tree view at runtime.  
Also, if you have an example of how to persist the controls across postbacks that would be great!
Thanks in advance for your help!
Julie 
Atanas Korchev
Telerik team
 answered on 15 Jan 2009
1 answer
77 views
I can't seem to figure out why a dynamically added pageview (using the format of the wizard example on the demo page) is rendered as a div outside the div rendered for the multipage control.  I have the pageview being added as a usercontrol in the event when the user clicks on the tab.  It works fine as long as I click on the tabs in a certain order (tab1 then tab3 then tab2).  However if I click in the traditional order (tab1 then tab2 then tab3) I noticed that the pageview is rendered as a div WITHOUT being nested inside the multiplage div, which of course messes up my formatting.  I have a lot of code to illustrate the problem but was hoping the description itself might give someone enough information to head me in the right direction.  If needed I can send source code.

Keith
Paul
Telerik team
 answered on 15 Jan 2009
6 answers
199 views
In Safari only when using a RadMaskedTextBox, the first character you type is ignored and does not show up at all. This happens for fields formatted for phone numbers as well as all-numeric fields. Below, you will see how I have the field defined. For example, if I were to tab to the field and try to type the number 972-111-2222, when I hit the '9' a blank shows in that position and then the '7' and all the remaining characters would appear.

Thanks,
Susan

 

<telerik:RadMaskedTextBox SelectionOnFocus="SelectAll" TabIndex="2" Columns="12" PromptChar="" DisplayMask="###-###-####" ID="txtContactPhone" Mask="###-###-####" runat="server" Skin="Web20" />

 

 

<asp:regularexpressionvalidator CssClass="Normal" id="Regularexpressionvalidator2" controltovalidate="txtContactPhone" ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$" ErrorMessage="Invalid contact phone." display="Dynamic" Runat="server"/>

 

 

<asp:requiredfieldvalidator cssclass="Normal" controltovalidate="txtContactPhone" errormessage="Required." display="dynamic" runat="server" ID="Requiredfieldvalidator2"/></td></tr>

 

Nikolay Rusev
Telerik team
 answered on 15 Jan 2009
8 answers
330 views
In this thread it shows how to bind to WCF which works, but only if you do NOT use an ItemTemplate...

It assumes you are binding with a SINGLE column in the dropdown.

Here is my ASPX:
<telerik:RadComboBox ID="rcbEnteredBy" runat="server"   
    EnableLoadOnDemand="true" 
    AllowCustomText="true"   
    ChangeTextOnKeyBoardNavigation="True" 
    IsCaseSensitive="False"   
    EnableEmbeddedSkins="False"   
    Skin="Moneta"   
    MarkFirstMatch="True" 
    ShowDropDownOnTextboxClick="true"   
    Height="200" Width="150"   
    HighlightTemplatedItems="true" 
    OnClientItemsRequesting="OnUserItemsRequesting" 
    TabIndex="4">  
    <WebServiceSettings Method="GetUsers" Path="~/Services/Facility.svc" /> 
    <ItemTemplate> 
        <ul> 
             <li><%#DataBinder.Eval(Container.DataItem, "UserName")%></li>  
             <li><%#DataBinder.Eval(Container.DataItem, "FullName")%></li>  
        </ul> 
    </ItemTemplate> 
</telerik:RadComboBox> 
 

If I populate the control with the demo provided, it loses all the info for the 2 columns in the ItemTemplate.

I have tried binding to a different class that returns a proper Json Array of my data and get nothing but errors.

A demo of how to accomplish this would be greatly appreciated.

Steele
Yaron
Top achievements
Rank 1
 answered on 15 Jan 2009
1 answer
88 views

Hi all,

I want to change the backcolor of the buttons whenever it is selected,
like the behaviour here when I'm trying to create a new thread.

when i select the bold or italics, the selected color would be color blue.

 

i seem to have found out that when selecting an item, there is a class named rade_tool_selected, but when i try to do this:

<style type="text/css">

myclass .rade_tool .rade_tool_selected
{

    background-color:blue;

}

</style>

this doesn't seem to work, please help me.

thanks,
regards,
jonathan

Martin
Telerik team
 answered on 15 Jan 2009
1 answer
139 views
Hi

I am using rad grid to show register user data. In the edit mode i have two drop down one for country and another for role.
First : I need to have "----Select----" on top of both the drop down. I used
             DropDownList.Items.Insert(0, New ListItem("--Select--"))
            But still not able to achive the result
sec : I need to to make Country drop down enable false on selection change event of role drop down
        how to have an event for Role dropdown selection change and how to access both the drop downs present in Form template of edit mode from an event outside grid.


Thanks
Avinob
Shinu
Top achievements
Rank 2
 answered on 15 Jan 2009
1 answer
305 views
I would like to have a delete column that only shows (visible) on the grid with the user has permission to use it.  Is that possible?  I looked and I did not see an example.  I might be looking in the wrong place.  Thanks.

Ed
Shinu
Top achievements
Rank 2
 answered on 15 Jan 2009
2 answers
106 views
I have tree view acting as navigation  - its in the master page. In content pages, I need this tree view to affect changes. However, the proxy on the content page seems unable to let me configure this. It doesn't contain any design time support for the controls on my master page (Eg; the tree view)

How do I get the tree view in master page, to, say, load a new form in content page based on which tree node was clicked??

The only way I can think of is to abandon the content/master paradigm and have all forms and controls (probably as user controls) loaded dynamically from within the one ajaxified page.

Thanks in advance...

Andles
Andy
Top achievements
Rank 1
 answered on 15 Jan 2009
4 answers
95 views
Hi,

I'm probably missing something simple, but anyway.

I have a screen layout based on the Splitter 100% demo.

In the main content pane, I have a RadGrid.  Thie grid is defined as style="height:100%;width:100%"

On IE the grid fills the pane, but on any other browser it doesn't.  I've tried the height and width properties of the Grid, and the MasterTableView, but they don't seem to influence it.

I'm sure I'm missing something really simple!!

Antony
Top achievements
Rank 1
 answered on 14 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?