Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
161 views
hi telerik team,

 i have faced the problem with telerik rotator control.. when i display text from database with shorter length then it display correctly but when we enters the long text from backend side and then try to display in frontend some text is cut and not display properly....it cutting some text....i dont know what is the problem..please give me suggetion ASAP...

my html code is::

<

table width="751" border="0" cellspacing="0" cellpadding="0">

<tr>

<td valign="top" align="left" width="30%">

<table width="214" border="0" cellspacing="0" cellpadding="0">

<tr>

<td>

<table width="240" border="0" cellspacing="0" cellpadding="0">

<tr>

<td align="right" valign="bottom" width="0%" style="width: 11px">

<img src="images/blue_top_left.gif" alt="top" /></td>

<td valign="bottom" class="BlueTop" width="100%">

</td>

<td align="left" valign="bottom" width="0%">

<img src="images/blue_top_right.gif" alt="top" /></td>

</tr>

<tr>

<td>

&nbsp;</td>

<td align="left" style="width: 100%">

<%

-- asdfas--%>

<radR:RadRotator ID="rad_rot" ScrollDirection="up" ScrollSpeed="100" UseSmoothScroll="false"

FrameTimeout="0" Height="225" TransitionType="scroll" FramesToShow="2"

runat="server" meta:resourcekey="rad_rotResource1">

<FrameTemplate>

<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>

<td align="left" valign="top">

<asp:Label ID="Label1" runat="server" ForeColor="Black" Font-Size="Small"

Font-Names="Arial" Text='<%# DataBinder.Eval(Container.DataItem,"Description") %>'

meta:resourcekey="Label1Resource1"></asp:Label>

</td>

</tr>

<tr>

<td align="left">

<asp:Label ForeColor="#126869" Font-Size="Small" Font-Bold="True" Font-Names="Arial"

ID="lb_des" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>'

meta:resourcekey="lb_desResource1"></asp:Label>

</td>

</tr>

</table>

</FrameTemplate>

</radR:RadRotator>

</td>

<td align="left" class="BlueRight">

&nbsp;</td>

</tr>

<tr>

<td align="right" valign="top" style="width: 11px">

<img src="images/blue_btm_left.gif" alt="" /></td>

<td valign="top" class="BlueBtm" style="width: 207px">

</td>

<td align="left" valign="top">

<img src="images/blue_btm_right.gif" alt="top" /></td>

</tr>

<tr>

<td height="5">

</td>

</tr>

</table>

<table width="240" border="0" cellspacing="0" cellpadding="0">

<tr valign="top">

<td align="right" valign="bottom" width="0%">

<img src="images/blue_top_left.gif" alt="top" /></td>

<td valign="bottom" class="BlueTop" style="width: 207px">

</td>

<td align="left" valign="bottom" width="0%">

<img src="images/blue_top_right.gif" alt="top" /></td>

</tr>

<tr>

<td align="right" class="BlueLeft">

&nbsp;</td>

<td align="left">

<table width="216" border="0" cellspacing="0" cellpadding="0">

<tr>

<td colspan="2" height="40" class="Menu" align="left" valign="middle">

<asp:Repeater ID="rpt_category" runat="server" OnItemCommand="rpt_category_ItemCommand1">

<ItemTemplate>

<table width="95%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td height="40" class="Menu" align="left" valign="middle">

<img src="images/icn_menu.jpg" alt="" /><asp:HiddenField ID="hdn_catid" runat="server"

Value='<%# DataBinder.Eval(Container.DataItem,"Cat_Id") %>' />

<a class="Menu" href='<%# getcategoryurl(DataBinder.Eval(Container.DataItem,"cat_id").ToString())%>'

id="inner" title='<%# DataBinder.Eval(Container.DataItem,"Cat_Name") %>' runat="server">

<%

# DataBinder.Eval(Container.DataItem,"Cat_Name") %>

</a>

</td>

</tr>

</table>

</ItemTemplate>

</asp:Repeater>

</td>

</tr>

<tr>

<td align="center" valign="middle">

<img src="images/icn_menu.jpg" alt="" /></td>

<td height="35" align="left" valign="middle" class="Menu" style="padding-left: 4px;">

<a class="Menu" href="" id="a_treatmentproduct" runat="server">

<asp:Literal ID="Literal2" runat="server" Text="Personalized Treatments" meta:resourcekey="Literal2Resource1"></asp:Literal>

</a>

</td>

</tr>

<tr>

<td class="BlueLine" style="height: 1px">

</td>

<td class="BlueLine" style="height: 1px">

</td>

</tr>

<tr>

<td align="center" valign="middle" height="40">

<img src="images/icn_menu.jpg" alt="" /></td>

<td height="35" style="padding-left: 4px;">

<a href="" id="a_originsofhomeopathy" runat="server" class="Menu">

<asp:Literal ID="Literal3" runat="server" Text="What Is Homeopathy?" meta:resourcekey="Literal3Resource1"></asp:Literal>

</a>

</td>

</tr>

<tr>

<td class="BlueLine">

</td>

<td class="BlueLine">

</td>

</tr>

</table>

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td colspan="2" height="8">

</td>

</tr>

<tr>

<td align="center" style="height: 20px">

<%

--<script type="text/javascript">AC_FL_RunContent(

'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',

'width', '172',/**/

'height', '72',

'src', 'flash/button_myaccount',

'quality', 'high',

'pluginspage', 'https://www.macromedia.com/go/getflashplayer',

'align', 'middle',

'play', 'true',

'loop', 'false',

'scale', 'scale',

'wmode', 'transparent',

'devicefont', 'false',

'id', 'flash-animations',

'bgcolor', 'none',

'name', 'flash/button_myaccount',

'menu', 'false',

'allowScriptAccess','sameDomain',

'movie', 'flash/button_myaccount',

'salign', ''

); </script>--

%>

<a href="" id="a_myaccount1" runat="server">

<img id="img_myaccount" style="border: 0px;" runat="server" src="" />

</a>

</td>

</tr>

<tr>

<td height="5">

</td>

</tr>

<tr>

<td align="center">

<%

--<script type="text/javascript">

AC_FL_RunContent(

'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',

'width', '172',/**/

'height', '72',

'src', 'flash/button_shoppingcart',

'quality', 'high',

'pluginspage', 'https://www.macromedia.com/go/getflashplayer',

'align', 'middle',

'play', 'true',

'loop', 'false',

'scale', 'scale',

'wmode', 'transparent',

'devicefont', 'false',

'id', 'flash-animations',

'bgcolor', 'none',

'name', 'flash/button_shoppingcart',

'menu', 'false',

'allowScriptAccess','sameDomain',

'movie', 'flash/button_shoppingcart',

'salign', ''

);

/*}*/

</script>--

%>

<a href="" id="a_shoppingcart" runat="server">

<img id="img_shoppingcart" style="border: 0px;" runat="server" src="" /></a>

</td>

</tr>

<tr>

<td height="5">

</td>

</tr>

<tr>

<td align="center">

<%

--<script type="text/javascript">

AC_FL_RunContent(

'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',

'width', '172',/**/

'height', '72',

'src', 'flash/button_testimonial',

'quality', 'high',

'pluginspage', 'https://www.macromedia.com/go/getflashplayer',

'align', 'middle',

'play', 'true',

'loop', 'false',

'scale', 'scale',

'wmode', 'transparent',

'devicefont', 'false',

'id', 'flash-animations',

'bgcolor', 'none',

'name', 'flash/button_testimonial',

'menu', 'false',

'allowScriptAccess','sameDomain',

'movie', 'flash/button_testimonial',

'salign', ''

);

/*}*/

</script>--

%>

<a href="" id="a_testimonials" runat="server">

<img id="img_testimonials" style="border: 0px;" runat="server" src="" /></a>

</td>

</tr>

</table>

</td>

<td align="left" class="BlueRight">

&nbsp;</td>

</tr>

<tr>

<td align="right" valign="top">

<img src="images/blue_btm_left.gif" /></td>

<td valign="top" class="BlueBtm" style="width: 207px">

</td>

<td align="left" valign="top">

<img src="images/blue_btm_right.gif" alt="top" /></td>

</tr>

</table>

</td>

</tr>

<tr>

<td height="5">

</td>

</tr>

</table>

</td>

<td valign="top" align="center">

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="WelcomeTable"

id="middletable" runat="server">

<tr>

<td valign="top" align="center">

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

<asp:PlaceHolder ID="plc_cata" runat="server"></asp:PlaceHolder>

</asp:ContentPlaceHolder>

<%

-- <asp:Label ID="lbl_accessMessage" runat="server" CssClass="Error"></asp:Label>--%>

</td>

</tr>

</table>

</td>

</tr>

</table>


and i just get the data from database using sql query and bind the rotator .

suresh
Top achievements
Rank 1
 asked on 28 Jul 2008
1 answer
123 views
Hi,

It seems that when using the AdvancedForm.ascx the controls I've added, like asp:DropDownList, are automaticaly databound.

What can I do to prevent this from happening?

It's important for me to have control over the databinding because the lists depend on each other.
In the current situation the controls are bound twice, Causing the value to be lost

Regards,
Ron
Peter
Telerik team
 answered on 28 Jul 2008
2 answers
94 views
Hi :o)

I am near the end of a large web project which contains many telerik controls and telerik reports.

Everything has been cool until I just came to add a datepicker to a webform and I was confronted with the following error message.

"attempted to read or write protected memory. this is often an indication that other memory is corrupt"

Thanks for your help

Tim
Princy
Top achievements
Rank 2
 answered on 28 Jul 2008
3 answers
140 views

I have been working with the RadWindow example DialogReturnValue.

What I would like to do is a similar application but rather than using a textarea, I would like to use a Wizard from the "Standard" toolbox.

However, any time I add a wizard (or any other control including standard textbox and even HTML Input (Text), I get an error in the GetRadWindow function of the Dialog.aspx page

- Microsoft JScript runtime error: Object required

This happens on the line

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

Any suggestions greatly appreciated

Georgi Tunev
Telerik team
 answered on 28 Jul 2008
1 answer
160 views
Hi,

I have a grid that I want to add tooltip capabilities to. I tried using the
Tooltipmanager. For some reason when I dynamically add the grid rows or grid controls as target controls to the Manager, the flyout tooltip never gets fired. So using the Tooltip manager with a ascx user control would not be option at this time.

After spending considerable time on it and looking at different online examples, we decided to use just the regular RadTooltip. This works on the grid and I am able to display dynamic content in the tooltip.

The question I have is that, would it possible to display a grid inside of a Radtooltip(not using the tooltipmanager ascx user control method). 

If I am able to use a RadGrid or a regular ASP.net Grid inside of the <RadTooltip> tags, how would I go about binding this grid to a datasource like a datatable in the markup or through code behind.
Following is the markup for my grid that the tooltip functionality is applied to. The tooltip section is marked in red:

<

telerik:RadGrid runat="server" AllowPaging="True" ID="RadGridReports" Height="320px" PagerStyle-Mode="Slider"

Width="375px" GridLines="None" AutoGenerateColumns="false" ClientSettings-ClientEvents-OnRowDropping="onGridReportsRowDropping"

ClientSettings-EnablePostBackOnRowClick="true" ClientSettings-ClientEvents-OnRowDragStarted="onGridReportsNodeDragging">

<MasterTableView>

<columns>

<telerik:GridBoundColumn DataField="TemplateID" HeaderText="TemplateID"

SortExpression="TemplateID" Visible="false" UniqueName="TemplateID" />

<telerik:GridBoundColumn DataField="TemplateName" HeaderText="Saved Templates"

SortExpression="TemplateName" Visible="true" UniqueName="TemplateName" />

<telerik:GridTemplateColumn HeaderText="View Details" SortExpression="ViewDetails" UniqueName="ViewDetails">

<ItemTemplate>

<asp:Label ID="lbl" runat="server" Text="Hover to show a tooltip"></asp:Label>

<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="lbl" RelativeTo="Element" Skin="Default"

Position="BottomLeft">

There are

<%

#DataBinder.Eval(Container, "DataItem.TemplateID")%>

customers from

<%

#DataBinder.Eval(Container, "DataItem.TemplateName")%>

</telerik:RadToolTip>

</ItemTemplate>

</telerik:GridTemplateColumn>

 

</columns>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<EditFormSettings>

<PopUpSettings ScrollBars="None" />

</EditFormSettings>

</MasterTableView>

<ClientSettings AllowRowsDragDrop="True">

<Selecting AllowRowSelect="True" EnableDragToSelectRows="True"/>

</ClientSettings>

</telerik:RadGrid>

any help would be appreciated

Nikolay Rusev
Telerik team
 answered on 28 Jul 2008
1 answer
71 views

Hi,

I have created a custom control (combo box) inheriting Telerik ComboBox. I have added some property in addition to the property provided by the Telerik.

In the design time after dragging and dropping the combobox, I tried adding an item for the combobox which resulted in the following error

Combobox - Combobox1There was an error rendering the control.

Type 'ComboboxControl.Combobox' does not have a public property named 'RadComboBoxItem'.

Source view of my control is as follows:

<cc4:Combobox ID="Combobox1" runat="server" Text="DropDownList">

    <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"></telerik:RadComboBoxItem>

</cc4:Combobox>

Rosi
Telerik team
 answered on 28 Jul 2008
4 answers
271 views
I'm stumbling once again. This time, I'm trying to dynamically add tabs and an associated pageview to when an item from a RadGrid is selected.

The tab is created and selected, however the text does not get set, nor does it appear that the pageview is created. I've verified with a radalert that the e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["queueid"].ToString() does return a valid string.

What am I missing here?

protected void QueueGrid_ItemCommand(object source, GridCommandEventArgs e) 
    if (e.CommandName == "RowClick" && e.Item is GridDataItem) 
    { 
        if (RadTabStrip1.FindTabByText(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["queueid"].ToString()) == null) 
        { 
            RadTab tab1 = new RadTab(); 
            RadTabStrip1.Tabs.Add(tab1); 
 
            RadPageView newpage = new RadPageView(); 
            RadMultiPage1.PageViews.Add(newpage); 
            newpage.ID = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["queueid"].ToString(); 
            tab1.Text = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["queueid"].ToString(); 
            tab1.Value = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["queueid"].ToString(); 
            tab1.PageViewID = newpage.ID; 
            RadTabStrip1.SelectedIndex = RadTabStrip1.SelectedIndex + 1; 
            RadMultiPage1.SelectedIndex = RadMultiPage1.SelectedIndex + 1; 
        } 
    } 


Paul
Telerik team
 answered on 28 Jul 2008
1 answer
190 views
Hi Telerik,

I have looked at your demo of RadGrid in a DNN module and was wondering if you could make the module source available? This would be a good example to be used to show how to integrate your grid in place of the standard microsoft grid that DNN uses by default. If you have a VS 2008 project file that goes with this module in WAP format that would be best!

Thanks Todd.
Sebastian
Telerik team
 answered on 28 Jul 2008
1 answer
339 views

I am trying to find the selected node in a TreeView on the client side.

I have tried the code in this example which is linked to in a similar thread listed here.

I am not able to figure out what I am doing wrong.  When calling GetSelectedNodes() I contiune to get the error message "Object does not support this property or method".  I have tried setting MultiSelect = true and false with the same error.

Here is a sample of my code.

<body> 
    <script type="text/javascript">  
        function getSelectedNodes()  
        {  
            var tree = <%= RadTreeView1.ClientID %>;  
            var nodes = tree.GetSelectedNodes();  
            alert(nodes.length);  
        }  
    </script> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <telerik:RadTreeView ID="RadTreeView1" runat="server">  
        <Nodes> 
            <telerik:RadTreeNode runat="server" Expanded="True" Text="1" Value="1" /> 
        </Nodes> 
    </telerik:RadTreeView> 
    <input id="Button1" type="button" value="Get Selected Node" onclick="getSelectedNodes();" /> 
    </form> 
</body> 


Justin

Yana
Telerik team
 answered on 28 Jul 2008
1 answer
101 views
I want to add javascript in a user control place another user control call in a page with master page. What use RadCodeBlock or RadScriptBlock?. Well I use RadCodeBlock in UserControl1.ascx, but UserControl1 is in another UserControl (UserControl2), now in the Page1.aspx dynamically loading UserControl2 but the javascript added in UserControl1 no appear. What is the problem?. Please help me.


Tere 
Sebastian
Telerik team
 answered on 28 Jul 2008
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?