Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
169 views
Hi all,

with the latest release, I am using Web services databinding for my data-grid.

What I can figure out using a basic net profiler (Firebug extension in Firefox), is that the webservice method to retrieve the data is called twice (with a consequent doubled load on the Web, Business logic and Database tiers).

I am using the basic code in the samples. Any work-around on that?

Thanks,
Enrico Foschi
Yeroon
Top achievements
Rank 2
 answered on 22 Dec 2008
4 answers
389 views
Hi,

I am trying to load a RadTreeView using client side databinding using Hierarchal data from database.
Could you please let me know whether the following is possible using RadTreeNode
1. How can i convert the Hierarchal data (I have got more that 3 child node levels) from the database, dynamically to build the RadTreeNodeData[ ] object, so that i can pass it to the RadTreeView using Webservice call or AJAX request?
2. Is there a dataBind() client side property in the RadTreeView alike RadGrid object, so that i can retreive the RadTreeNodeData[] object and bind it to the RadTreeView object? Or <WebServiceSettings Path=".." Method=".."> settings is the only way to bind the RadTreeView using Webservice call?

Actually my requirement is to load the RadTreeView control which is available inside the ItemTemplate of RadComboBox control. I want to populate the RadTreeView control on dropdown opening event.

Thanks for your support.

Thanks and regards
Sundar
Sundar
Top achievements
Rank 1
 answered on 22 Dec 2008
3 answers
107 views
Hi,

I'm using basic filtering but it doesn't works. I put databindin on NeedDataSource event and bind my grid to DataTable.
Here is copy of my code. When I do filtering it doesn't filter at all and filter parameter gets cleaned up.

 

<telerik:RadGrid ID="gridViewOrders" runat="server"

 

AutoGenerateColumns="False" GridLines="None"  

 

Skin="Web20" AllowFilteringByColumn="True"

 

AllowPaging="True" AllowSorting="True" 

 

EnableViewState="False"

 

 

 

OnNeedDataSource="gridViewOrders_NeedDataSource"

 

 

 

OnItemCommand="gridViewOrders_ItemCommand"

 

 

 

OnItemDataBound="gridViewOrders_ItemDataBound"

 

 

 

EnableAjaxSkinRendering="true">

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

 

<MasterTableView EnableViewState="False" AllowFilteringByColumn="true">

 

 

 

<RowIndicatorColumn>

 

 

 

<HeaderStyle Width="20px" />

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn>

 

 

 

<HeaderStyle Width="20px" />

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="OrderId" HeaderText="№ заказа" UniqueName="OrderId" DataType="System.Int32">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="OrderDate" HeaderText="Дата заказа" UniqueName="OrderDate" DataFormatString="{0:dd.MM.yyyy hh:mm}" DataType="System.DateTime" >

 

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="OrderTotal" HeaderText="Сумма заказа" UniqueName="OrderTotal" DataFormatString="{0:#,##0.00 p.}" DataType="System.Double">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="City" HeaderText="Город доставки" UniqueName="City">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DeliveryName" HeaderText="Покупатель" UniqueName="DeliveryName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="PaymentType" HeaderText="Оплата" UniqueName="PaymentType">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DeliveryType" HeaderText="Доставка" UniqueName="DeliveryType">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="OrderStatus" HeaderText="Статус" UniqueName="OrderStatus">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridButtonColumn UniqueName="view" Text="Посмотреть" CommandName="View"></telerik:GridButtonColumn>

 

 

</Columns>

 

 

<EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

</telerik:RadGrid>

 

protected void gridViewOrders_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

{

 

OrderController controller = new OrderController();

 

gridViewOrders.DataSource = controller.GetOrders();

}

 

 

Roman
Top achievements
Rank 1
 answered on 22 Dec 2008
5 answers
122 views
I have a RadDatePicker in a TableRow1
I have another RadDatePicker in a TableRow2
This table is on a ascx page posting to a master page.
In the design it looks fine but when I debug instead of them being right on top of each other there is a huge space between the rows.
I checked styles and they are not set to anything extraordinary.  
It also does this same thing for a RadComboBox set in a TableCell.

Is there something I need to format or a special property?  Do I have to make a change to the master page to allot for the radcontrols? 

It seems as though the cell is allotting space for the when the javascript works.


Thanks.
Jon-Jon Kershaw
Top achievements
Rank 2
 answered on 22 Dec 2008
1 answer
136 views
I'm evaluating RadFileExplorer as an alone component. There is a way to select an Item server side? Or js?
I've found only the possibility to set:
Configuration.ViewPaths and InitialPath.

Regards,
Mic.



Tervel
Telerik team
 answered on 22 Dec 2008
1 answer
92 views
Hi, I have my page center on the browser, as follows:

<body style="width: 960px; margin: 5px auto 0;">

On the left hand side, I have a navigator menu.  Below it, I put a rotator to show some news. 

Problem: when I resize the browser window (IE), the rotator does not relocate.  However, it works on FF3 and Opera.

Any idea?

Thanks

Raymond
Fiko
Telerik team
 answered on 22 Dec 2008
3 answers
136 views
Hi,

I have many problems to build my ImageManager and make one Button_Click server side in the same action. To lauch the Image Manager I use one classical javascript like :

<script type="text/javascript">  
    var currentTextBoxID;    
    function ImageManagerFunction(sender, args)    
    {    
        var selectedItem = args.SelectedItem;    
        var resultImageObject = args.Result;    
            
        var txt = $get(currentTextBoxID);    
        txt.value = selectedItem.getPath();    
    }            
    </script> 
 
    <asp:TextBox ID="Linkthumb4" runat="server"></asp:TextBox> 
    <telerik:dialogopener runat="server" id="DialogOpener1" >    
    </telerik:dialogopener> 
    <button onclick="currentTextBoxID='<%= Linkthumb4.ClientID %>';$find('<%= DialogOpener1.ClientID %>').open('ImageManager');return false;">Select</button>   
  

And the constructor server side. My problem is that I need to lauch another action server side with the button_Click event. I have tried changing the single button to one asp:button runat server and add the javascript with one attributes.add, but in this case the "<%= %>" are not well interpreted.

<

 

asp:Button ID="Action" runat="server" Text="Select" Width="60px"/>

 

script.
in addition..
function

 

lauch()

 

{

currentTextBoxID=$get(

'Linkthumb4'); NO working well to search the Linkthumb4.Client ID

 

$find($get(

'DialogOpener1')).open('ImageManager');  NO working well get DialogOpener1.ClientID

 

}

codebehind

Action.Attributes.Add(

"onClick", "lauch();return false;"); added server side to add after my code
...mycode

Someone have one solution to build completly this ImageManager server side or to attach one complementary action server side to asp:button without postback event.

Thanks.

 

Nikolay Raykov
Telerik team
 answered on 22 Dec 2008
1 answer
106 views

Hello,

I intend to fire an event if the user changes some content in the design and html mode, too by using code like this:

 OnKeyDownTextEditorHandler = function (e)
{  
//do some stuff
};

myEditor.attachEventHandler("onkeydown", OnKeyDownTextEditorHandler);

This is working fine for the design mode but in the Html mode there is no event fireing anymore. I found some old posts, telling u have to find the editor in the dom and append the event manually.This solution can not be the only one. There has to be a buildin editor feature which solves that issue because it is usual and often needed I guess. Maybe someone can give me a hint.

thank u 

CSD

Rumen
Telerik team
 answered on 22 Dec 2008
1 answer
100 views
Hi,
    I have to display some text if the node I clicked is only leaf node ( last node ) in the tree view . How can I identify the leaf node means it don't have child nodes.

With Thanks & Regards
Manoj Kumar Luha
Yana
Telerik team
 answered on 22 Dec 2008
3 answers
107 views
Hi,

I've read some threads concering paste issues with RadEditor control.
Unfortunately i haven't found solution to my issue. 
The problem arises when pasting the text from MS Word to RadEditor (in Mozilla Firefox 3.0.).
RadEditor is wrapped in the DetailsView and when i click the upload link the content is saved in the
database. When previewing the content in the Literal control (in IE 7) strange syntax is displayed:
<!--[if !supportLists]-->­       <!--[endif]-->

The problem is that IE doesnt recognize this as a comment (because of <!--[ instead of <!--) and
displays is as the text in the website. To make things clearer: The problem is that FF puts some 
additional html comments when pasting content from MS WORD. IE does not recognize that as 
a comment and displays it.

Things work just fine If i try the other way around (paste text from MS WORD in IE and preview it in FF).
Could someone help me with this issuse as it is annoying.

thx 
Rumen
Telerik team
 answered on 22 Dec 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?