Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
I was using the custom filter template example.  I wanted to add a no filter to the drop down, but I am not sure how to remove the filter from that column when it is selected

            private void list_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
            {
                ((RadComboBox)o).DataTextField = this.DataField;
                ((RadComboBox)o).DataValueField = this.DataField;
                ((RadComboBox)o).DataSource = GetDataTable("SELECT DISTINCT " + this.UniqueName + " FROM Content_UserCalls WHERE " + this.UniqueName + " LIKE '" + e.Text + "%'");
                ((RadComboBox)o).DataBind();
                ((RadComboBox)o).Items.Insert(0, new RadComboBoxItem("(All)", ""));
            }



John Giblin
Top achievements
Rank 1
 answered on 22 Dec 2008
3 answers
159 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
384 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
105 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
115 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
135 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
89 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
131 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
102 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
98 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
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?