Hello,
I need to change dataSource in DropDownList(ddl1) in RadGrid when the client choosed value in other dropDownList(ddl2) in RadGrid.
In ItemCreated I registered to event selectIndexChanged of ddl2
And in the event I changed the dataSource of ddl1(as I saw on your instructions)
Here's the code:
protected void Grid_ny_ParticipationStatus_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is Telerik.Web.UI.GridEditableItem && e.Item.IsInEditMode || e.Item is Telerik.Web.UI.GridEditableItem && e.Item.OwnerTableView.IsItemInserted)
{
ddlActive = (e.Item as Telerik.Web.UI.GridEditableItem)["iActiveId"].Controls[0] as Telerik.Web.UI.RadComboBox;
if (ddlActive != null)
{
ddlActive.AutoPostBack = true;
ddlActive.SelectedIndexChanged += new Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventHandler(ddlActive_SelectedIndexChanged);
{
}
}
protected void ddlActive_SelectedIndexChanged(object sender, System.EventArgs e)
{
int active;
int.TryParse(ddlActive.SelectedValue, out active);
Telerik.Web.UI.GridEditableItem editableItem = (sender as Telerik.Web.UI.RadComboBox).NamingContainer as Telerik.Web.UI.GridEditableItem;
Telerik.Web.UI.RadComboBox ddl = editableItem["iParticipationStatusId"].Controls[0] as Telerik.Web.UI.RadComboBox;
ddl.DataSource = codeTablesMng.GetCodeTable("tbl_code_ParticipationStatus", "iActiveId", active);
ddl.DataBind();
}
The problem that in update it's work and in Insert it's not work.
Please your help.
Thank you.
Chaya
Hello All,
I have two DropBownBoxes in a Modal Pop Up extender. But when I click to see the dropdown contents, the list is put behind the pop up how do I change this?
Thank you in advance
<telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="emailid"
DataTextField="name" DataSourceID="SqlDataSource1" Skin="Sitefinity" >
<DataBindings>
<telerik:RadTreeNodeBinding Expanded="true" />
</DataBindings>
</telerik:RadTreeView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
cs page code is....
protected void Page_Load(object sender, EventArgs e)
{
connectionString = System.Configuration.
ConfigurationSettings.AppSettings["connstring"];
SqlDataSource1.ConnectionString = connectionString;
SqlDataSource1.SelectCommand =
"select * from chat_status where tempstatus='online'";
}
from this i can able to get the names from my table but its not look like treeview structure...
i am getting only the root node.. whats wrong with this code... plz help me...
thanks..in advance...
i have this and it doesn't display anything. can you help me please. thanks
| <telerik:RadRotator ScrollDirection="left" FrameDuration="1" Width="435" ItemWidth="145" Height="24" ItemHeight="24" |
| ScrollDuration="2000" ID="Rotator1" runat="server"> |
| </telerik:RadRotator> |
Dim rs As SqlDataReader = clsGenerateReport.top20_ticker()
Dim dt As New DataTable
dt.Load(rs)
Rotator1.DataSource = dt
Rotator1.DataBind()

When the user clicks the Export Button, I want an ajax loading panel to display over the Panel. Then, when the export is complete I'd like the loading panel to close.
Using the OnAjaxRequestStart I am able to fire the loading panel. For the export to work, I have to set the EnableAjax = false. The problem is that when that is set, the OnResponseEnd is never fired.
Here's what I have so far. Any help would be appreciated:
| //Script |
| <script type="text/javascript"> |
| var currentLoadingPanel = null; |
| var currentUpdatedControl = null; |
| function RequestStart(sender, args) { |
| currentLoadingPanel = $find("RadAjaxLoadingPanel1"); |
| switch (args.get_eventTarget()) { |
| case "btnExcel": |
| case "btnWord": |
| case "btnCSV": |
| //Disable Ajax |
| args.EnableAjax = false; |
| currentUpdatedControl = "Panel1"; |
| //show the loading panel over the updated control |
| currentLoadingPanel.show(currentUpdatedControl); |
| break; |
| } |
| } |
| function ResponseEnd() { |
| //hide the loading panel and clean up the global variables |
| if (currentLoadingPanel != null) |
| currentLoadingPanel.hide(currentUpdatedControl); |
| currentUpdatedControl = null; |
| currentLoadingPanel = null; |
| } |
| </script> |
| //RadAjaxManager Configuration |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btnExcel"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="btnWord"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="btnCSV"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> |
| </telerik:RadAjaxManager> |
Dear Telerik team,
I use Grid / Self-referencing Hierarchy in my project,
Total count of data greater than 20,
the page will wait more than eight seconds。
when the data amount in the larger, the performance is worse?
web waiting time is the more long?
Any suggestions for use Grid / Self-referencing Hierarchy ?
sean