Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
375 views
Hey All,

I've been searching for a solution to this problem for days now and its starting to get ridiculous. The page I'm building is quite simple. It's got 4 RadComboBoxes, each bound to an ASP SqlDataSource with their SelectCommand set to nothing (SelectCommand=""), except the first one. Once the page loads, the user needs to choose an option from the very first combo box which contains list items only. Once the item is selected, the control posts back and I can then generate the SQL query required to populate the second combo box. Once the user has made his/her selection in the second combo box, the SQL query is build up again for the third combo box and so forth. As mentioned, the first combo box contains list items only and then the 2nd, 3rd and 4th combo boxes contains checkboxes (user must select multiple items from each). Once the combo box (containing the checkboxes) are closed, there is no postback occurring - only when that control has lost focus, then the post back occurs. To the end-user, it seems like the system isn't responding but in the meantime, the Telerik RadComboBox isn't posting back as it should.

At first I thought it might be a setting I've added there that's causing this, but after creating a test page and only the basic settings, the same problem occurs:

ASPX:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestCombo.aspx.cs" Inherits="TestCombo" %>
<%@ 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">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"></telerik:RadScriptManager>
     
    <div>
        <telerik:RadComboBox ID="cboTest" runat="server" AutoPostBack="true"
            CheckBoxes="true" AllowCustomText="false"
            onselectedindexchanged="cboTest_SelectedIndexChanged">
            <Items>
                <telerik:RadComboBoxItem Text="Item 1" Value="1" />
                <telerik:RadComboBoxItem Text="Item 2" Value="2" />
            </Items>
        </telerik:RadComboBox>
    </div>
    </form>
</body>
</html>

C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class TestCombo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void cboTest_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        throw new Exception("SelectedIndexChanged");
    }
}

It is quite vital for me to have the combobox post back as soon as its closed (not when it has lost focus). Is there any workaround for this?
Princy
Top achievements
Rank 2
 answered on 05 Sep 2012
3 answers
62 views
Hello again,
I can't refresh grid on UpdateCommand, the data are saved but the grid look like it's freeze, I think that's happening because I'v put grid into UpdatePanel to refresh data from outside.
gezim
Top achievements
Rank 1
 answered on 05 Sep 2012
1 answer
96 views
Hi,

Is it possible to change the target folder from the client side?  I have a combobox with a list of possible folders, and when the selection is changed, I want to change the target folder for the upload.

function OnClientSelectedIndexChanged(sender, eventArgs) {
      var item = eventArgs.get_item();
      var upload = $find("<%= RadAsyncUpload1.ClientID %>");
      upload.TargetPath = ???
      alert("You selected " + item.get_text());
}


Alternatively, is it possible to do this on the server side before the files are moved from the temporary directory to the target directory?  I can obviously change the value in a postback, but the upload appears to be happening before my event is called.

Any help would be appreciated.

Thanks,
Mathew
Plamen
Telerik team
 answered on 05 Sep 2012
1 answer
105 views
Hello Team,

I seek your help and suggestions on "RadHtmlChart" control. We have to use RadHtmlChart to show the drilling down functionality with "Pie" and "bar" charts. I have started using this control but its better to have some suggestions from you guys before finishing it up.

1) I am creating a page where i need to show drilling down of data with pie chart and bar charts. I want to focus on look and feel of the charts. We want the pie charts and bar charts to be good in look and feel, must be flashy and interactive etc. Can you suggest the proper links from where we can refer this kind of charts(for drilling down data).

2) with a good look and feel we want to show some information when user will hover on information , we want the pie's and bars to move and dance. Please help us to find such a good links and demos from where we can refer such type of functionality for RadHtmlChart.

Looking forward for your response.

Thanks and have a great day.!!!
Aakansha
Marin Bratanov
Telerik team
 answered on 05 Sep 2012
1 answer
77 views
HI All,

Can anybody assist me on the below error,

<

telerik:RadScriptManager ID="sm1" runat="server" />

 

Kate
Telerik team
 answered on 05 Sep 2012
4 answers
129 views
Hi there,

I'm using the RadEditor for ASP.net from the 2012.1.215.40 Release with SpellChecking enabled in a .Net 4.0 Web Application.

The scenario is that various web servers should use the same dictionaries (especially to share the custom dictionaries).

Everything works fine as long as the dictionary folder resides on the same server. But spell checking fails when it is on a different one.

DictionaryPath is set like "\\server-name\share", same on all systems.

Error Message in Response and EventLog is:

No dictionary loaded. Set the DictionaryPath property from the spell checker settings or copy the dictionaries to ~/App_Data/RadSpell/

The share's security settings are lowered by now to "Everyone" having full access.

Any suggestions on how to set this up correctly or how to find the proper cause for the error?

Kind regards,
Markus
Markus Wolff
Top achievements
Rank 1
 answered on 05 Sep 2012
1 answer
97 views
Hello

I only find CTP setup for dowloading on Telerik website. Where or how do I get the official release of SharePoint 2010 Acceleration Kit?

Thank you and regards,
Roger
Rumen
Telerik team
 answered on 05 Sep 2012
1 answer
136 views
Hi,

I have the following XML:

<foo>
  <bar>
    <abc label="bar: 1"><![CDATA[Guiness]]></abc>
    <def>1234</def>
  </bar>
  <bar>
    <abc label="bar: 2"><![CDATA[Heineken]]></bar>
    <def>4567</def>
  </bar>
  ...
</foo>


This XML is loaded into a datasource using an XPath expression:

myXML.XPath = "/foo";

I now would like to use a radGrid to store all the info of the child-nodes of bar. In the example XML above, this would be the abc and def nodes, though the actual amount of them might differ. I'd like to have the individual child nodes of the bars displayed as columns.

So the desired outcome would be a grid displaying:

bar..........abc..........def
1............Guiness...1234
2............Heineken..4567

I tried directly binding to the XML, and played around with different XPAth statements trying to get things to work, but ended up with an error: Cannot find any bindable properties

Any ideas?

Thanks in advance!

Peter
Antonio Stoilkov
Telerik team
 answered on 05 Sep 2012
5 answers
133 views
I'm trying to populate a DropDownList on my editform (automatically generated), the only fancy thing is that I have 4 options to choose from and i dont want to create a table in a db just to bind it to that.

 <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" PageSize="20" Skin="Forest">
                   <Columns>
<telerik:GridBoundColumn HeaderText="Discount" UniqueName="ColDiscount" />
        <telerik:GridDropDownColumn HeaderText="
Type" UniqueName="ColDType" >
</Columns>    
 </telerik:RadGrid>


CodeBehind:

Protected Sub RadGrid1_onitemdatabound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
        If e.Item.IsInEditMode Then
            Dim item As GridEditableItem = DirectCast(e.Item, GridEditableItem)
            If Not (TypeOf e.Item Is IGridInsertItem) Then
                Dim combo As RadComboBox = DirectCast(item.FindControl("ColDType"), RadComboBox)
                Dim selectedItem As New RadComboBoxItem()
                selectedItem.Text = DirectCast(e.Item.DataItem, DataRowView)("ColDType").ToString()
                selectedItem.Value = DirectCast(e.Item.DataItem, DataRowView)("ColDType").ToString()
                selectedItem.Attributes.Add("coldtype", DirectCast(e.Item.DataItem, DataRowView)("ColDType").ToString())
                combo.Items.Add(selectedItem)
                selectedItem.DataBind()
            End If
        End If
    End Sub



i tried this.
I tried populating it in the handler of the RadGrid1.ItemDataBound event and tried to find the dropdown control with DirectCast(item.FindControl("ColDType"), RadComboBox), but it came back as null so yeah, thats a thing. It couldn't find a ComboBox named ColDType on the autogenerated edit forms. Thats my best guess.

Your help is appreciated, thanks.
Shinu
Top achievements
Rank 2
 answered on 05 Sep 2012
4 answers
107 views
Hi,
I am using RadContextMenu on RadGrid.

I have a little problem with selection row. When I activate context menu with right click on grid, that row select which is fine.
But when I select another row previous row is still selected. 

How do I deselect that row?

thank you,
Jan
Jan
Top achievements
Rank 1
 answered on 05 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?