Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Hi,

I'm using RadComboBox in a Web User Control. When I drop the Web UserControl on a page, I can not use Client-Side RadComboBox events such as "OnClientDropDownClosing".

I know that I must handle this event within the UserControl, but how can I triger a custom event for the page then?

With Server-Side events, I do not have problem,

Kind Regards,

Hakan
Paul
Telerik team
 answered on 07 Jul 2008
1 answer
125 views
Hello,

The situation:
I have "Save" button on the page that saves data into database and it is AJAXified with loading panel. I have a "Next" button that causes page to postback without AJAX.

Creating a problem:
Click "Next" button while the page is still "loading ..." from the "Save" button.

Result:
In IE: page creates a new postback from "next" button, but data is stilll saved in databases. (Good)

In Firefox 3.0: Getting popup alert box with such message:

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0"

After I click ok, page finishes "loading ..." than creates a postback from "next" button.

Question:
I know I can dynamically disable "next" button while in "loading.." state...
But I would like to found like if it is possible to disable this message on Firefox and make it work just like IE works?


Thank You
Pavel
Telerik team
 answered on 07 Jul 2008
1 answer
225 views
hi,
I'm testing telerik prometheus components. They work fine. I try to implement radcombobox custom component and there I have problem how to override ItemDataBound(probably OnItemDataBound) and ItemRequested(probaby OnItemRequested) events. On trying "protected(public) override .." those methods don't appear.
Please for help.
Atanas Korchev
Telerik team
 answered on 07 Jul 2008
3 answers
141 views
Hi all,

I'm using a ComboBox attached to SqlDataSource.  When the page is first loaded I would like the ComboBox text to be empty.  Only after the user explicitly selects from the list it should be getting a value.

How can I change this behavior?

Avi
Paul
Telerik team
 answered on 07 Jul 2008
3 answers
173 views

Hi.  First off, I love your controls.  Kudos to you all.  Telerik has landed in my "must have" suite of tools.

I've opened ticket 144154 for this issue, but I wanted to post it in the forums for everyone's benefit. 

It's likely I'm simply doing something wrong, but I can't quite figure it out.

Scenario:

  • Add RadScriptManager to a page
  • Add RadAjaxPanel to a page *** This is key to reproduce this error- it doesn't occur if there is a postback
  • Add RadGrid with an EditForm / FormTemplate
  • I've only tested PopUp mode, but I'm sure it doesn't matter
  • Add RadComboBox to the Form Template with some hardcoded items
  • Add an aspnet TextBox to the Form Template
  • Add a required field validator to the Form Template
  • Ensure EnableClientValidation is enable
  • Click the insert button so the RFV is fired
  • The RadComboBox doesnt reload

Workaround:

  • Aspnet Dropdown lists aren't affected like this
  • Instead of replacing the RadComboBoxes with Dropdown lists, I simply added a "refresh" ImageButton inside of the FormTempalte... clicking this reloads the combobox and all is good


Ideally, the comboBox would still load or keep it's state?  I'm really not sure if this is a bug or a limitation of ajax-- (I'm new to ajax).

Please advise.  Thanks,
Tom

Veselin Vasilev
Telerik team
 answered on 07 Jul 2008
5 answers
193 views
If I put a toolbar in a radgrid command item template, and then add a dropdown button, the dropdown will not display (it looks like it's getting clipped). Any solutions?

ASPX:

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" EnableTheming="false" %>

<%

@ 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">

<

html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

<

head id="Head1" runat="server">

<title></title>

</

style>

</

head>

<

body >

<form id="form2" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Vista">

<

MasterTableView commanditemdisplay="Top">

<

RowIndicatorColumn Visible="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

<

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

<

HeaderStyle Width="20px"></HeaderStyle>

</

ExpandCollapseColumn>

<

EditFormSettings>

<

PopUpSettings ScrollBars="None"></PopUpSettings>

</

EditFormSettings>

<CommandItemTemplate>

<telerik:RadToolBar ID="RadToolBar1" Runat="server">

<CollapseAnimation Duration="200" Type="OutQuint" />

<Items>

<telerik:RadToolBarButton runat="server" Text="Button 0">

</telerik:RadToolBarButton>

<telerik:RadToolBarDropDown runat="server" Text="DropDown 0">

<Buttons>

<telerik:RadToolBarButton runat="server" Text="Child Button 1">

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="Child Button 2">

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="Child Button 3">

</telerik:RadToolBarButton>

</Buttons>

</telerik:RadToolBarDropDown>

<telerik:RadToolBarSplitButton runat="server" Text="SplitButton 0">

<Buttons>

<telerik:RadToolBarButton runat="server" Text="Child Button 1">

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="Child Button 2">

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="Child Button 3">

</telerik:RadToolBarButton>

</Buttons>

</telerik:RadToolBarSplitButton>

</Items>

</telerik:RadToolBar>

</CommandItemTemplate>

</

MasterTableView>

</telerik:RadGrid>

</form>

</

body>

</

html>

Codebehind:

using

System;

using

System.Collections;

using

System.Collections.Generic;

using

System.Configuration;

using

System.Data;

using

System.Linq;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.HtmlControls;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Xml.Linq;

public

partial class Default2 : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{

List<String> ls = new List<string>();

ls.Add(

"test1");

ls.Add(

"test2");

ls.Add(

"test3");

ls.Add(

"test4");

RadGrid1.DataSource = ls;

}

}

}

Sebastian
Telerik team
 answered on 07 Jul 2008
1 answer
173 views
Hi,

I have a RadAjaxmanager in the master page and RadAjaxManagerProxy in the content page...following your help files I have put:

var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
 ajaxManager.ajaxRequest(arg);

which works well on the XP development machine but gives a:

"Object reference not set to an instance of an object" error when on the host server... I have also copied over the Telerik.web.ui.dll to make sure they are the same.
Any ideas?

Regards
Roger
Top achievements
Rank 1
 answered on 07 Jul 2008
1 answer
130 views
Hi,

     May I know how to handle ItemCommand event on DetailTable. I tried to mark a break point to both Page_Load event & RadGrid_ItemCommand event. When I click the ButtonColumn (on the DetailTable), the web form post back and stopped at Page_Load event but never stopped at ItemCommand event. That's seems I cannot implement our code if the user clicked on the ButtonColumn on the DetailTable?

Thanks & Regadrs,
Louis
Shinu
Top achievements
Rank 2
 answered on 07 Jul 2008
1 answer
120 views
hello!

I have a problem with the date selection. The selection (on data side) works fine. But the selected date is not visible on first page load. If you hover with the mouse over the selected date is suddenly visible. Its very unconfortable for the user. ( http://sachsen-fernsehen.de/default1.aspx?ID=12&show=home ) What can I do to show the date right from the start? The dates normaly become set in Page_Load:

protected void Page_Load(object sender, EventArgs e)
{
// get the dates
ArrayList list = (ArrayList) Util.getCommParameter(CommControl.ARRAYLIST_SELECTED_DATES);

// Put it in the calender
foreach(DateTime dt in list)
{
   RadCalendar1.SelectedDates.Add(new RadDate(dt));
}
}


Konstantin Petkov
Telerik team
 answered on 07 Jul 2008
1 answer
169 views
I have several Grids with

AutoGenerateDeleteColumn="True" 

But I want to make sure that if the user clicks this button, a confirmation dialog pops up. With regular Columns I can use the ConfirmText tag - but how do I do the same with autogenerated delete buttons?

Princy
Top achievements
Rank 2
 answered on 07 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?