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

if I want to create a google alike suggestion textbox, what is the best way?  I know how to do it with AJAX Control Toolkit but is there any similar function in the Telerik controls?

Thanks.
Veli
Telerik team
 answered on 22 Jun 2010
9 answers
277 views

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



Veli
Telerik team
 answered on 22 Jun 2010
1 answer
78 views

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

Shinu
Top achievements
Rank 2
 answered on 22 Jun 2010
1 answer
149 views
hi!

i am using radtreeview databind... here is my code...

 

<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...

Shinu
Top achievements
Rank 2
 answered on 22 Jun 2010
1 answer
82 views
When the InstanceOrSeriesModalPopupExtender pops up, it's centered on the scheduler.  Once one of the two options 'edit this occurrence' or 'edit the series' is selected, the Edit appt model popup is at the top of the page, and the page was scrolled to the top.  How to I get the first popup to be in the same location?
T. Tsonev
Telerik team
 answered on 22 Jun 2010
3 answers
194 views
i am trying to build a scroller just like the one on the demo page but instead of multiple i only want 1 scroller. however, i want to be able to generate data on the server side and then add the column in as i want. is there a way for me to do that?
i have included an image of the demo on your page hope fully that will help explaining what i'm trying to do. thanks

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()

Fiko
Telerik team
 answered on 22 Jun 2010
11 answers
523 views

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>  
 
 
Daniel
Telerik team
 answered on 22 Jun 2010
1 answer
103 views

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

Pavlina
Telerik team
 answered on 22 Jun 2010
3 answers
171 views
First off, let me say that Telerik kicks ass! Way easier to use than Infragistics. I gave up on trying to find the right videos for learning and used code from the demos.

The best way to explain my problem, look at this page. Mouse over text box and see that the border shows green. I want it to be red. I am not a design/layout/graphics/make-pretty expert. Where is the style/file/property to change green to red?

http://pickuptrucker.com/Contact.aspx

Thanks,
Tom
Georgi Tunev
Telerik team
 answered on 22 Jun 2010
1 answer
488 views
I am databinding a RadGrid using the NeedDataSource event and my grid has a column configured as such:

<telerik:GridButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete" ItemStyle-Width="20px" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you wish to remove this item?<br /><br /><strong>This action is not reversible.</strong>" ConfirmTitle="Confirm Removal" />

There is a RadWindow on the page so the confirmation dialog looks better than the default one. The issue I have is wanting to set the ConfirmText on ItemDataBound (or a similar method) so I can do something like "Are you sure you wish to remove this item which will also remove 35 child items?" where 35 is a count done on the DataItem being used. I've tried searching the forums here and also reading through the API and, while plenty of things give me TableCell access or access to the button being generated, I see nowhere that I can modify this text on a row-by-row basis.

Any suggestions?



Princy
Top achievements
Rank 2
 answered on 22 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?