Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
Hi,

I was facing one problem for few days in rad combobox. The problem was the doctype.
Previously it was
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
which was not rendering my combobox properly.

After that I created new page and added the rad combo and was working fine.
When I checked the difference between two pages, only I found is the DOCTYPE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
was working properly.

Thing is it doesn't comes in developer's mind to set doctype properly.
Can you please suggest which one should be set for standard web pages !

Thanks
Atanas Korchev
Telerik team
 answered on 19 Jan 2009
3 answers
152 views
Hi ,

using RadAjax RadEditor in  VS 2005.
When adding Custom DropDowns,..eg I created one to handle File Save As (external PDF files ..using some PDF 3rd party dll, and Send to (email) and FileOpen and SavetoDb.

The documentation provides for handling these events, but using OnClientCommandExecuted , which is client side.
?....How would i get these events to bind to and be fired on the server side.?
and
?  How would I hook up from this custom dropdown, to the Telerik  filemanager?


And please reply to nrogers@iafrica.com  (I logged in using the Company Account email, to get patches hotfixes etc)

Many Thanks Telerik
Neal



Rumen
Telerik team
 answered on 19 Jan 2009
1 answer
84 views
One anoying thing that I have found is that if I use the chart wizard to select which chart series to use it automatically populates with all the series that are available from the data source so each time I open the chart wizard I have to remove the series that I do not want. Is it supposed to be this way?
Ves
Telerik team
 answered on 19 Jan 2009
1 answer
84 views
Hi All,

 I've got everything working in the RadGrid the way I need apart from one minor issue.

I have to enable the Find function only (<tool name="FindAndReplace"/>) as I don't want people replacing text, however cannot find any toolbar / javascript override that only has Find.

Any ideas?

Cheers,
Jonathan
Rumen
Telerik team
 answered on 19 Jan 2009
2 answers
73 views

Is there a dependable way to set a width attribute forDropDown Tools on Internet Explorer 7?

Sometimes the DropDowns render fine. [image 1]

Sometimes they don’t: [image 2] (this was over a callback cycle)

And then, sometimes, it appears to depend upon thepresence or absence of content in the ContentArea.

When this happens, you can see the Toolbar render fine,at first, but then, as the load finishes, it reorganizes, collapsing theDropDowns and rolling-up the controls to fill.

Anomaly does not present on FireFox3 or Chrome1. Does notpresent on IE6/Win2000, or Safari3/OSX, either.

Good Ol’ Explorer 7

Any magic bullet for this? Some way jam a width, or forcethe DropDown container to respond to the width of its content? Or maybe kickthe Toolbar to make it to re-render its component tools correctly?

Project:

  • Project is an ASP.NET AJAX-Enabled Web Site, VB
  • Editor Control is in a nested PageView (Tabbed MPV within a Tabbed MPV. MPVs are Width 100%, RenderSelectedPageOnly true)
  • Editor Control has fixed height & width with EnableResize false, AutoResizeHeight false, and ToolbarMode default-- all set in ASPX
  • Tools themselves are set in an external ToolsFile (Except for that blank button there at the end I’m still fiddling with. That’s in the VB)

Dev Specs:

  • Telerik.Web.UI 2008.1.619.20 trial version (yeah, yeah)
  • Microsoft .NET Framework Version 2.0.50727 SP1
  • Microsoft Visual Studio 2005 Version 8.0.50727.762
  • Windows XP Pro SP3
  • Internet Explorer 7.0.5730.13

Thanks in advance

Rumen
Telerik team
 answered on 19 Jan 2009
1 answer
132 views
Hi all,
I want to know how to add "create new folder" function to TreeView

Thanks
BR
Rukman
Princy
Top achievements
Rank 2
 answered on 19 Jan 2009
1 answer
201 views
Not sure what I am missing:

I have a radcombobox - "box1"   It is populated from a dataset.  my page_load sub looks to to see if Request.querystring("terr")  contains data.  If it does I want to look at my combobox items and see if one of the items value is the same as the the querystring.  if so, I want to change to the selection to that item.

my code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        If Not Page.IsPostBack Then  
            box1.SelectedIndex = 0 
            If Not Request.QueryString("terr") Is Nothing Then  
                Dim myterr As String  
                myterr = Server.UrlDecode(Request.QueryString("terr"))  
 
 
                For Each item As RadComboBoxItem In box1.Items  
                    myterr = myterr & " - " & item.Value  
                    If Trim(item.Value) = Trim(myterr) Then  
 
                        item.Selected = True 
                    End If  
                Next  
                Label2.Text = myterr 
                ' box1.SelectedValue = Request.QueryString("terr")  
            Else  
                Label2.Text = " " 
            End If  
 
        End If 

I added a label to try and figure out what is going on, and it appears that my code for looking through the items in box1 is in correct as no item values are being appended to my label.

ASPX code:
<%@ Page Language="VB" MasterPageFile="~/SalesTools.master" AutoEventWireup="false" CodeFile="prospects.aspx.vb"  Inherits="prospects" title="Prospects" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
    &nbsp;<telerik:RadComboBox  ID="RadioButtonList1" runat="server" AutoPostBack="True" 
        DataSourceID="SqlDataSource2" DataTextField="CODETERR" DataValueField="CODETERR" 
        RepeatDirection="Horizontal"  Skin="Hay" > 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </telerik:RadComboBox > 
     
    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> 
    &nbsp;  
    <asp:GridView ID="gvProspects" runat="server" AutoGenerateColumns="False" DataKeyNames="CustomerID" 
        DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" EnableTheming="True" GridLines="Horizontal" SkinID="prospectgrid">  
        <Columns> 
            <asp:TemplateField InsertVisible="False" ShowHeader="False">  
                <EditItemTemplate> 
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" 
                        Text="Update"></asp:LinkButton> 
                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" 
                        Text="Cancel"></asp:LinkButton> 
                </EditItemTemplate> 
                  
                <ItemTemplate> 
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit" 
                        Text="Edit"></asp:LinkButton> 
                </ItemTemplate> 
            </asp:TemplateField> 
            <asp:BoundField DataField="CustomerID" HeaderText="CustomerID" InsertVisible="False" 
                ReadOnly="True" SortExpression="CustomerID" /> 
            <asp:TemplateField HeaderText="NameCust" SortExpression="NameCust">  
                <EditItemTemplate> 
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NameCust") %>'></asp:TextBox> 
                </EditItemTemplate> 
                <ItemTemplate> 
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("NameCust") %>'></asp:Label> 
                </ItemTemplate> 
                  
            </asp:TemplateField> 
        </Columns> 
        <FooterStyle BackColor="White" ForeColor="#333333" /> 
        <RowStyle BackColor="White" ForeColor="#333333" /> 
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" /> 
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" /> 
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" /> 
    </asp:GridView> 
    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="548px">  
        <asp:Button ID="Button1" runat="server" Text="New Prospect" ValidationGroup="insertCust" /> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox2" 
            ErrorMessage="Prospect Name can not be blank" ValidationGroup="insertCust"></asp:RequiredFieldValidator> 
        <asp:TextBox ID="TextBox2" runat="server" Width="330px" ValidationGroup="insertCust"></asp:TextBox></asp:Panel> 
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:AccPac2ConnectionString %>" 
        SelectCommand="Select ter.CODETERR from &#13;&#10;((SELECT DISTINCT CODETERR FROM dbo.F_arcus() AS F_arcus_1 WHERE (DATELASTIV > dbo.Accpacdate(DATEADD(yyyy, - 1, GETDATE()))) AND (CODETERR <> ''))&#13;&#10;union&#13;&#10;(select 'IH')) ter">  
    </asp:SqlDataSource> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="Web20" /> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AccPac2ConnectionString %>" 
        InsertCommand="INSERT INTO dbo.BudgetProspects(NameCust, CodeTerr) VALUES (@Namecust, @codeterr)" 
        SelectCommand="SELECT CustomerID, NameCust FROM dbo.BudgetProspects WHERE (CodeTerr = @codeterr)" 
        UpdateCommand="UPDATE dbo.BudgetProspects SET NameCust = @namecust &#13;&#10;where customerID = @customerid">  
        <UpdateParameters> 
            <asp:Parameter Name="namecust" /> 
            <asp:Parameter Name="customerid" /> 
        </UpdateParameters> 
        <SelectParameters> 
            <asp:ControlParameter ControlID="RadioButtonList1" Name="codeterr" PropertyName="SelectedValue" /> 
        </SelectParameters> 
        <InsertParameters> 
<asp:ControlParameter ControlID="textbox2" Name="Namecust" PropertyName="text" /> 
             <asp:ControlParameter ControlID="RadioButtonList1" Name="codeterr" PropertyName="SelectedValue" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
</asp:Content> 

Shinu
Top achievements
Rank 2
 answered on 19 Jan 2009
1 answer
142 views
can anyone give me some examples (or show me where i can find some) of using the upload control inside a grid.  I want to be able to provide an upload function on each row of a grid.
Princy
Top achievements
Rank 2
 answered on 19 Jan 2009
3 answers
145 views
Hi Guys,
 Getting close to having demo ready for client. Have a weird thing happening. Everything on the grid works fine (context menu, grouping etc). Whenever I actually perform an action (grouping context menu etc) the subsequent actions to the controls does nothing. ie i can group once but after that it stops. I am sure it is something simple. Herer is my ajax maager code


<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

 

 

DefaultLoadingPanelID="RadAjaxLoadingPanel1"

 

 

OnAjaxRequest="RadAjaxManager1_AjaxRequest" EnableHistory="True">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadMenu1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadMenu1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadMenu1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

SamJ
Top achievements
Rank 1
 answered on 19 Jan 2009
4 answers
500 views


If I had long text in table cell. eg:
    "the quick brown fox jumped over the gate"

I would click to clip the Text in the cell like this:
    "the quick brown ...."

I DON'T want it to wrap on many lines eg
    "The quick brown 
    fox jumped over 
    the gate"

I have tried nowrap. did not work


Dimo
Telerik team
 answered on 19 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?