Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
413 views
I'm simply trying to format a date in a bound column to mm/dd/yyyy format. Here is the column:

<telerik:GridBoundColumn DataField="DOB" EmptyDataText="&amp;nbsp;"   
     HeaderText="DOB" SortExpression="DOB" UniqueName="DOB"   
     DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" 
     HtmlEncode="false">  
  <HeaderStyle Wrap="False" /> 
</telerik:GridBoundColumn> 

Looks like a bug to me...please don't tell me I have to catch every row as it is databound to reformat these columns.
jfkrueger
Top achievements
Rank 1
 answered on 11 Nov 2008
2 answers
118 views
I have just upgraded my version of telerik controls to the latest release: RadControls for ASP.NET AJAX 2008.3 1105 and the behaviour of my grids has changed. Now when the page is loaded just a menubar apears and I have to move the mouse over the bar for the grid rows to appear. My grid is rendered within an aspx page that is called from the pane of a splitter control on another page. This was all working perfectly before!

Any clues as to what has changed in this release to effect this behaviour?
thepilsbury
Top achievements
Rank 1
 answered on 11 Nov 2008
1 answer
267 views
Hi!

I´m having trouble styling my radDock items.

Heres the markup:
<div id="radDock1" class="raddock RadDock_Gray rdCollapsed span-6" style="width:300px;">

I want to set the width with my css-class (span-6) but it get overriden by the inline style width: 300px. Where does this come from? ! can´t get rid of it. I´ve tried:

    protected void Page_Load(object sender, EventArgs e)
    {
        radDockZone2.Style.Add("background", "url(App_Themes/DarkGray/Images/grid.png)");
        radDock1.Style.Remove("width");
        radDock1.Style.Clear();        
    }

and even:

    protected void RadDock_OnPreRender(object sender, EventArgs e)
    {
        RadDock dockItem = (RadDock)sender;
        dockItem.Style.Clear();
        radDock1.Style.Clear();
    }

I don´t want my radDock 300 pixles wide and I don´t wan´t to set it with the Width property. What to do?

Kind regards David

PS The first line in my Page_Load sets the background in the radDockZone. is there a better way of doing this? DS





Petko
Telerik team
 answered on 11 Nov 2008
0 answers
119 views
Hi,

I am having problems with Radtreeview and Whale Intelligent Application Gateway VPN. VPN acts as a proxy server and all request handled by it. When I conneted directly to web site no problem about ajax calls on radtreeview but over VPN ajax doesn't  work. I searched for the problem and found that radtreeview ajax call paths are wrongif I connect over vpn. For example,  when I connect the site directly (http://site.com/directory), there is no problem. But over VPN (redirects to https://vpnsite.com/whalecomb6cde8cb45a6deaaa6897890b9294a9f08f85c/whalecom0/directory/ when I login) it doesn't work. Ajax calls on VPN still uses http://site.com/directory URL even I have set AjaxUrl property to full path;

RadTreeView1.AjaxUrl = "http://" + Request.ServerVariables["SERVER_NAME"].ToString() + ":" + Request.ServerVariables["SERVER_PORT"].ToString() + Request.CurrentExecutionFilePath; 

VPN software doesn't convert URL's in javascripts
and
"whalecomb6cde8cb45a6deaaa6897890b9294a9f08f85c/whalecom0"

which is automaticly generated by VPN(it changes on every session) causes the problem. 

The site should work both directly and over VPN. 

Has anyone experienced this kind of problem or has any suggestion?
Thanks
mkavici
Top achievements
Rank 2
 asked on 11 Nov 2008
1 answer
128 views
I'm sure this has been asked before, but is there a *simple* way to have the toolbar enabled during the HTML mode? The idea is that HTML would be inserted into the textarea when commands are selected while in this mode, as opposed to having to type it manually.

-bcc
Serrin
Top achievements
Rank 1
 answered on 11 Nov 2008
1 answer
146 views

Hi,

I have a radComboBox on a webform.  The web form also has an aspNet button that does a postback on click.  When the postback occurs the combo box loses it’s formatting.  See screen cast that shows the issue:

http://screencast.com/t/9UrhH8Gb

 

Can you please let me know how to fix this?

Atanas Korchev
Telerik team
 answered on 11 Nov 2008
1 answer
98 views
Hi,

I just found out, that th OnClientClose handler is not triggered on firefox. IE and Opera works fine.
Here's an example:
<head runat="server"> 
    <title></title> 
    <script type="text/javascript"> 
        function cclose() { 
            alert(); 
        } 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
     
    <telerik:RadWindow ID="RadWindow1" runat="server" 
        OnClientClose="cclose" 
        Visible="true" 
        VisibleOnPageLoad="true" 
        Skin="Office2007" 
        KeepInScreenBounds="true" 
        NavigateUrl="http://google.de"> 
    </telerik:RadWindow> 
    </form> 
</body> 

The alert() popup does not appear on Firefox.
What's the reason for this problem? Is there a fix?

Best regards,
Robert
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 11 Nov 2008
1 answer
105 views
I am an end user of RadEditor.  I am looking at End User Manual for this product (RadEditorAjaxUserManual) that I downloaded from this site.  I am trying to resize an image with the tool via right clicking on image - selecting Set Image Properties - and then adjusting Height and Width of image.  I am trying to Constrain image (adjust proportionally) via clicking on the word "Constain" in my version of the tool.  However, I really do not understand how clicking to lock image aspect works.  And, no elaboration is provided in the user manual.  Even if I lock image aspect, when I close dialog box and re-open, aspect lock is not maintained.  How do I lock permanently; or, until I click Constrain to unlock.  And, how do I adjust image Height - Width?  Do I enter Width - click Contrain - and tool automatically adjusts Height? 

Also, do you have a more up to date version of User Manual?

Thank you.
Serrin
Top achievements
Rank 1
 answered on 11 Nov 2008
5 answers
280 views
Hi,

What I want to achieve is: get the text of the node including the tags that are saved inside the node. I want to remove the '-' inside a span.
Problem: using the get_text() cause <span> to disappear (i think it is being stripped). So i used get_textElement().innerHTML. i tried to assign the text back to the innerHTML, but the result was that the '-' is still present, which means it was not successful in assigning the value to the node.
function OnClientDoubleClick_Node(sender, args)
{
    var text = args.get_node().get_textElement().innerHTML;
    while (text.match("<SPAN>-</SPAN>") != null)
    {text = text.replace("<SPAN>-</SPAN>", "");}
    args.get_node().get_textElement().innerHTML = text;
}

i also tried to use the set_text(). but i also have a problem here. when i double click the node.
the text from node is already correct. but this: <INPUT size=144 value="text from node"> keeps showing up.
function OnClientDoubleClick_Node(sender, args)
{
    var text = args.get_node().get_textElement().innerHTML;
    while (text.match("<SPAN>-</SPAN>") != null)
    {text = text.replace("<SPAN>-</SPAN>", "");}
    args.get_node().set_text(text);
}

regards,
jonathan
Atanas Korchev
Telerik team
 answered on 11 Nov 2008
1 answer
190 views
I have a page with 2 RadEditor controls on it and I am having problems formatting the text to save into a SQL DB. Here is my code:

Protected

Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click  

 

Dim Title, Abstract, Comments As String  

 

Dim Display As Integer  

 

Dim NewsDate As Date

 

Title =

Me.rtxtTitle.Text

 

 

 Abstract =

Me.redAbstract.Text

 

 

 

Dim strAbstract = Abstract.Substring(0, Abstract.Length - 1)

 

 

 Comments =

Me.redComments.Text

 

 

 

Dim strComments = Comments.Substring(0, Comments.Length - 1)

 

 

 NewsDate =

Me.rdtpNews.DbSelectedDate

 

 

 

If Me.chkDisplayYN.Checked = True Then

 

 

 

Display = 1

 

 

Else

 

 

 

Display = 0 

 

 

End If  

 

'Populate the datatable  

 

Dim sConnString As String = ConfigurationManager.ConnectionStrings("PU89").ConnectionString  

 

Dim objConnection As New SqlClient.SqlConnection(sConnString)  

 

Dim strSQL As String = "INSERT INTO tblNews (Title,Display,BDate,Abstract,Comments)" & _  

 

" VALUES ('" & Title & "', '" & Display & "', '" & NewsDate & "', '" & strAbstract & "', '" & strComments & "');"  

 

Dim dbComm As New SqlClient.SqlCommand(strSQL, objConnection)  

 

Dim iID As Integer  

 

Try 

 

objConnection.Open()

iID = dbComm.ExecuteScalar()

 

Catch ex As Exception  

 

 

Response.Write(ex.Message)

Response.End() 

 

 

Finally  

 

If objConnection.State = ConnectionState.Open Then 

 

objConnection.Close() 

End If  

 

End Try  

 

End Sub

This method works for short blocks of text with no special characters. When I try to enter the complete text (copied from a webpage and pasted into the RadEditor) I get syntax errors:

"Incorrect syntax near 's'. Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon."

Thanks,
Shelley

 

 

Rumen
Telerik team
 answered on 11 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?