Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
290 views
I want to bind Grid directly from the datasource.. how do i do that? my code is :


<asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="False" DataFile="~/Bin/xml.xml"
                                TransformFile="~/Bin/xml.xsl"></asp:XmlDataSource>

<telerik:RadGrid ID="RadGrid1" runat="server">
                                <HeaderContextMenu DataTextField="id" DataValueField="id">
                                </HeaderContextMenu>
                                <HeaderContextMenu DataTextField="name" DataValueField="name">
                                </HeaderContextMenu>
                                <HeaderContextMenu DataTextField="color" DataValueField="color">
                                </HeaderContextMenu>
                            </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2011
1 answer
48 views
Hi everyone,

In my company since our intranet (under MOSS 2007) has been launched past year, the contributors are experiencing many problems with RadEditor and more precisely with RadHtmlField control on publishing pages.
I want to be sure that the problems we have are common to everyone and not a specific issue linked to our environment.

 - First problem: Creating a new line is a nightmare for contributors. Pressing enter is not what the users are expecting. With a normal behavior, by pressing enter a user expects to have a new paragraph completely independant from the line above. But by pressing enter only <br /> are added and if the user choose to apply a bulleted list on the last paragrah he created, the buletted list is applied on all the paragraphs above...

Here is the code I have just by pressing "Enter" to have new paragraphs and applying bulleted list on the last one:
<span style="font-family: trebuchet ms; color: #666666;">
<ul>
    <li><span style="font-family: trebuchet ms; color: #666666;">This is a test paragraph with Enter
    <li>This is a second test paragraph with Enter</li>
    <li>This is a third test paragraph with Enter</li>
    <li>This is a fourth test paragraph with 2X Enter to jump a blank line</li>
    <li>This is a fifth paragraph for bulleted list</li>
    </span></li>
    <li></li>
</ul>
</span>

As you can see the code is not really clear and is wrong on some parts... The span elements are not wanted (the font and the color are automatically chosen) and nested within li elements which generates bad XHTML code. I also saw on this forum that CTRL+ENTER will normally solve the problem of new lines. So I do my previous example again by pressing CTRL+ENTER:
This is a test paragraph with CTRL+ENTER
<p>This is a second test paragraph with CTRL+ENTER</p>
<p>This is a third test paragraph with CTRL+ENTER</p>
<p> </p>
<p> </p>
This is a fourth test paragraph with 2X CTRL+ENTER to jump a blank line
<p> </p>
<ul>
    <li>This is a fifth paragraph for bulleted list</li>
</ul>

Effectively, CTRL+ENTER is generating new paragraph, except that there is still some bugs. The 2X CTRL Jump is generating blank paragraph which are not visible to the user directly. He needs to click on HTML view and Design again to see the Jump line (when the user press CTRL+ENTER twice, the first end of line is generated but the second one is not displayed in design mode, the users need to go in html view and go back again in design view to see the blank line).
In addition the fourth test paragraph is not a paragraph apparently, just inline html text. The bulleted list is working since the user is selecting the entire line and then clicking on "bulleted list" button.

- Second problem: Creating an Heading 1 and then creating a new paragraph with CTRL+ENTER is not doing what the user is expecting. Indeed, the paragraph is generated into the <h1> tag and not below the element. For heading 1 it is necessary to type ENTER to be sure that the following text will be out of the <h1> tag. Not very easy to explain to the contributors regarding the first issue explained above...

- Other problem: The contributors also experienced many times problems with the copy past form word. Once the content has been correctly pasted into radhtml field, editing this content becomes a nightmare and every new line or style or bulleted list is breaking the design.

To conclude I'm just wondering if this is a problem with a particular version of RadEditor HTML field or if these are known problems. The version installed on our SharePoint farm is : 5.7.2.0. Don't know if the last version is fixing those problems but unfortunately I tried the 5.8.6.0 and it seems that the contributors experience is still confusing. If you can help me on this, I would appreciate.
Stanimir
Telerik team
 answered on 28 Jul 2011
5 answers
1.1K+ views
Hi,
I cannot make the DataFormatString to work. i tried to specify  with rounding without rounding with DecimalDigits with DataType="System.Decimal", NumericType="Number" 
and it seems like it just always shows 3dp what ever I do.

I need to make it 4dp.
i read some posts about the edit, but i care only about the display.

Thanks, Pini.

Vasil
Telerik team
 answered on 28 Jul 2011
1 answer
67 views
I want to customize the pager using my own controls. How can I access the controls that I use in the controls  in the RadDataPagerTemplatePageField PagerTemplate so I can show and hide the controls as I need.
Pavlina
Telerik team
 answered on 28 Jul 2011
1 answer
164 views
Dear Telerik Team,

How to disable the RAD Update prompt in Visual Studio? The one as in the attachment.
Sebastian
Telerik team
 answered on 28 Jul 2011
1 answer
115 views

How i take the image from saved path ,
I'm not saved in binary field ,
I'm saved in file path .
How to show


Thanks,
Mohamed.
Niko
Telerik team
 answered on 28 Jul 2011
2 answers
91 views
Hi everybody,

I have added a dock in the aspx page and I use Telerik skins. I add the skin stylesheet like this, in the OnInit method of the page

HtmlLink lrDock = new HtmlLink();
lrDock.Href = "~/style/-1/skins/MySkin/Dock.MySkin.css";
lrDock.Attributes.Add("type", "text/css");
lrDock.Attributes.Add("rel", "stylesheet");
Page.Header.Controls.Add(lrDock);



I have change a property of the css Dock.MySkin.css page  :

.RadDock_MySkin.rdTop .rdRight
{
width: 0px;
}

But when I load the page, that class is not used. If I put the keyword !important, the class is used. but I wanted to know if there was an other way to override a style which is define in the Dock.MySkin.css.

Moreover, when I check the <head> tag in the source of the page, we can see that the stylesheet is loaded before the telerik axd. 

<link href="../../../style/-1/skins/MySkin/Dock.MySkin.css" type="text/css" rel="stylesheet" />
 
<link href="/dev/WebResource.axd?d=aqedTiDwmUI4QsO_0Jw61omT-LA1rFwmbV4c1GVQqcU-wKQGCetoudaQtJPuF7ZedWlBts1MIvLkr3B3WKzZshepG7nqpwP86LZM20NTk7RGF4f4b9gBIvvmp8CBaa3_B9m7IQ2&t=634320685135340310" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />


So I wanted to know if :

- It was possible to load the stylesheet after the webresource.axd
- I want the css to be the priority on the webresource.axd, without using the keyword "!important"

Thanks for replying
TANSERI
Top achievements
Rank 1
 answered on 28 Jul 2011
2 answers
79 views
Hi,

I'm trying to implement the following and need your advice/assistance in this task.
I have a grid binded to the list of objects, so each column is some property of the object.
I need something like the + sign as the first column, that will change the column DataField on the client-side.

For example, lets say I have the list of files.
So short version of row will look like this
+ | 1.4mb | somefile.txt

Pressing the + will change it to - and show something like this in this row:

- | 1.4mb | somefile.txt
                Last Modified Date: xxx
                Create date: xxx

All this stuff should be client-side and cause no postback.

Looking forward to hear from you.

Thanks,
Mykhaylo
Mykhaylo
Top achievements
Rank 1
 answered on 28 Jul 2011
10 answers
134 views
Hi,

I am trying to use tooltip with its content loaded dynamically (on demand), but the tooltip always gets cropped. After much investigation I found that this is due to a delay in page load event. I have managed to reproduce the issue simply by using Thread.Sleep placed in page Load event handler. Somewhere between 80 to 90 milliseconds is where the problem starts to appear. Below 80ms everything is good. When the tooptip gets cropped, what we see on screen is only the top part of the tooltip like about 10 pixels high, the rest looks like it is clipped. Please can anyone spot wherer I have gone wrong? or is this a bug? If it is when can I expect to have it fixed please? Is there a work around?  Thank you.

This is my aspx code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="TEST_Default" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager>
        <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="BottomRight"
            RelativeTo="Mouse" Animation="Resize" HideEvent="LeaveTargetAndToolTip" Skin="WebBlue">
            <TargetControls>
                <telerik:ToolTipTargetControl TargetControlID="viewAgentLink" />
            </TargetControls>
        </telerik:RadToolTipManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" CssClass="RadAjax" Transparency="60">
		<div class="raDiv"></div>
		<div class="raColor raTransp"></div>
	</telerik:RadAjaxLoadingPanel>
 
 
	    <asp:Label ID="viewAgentLink" runat="server" CssClass="agentLink">view agent details</asp:Label>
 
    </form>
</body>
</html>


Here is my code behind file:
Imports Telerik.Web.UI
 
Partial Class TEST_Default
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load
        System.Threading.Thread.Sleep(100)
    End Sub
 
    Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As ObjectByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate
        If e.TargetControlID = "viewAgentLink" Then
            Dim contentCtrl As Control = Page.LoadControl("AgentDetailsControl.ascx")
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(contentCtrl)
            CType(sender, RadToolTipManager).Title = "Agent Details"
        End If
    End Sub
 
End Class



PS: I have not included the usercontrol file/code, but you can use any user control with Lorem Ipsum text in it.

Kurniadi
Top achievements
Rank 1
 answered on 28 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?