Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
447 views
I'm currently using version 2008.1.515.20

I'm finding that when I don't set the Label on a RadTextBox it is drawn at the width I set.  If I do set the Label, then the control is drawn as width=100%.

This is the code that produces the correct width
<telerik:RadTextBox ID="RadTextBox1" runat="server" InvalidStyleDuration="100" Skin="Office2007" Text='<%# Bind("EstimateTitle") %>' Width="100px" Wrap="False"></telerik:RadTextBox>


This is the code that produces the 100% width.
<telerik:RadTextBox ID="RadTextBox1" runat="server" InvalidStyleDuration="100" Label="Title" Skin="Office2007" Text='<%# Bind("EstimateTitle") %>' Width="100px" Wrap="False"></telerik:RadTextBox>
Dimo
Telerik team
 answered on 15 Mar 2010
2 answers
297 views
Hi,

I would like to create a Datasource like this "SELECT field FROM table WHERE field = 'cond' @ParamSupp  ORDER BY field
In this example, I want to set a empty default value to @ParamSupp to have this => SELECT field FROM table WHERE field = 'cond' ORDER BY field
And in my code, sometimes I would add some parameters to my request. For example, assign "AND field2 = 'cond2 AND field3='cond3'" to have a datasource like this => SELECT field FROM table WHERE field = 'cond' AND field2 = 'cond2 AND field3='cond3'  ORDER BY field

Is it possible ? I try different solution like : AND @param with default value '1 = 1', but it doesn't work anymore. So I rewrite entire sql request to this DS at this time. It works fine but my request is in double (in aspx and in code behind), and if I could, I would avoid this.

Thanks in advance.
Greg

Greg Le Moine
Top achievements
Rank 1
 answered on 15 Mar 2010
3 answers
233 views
hi
i use radcombobox and scriptmanager
i modify web.config(http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html)
when i open my page in sharepoint i have this error
 The control with ID 'combobox1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
please help me
Bodevain Svensson
Top achievements
Rank 1
 answered on 15 Mar 2010
5 answers
176 views
Hi
I have customized the date time picker to a Month Year picker with the help of the following code library
http://www.telerik.com/community/code-library/aspnet-ajax/calendar/month-year-picker.aspx
In this code sample when we click on the Calendar popup button of the DateTimePicker the Fast Navigation popup with the Month and Year listing is shown instead of the Calendar popup.Now I want to remove the month listing from this fast navigation popup to convert the DateTimepicker to an Year picker.How can I achieve this requirement.
Dimo
Telerik team
 answered on 15 Mar 2010
1 answer
102 views
In the change timings.jpg figure...inscheduler i given interval 10 min.in alldays 8 can repeated 3 times...how can i change it like 8:20,8:40 like that....
T. Tsonev
Telerik team
 answered on 15 Mar 2010
1 answer
154 views
Hello,

i have a radgrid bound to a list of complex objects. the binding on client side will not show the value of the complex property.
C# class:
public class BladderInstillation : BaseIdentifier  
{  
    public DateTime Date { get; set; }  
    public decimal Dosage { get; set; }  
    public Agent Agent { get; set; }  
}  
 
public class Agent : BaseIdentifier  
{  
    public string Name { get; set; }  
    public string AtcCode { get; set; }  
} 

Grid column:
<telerik:GridBoundColumn HeaderText="Agent" UniqueName="Agent" DataField="Agent.Name" /> 

Javascript:
$.ajax({  
    type: "POST",  
    url: "MyPage.aspx/Save",  
    data: "{'instillation' : " + Sys.Serialization.JavaScriptSerializer.serialize(instillation) + "}",  
    contentType: "application/json; charset=utf-8",  
    dataType: "json",  
    success: function(data) {  
        for (var i = 0; i < data.d.length; i++) {  
            data.d[i].Date = jsonParseDate(data.d[i].Date).format("dd.MM.yyyy");  
        }  
        var tableView = $find("<%= radGrid.ClientID %>").get_masterTableView();  
        tableView.set_dataSource(data.d);  
        tableView.dataBind();  
        var grid = $find("<%= radGrid.ClientID %>");  
        grid.repaint();  
    }  
}); 

The date and dosage properties will be shown but not the Agent.Name property. How can i achieve this?

Regards,
Dominic
Nikolay Rusev
Telerik team
 answered on 15 Mar 2010
3 answers
138 views
I have setup a radPanel with 3 panel items. No skin is set and each item has its backcolor set to a light gray (#eeeeee). When an item is clicked, the color goes from light grey to dark grey. If the item is collasped, the color stays dark gray. How do I get the backcolor for the item to go back to light grey. I have tried using the item click event and set the backcolor to the color I want when the "Expanded" property = false. The code fires but the color never changes. I also tried creating a css and assigning the cssclass and that didn't work either. What am I doing wrong?

This is my ItemClick code.
    Private Sub radPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles radPanelBar1.ItemClick  
 
        If e.Item.Expanded = False Then  
            e.Item.BackColor = System.Drawing.ColorTranslator.FromHtml("#eeeeee")  
        End If  
 
    End Sub 
 
This is the shell for the PanelBar
<telerik:RadPanelBar ID="radPanelBar1" runat="server" Width="100%" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true">  
    <Items> 
       <telerik:RadPanelItem Text="Primary Subscriber's Provider Details" CssClass="gridLabelText" 
                Font-Bold="true" Font-Underline="false" BackColor="#eeeeee" ForeColor="#996699">  
             <Items> 
                <telerik:RadPanelItem> 
                    <ItemTemplate> 
 
Each panel item contains a table with multiple hyperlinks.
Yana
Telerik team
 answered on 15 Mar 2010
4 answers
307 views
What is wrong with this filterexpression:

selectConditon = "([IMP_MATCHINGFELD_WERT] = 'NGEE010041')" 
m_G1.MasterTableView.FilterExpression = selectConditon  
m_G1.MasterTableView.DataBind() 

I get the error: "Expression expected"

thanks

Christian
Yavor
Telerik team
 answered on 15 Mar 2010
4 answers
144 views
I have two radEditor on one content page. The markup for the first is:
            <telerik:RadEditor ID="reEditor" Width="965px" Height="225px"   
                EditModes="Design, Html" ToolsFile="~/BasicTools.xml" ToolbarMode="ShowOnFocus" ToolsWidth="450px"   
                EnableResize="False" OnClientLoad="OnClientLoad2" EnableViewState="False" runat="server" > 
                <ImageManager ViewPaths="~/pictures/" /> 
            </telerik:RadEditor> 
 
This editor is for editing content. The next edior is just for showing content written by an other user. The markup looks like this:
        <telerik:RadEditor ID="reDeveloper" Width="965px" Height="175px"   
            EditModes="Preview" ToolbarMode="ShowOnFocus" EnableResize="False" EnableViewState="False"   
            OnClientLoad="OnClientLoad" runat="server" ToolsWidth="10px">  
        </telerik:RadEditor> 
 
The functions OnClientLoad and OnClientLoad2 is like this:
<script type="text/javascript" > 
<!--  
    function OnClientLoad(editor, args) {  
        editor.get_toolContainer().style.display = 'none'; // Hide ToolBar  
    }  
 
    function OnClientLoad2(editor, args) {  
        var style = editor.get_contentArea().style;  
        style.fontFamily = 'Verdana';  
        style.fontSize = 13 + 'px';  
    }    
 
--> 
</script> 
When I run this page there is a gray area on the bottom of the readonly editor as shown in the enclosed attachement.
How do I get rid of it?

Erling Ervik
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
114 views
I have an asp.net page that has
  <telerik:RadWindow runat="server" Width="700px" Height="560px" VisibleStatusbar="false" 
                NavigateUrl="Explorer.aspx" ID="ExplorerWindow" Modal="true" Behaviors="Close,Move"  > 
            </telerik:RadWindow> 
  function OpenFileExplorerDialog()  
        {  
            var wnd = $find("<%= ExplorerWindow.ClientID %>");  
            wnd.show();  
        } 
  it will open a RadFileExplorer.  I ahve the code set up to not open the file, but whn they double click the file I want it to select the file, close the radwindow and update the textbox on the parent page.
 <asp:TextBox ID="fileName" runat="server" Width="250px"></asp:TextBox> 


How can I do this?
Lini
Telerik team
 answered on 15 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?