Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
103 views
I am trying to get the autocompletebox to not select any results from the drop down list of values. It seems as soon as any results are displayed the first result is always selected by default so if you hit enter or click a button to process it will ignore any part string you may have there and instead take the selected value.

I would like the autocompletebox to act more like the google search box for example where no value is selected by default and will instead take your inputted string as the default value.

I have tried using the clientside API to no avail to deselect the item.

Any help would be appreciated.
Jeff
Top achievements
Rank 1
 answered on 18 Aug 2014
3 answers
157 views
Hello everyone,

I am using a radGrid to display records of data. I am attempting to implement a RadDropDownList that will alter the displayed data in radGrid based on the value selected. The dropDown list correctly rebinds the data and displays the new set of information. My problem occurs when the user attempts to move to a different page or attempts to sort the information. The grid is rebound to the original dataSource and does not maintain the dropDown selected dataSource. What is the best way to maintain the correct dataSource through page postbacks?

DropDown ASPX:
<telerik:RadDropDownList ID="BatchRadDropDownList" runat="server" OnItemSelected="BatchNameSelected"
    AutoPostBack="true" DefaultMessage="- Batch Names -">
</telerik:RadDropDownList>

RadGrid NeedDataSource:
protected void RadGridActionItem_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    // Provides RadGrid with Action Item data.
 
    List<IDataParameter> Parms = null;
    string SQL = string.Empty;
    DataTable dt;
 
    try
    {
        using (DataAccess da = new DataAccess())
        {
            SQL = COMPLIANCE_SQL.GET_ALL_NEW_ACTION_ITEMS();
            dt = da.GetDataSet(SQL, Parms).Tables[0];
            RadGridActionItem.DataSource = dt;
        }
    }
    catch (Exception ex)
    {
        throw ex;
    }
}

BatchNameSelected (Rebind of DataSource to selected data):
protected void BatchNameSelected(object sender, DropDownListEventArgs e)
        {
            List<IDataParameter> Parms = null;
            string SQL = string.Empty;
            DataTable dt;
 
            try
            {
                // Query for batch names and bind data to Batch RadDropDownList.
                using (DataAccess da = new DataAccess())
                {
                    SQL = COMPLIANCE_SQL.GET_ACTION_ITEM_VIA_BATCH_NAME(ref Parms, e.Text);
                    dt = da.GetDataSet(SQL, Parms).Tables[0];
                    RadGridActionItem.DataSource = dt;
                    RadGridActionItem.Rebind();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

RadGrid PageIndexChanged:
protected void RadGridActionItem_PageIndexChanged(object sender, GridPageChangedEventArgs e)
{
    // Allows for RadGrid paging property.
    RadGridActionItem.CurrentPageIndex = e.NewPageIndex;
}


Page_Load:
protected void Page_Load(object sender, EventArgs e)
{
    FillBatchDropDown();
}

Question: How do I maintain the selected DataSource through postbacks caused by paging and sorting?

I have been unable to find a solution that pertains to my example and would appreciate any help I can get.

Thanks,
Matt
Matthew
Top achievements
Rank 1
 answered on 18 Aug 2014
3 answers
100 views
I have set DisplayUpFolderItem to true in my projects...But it is not working.
I have used AssemblyQualifiedName as my ContentProviderTypeName and has overrided ResolveDirectory as well as ResolveRootDirectoryAsTree.

Please help.
Vessy
Telerik team
 answered on 18 Aug 2014
3 answers
559 views
How can we achieve the attached table structure with radgrid control. Basically it needs to contain the grouping by a specific configuration property like (Configuration System Hardware and NE Software, Service and Support etc. which actually consists of various product types grouped together.) on  top of the rows, then followed by Product Type which has to span multiple rows instead of showing on the top of the rows. The same product type has to be displayed again on the next if there are more records of the same product type. similar grouping is applicable for Product Fam column as well. Kindly suggest a best way for achieving the same.
Konstantin Dikov
Telerik team
 answered on 18 Aug 2014
8 answers
196 views
I have two web sites that in reality are two branches of the same project. However, in the newer one, I'm getting a RadWindow problem that wasn't originally there.

For instance, when comparing this one page in the two versions, every single row in every single involved file is the same (save a few removed commented rows). Furthermore, both sites' projects use the same versions of Telerik dll:s. And yet, in one of these sites, the title bar (including the border all around the window) does not show up.

I have read this guide: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-missing-borders-titlebar-and-commands.html and condluded the following:

  • This only happens in Chrome (well, on occasion it has happened in IE10 too, but I haven't been able to replicate that error).
  • EnableEmbeddedSkins is set to True
  • I get no error 500

How can I best start to debug this?

(As a bonus piece of information: RadWindows opened from within other RadWindows do not have this problem)
Richard
Top achievements
Rank 2
 answered on 18 Aug 2014
2 answers
297 views
I have a page that contains
- An AJAX panel that contains among other things, a few buttons.  These RadButtons have an OnClientClicked handler defined.
- RadWindows within a WindowManager.  The windows have ReloadOnShow and DestroyOnClose = true


When one of the windows is shown, there is a label, which I update the text based on the selected text of a dropdownlist on the main page.
However, when the window is shown, even through it correctly runs its OnLoad method, and APPEARS to have update the label text correctly, its NOT displayed on the label.

Suggestions?


BitShift
Top achievements
Rank 1
Veteran
 answered on 18 Aug 2014
1 answer
151 views
When the user selects a file in the RadAsyncUpload Control, instead of saving files to final destination on click of an Upload button, I want the files to be saved automatically on selection of the files. Some validations are made and then files are saved to final destination. I have seen examples where there is an Upload button which saves files to the final destination, but this is not what I want. Please let me know how to do this.
Princy
Top achievements
Rank 2
 answered on 18 Aug 2014
3 answers
352 views
Hello,

I am working on a project with a RadGrid.

In the Grid I have a column with a Timespan, But it seems that the Grid  no support that kind of type.
Is it?

Its displays this message:
No applicable method 'ToTimeSpan' exists in type 'Convert'

See video.

I’ll be glad to get a solution.

Thank you,
Daniel.
Viktor Tachev
Telerik team
 answered on 18 Aug 2014
8 answers
616 views
Hello,

I'd like to use the RadAutoCompleteBox without specifying a data source or data source id. Instead I want to allow the user to add custom entries. When entering any custom text I get the alert message "The control DataSource(or DataSourceID) is not set.".

How can I avoid this alert?

I found a thread about this topic, but it couldn't solve my issue: http://www.telerik.com/forums/autocomplete-with-no-database

Pleas help! Thank you very much in advance.

Roland
LGFox
Top achievements
Rank 1
 answered on 18 Aug 2014
5 answers
423 views
We are trying to use the imagegallery, with a data source that returns a sequence of binary images from a data source. THe first image shows correctly, but when it attempts to move to the next image the loading icon appears and nothing happens. Here's the code. We've also tried it with a js function to play the slideshow, but the problem appears whether the slideshow plays automatically or not.

Any suggestions as to what we are doing wrong?

<telerik:RadImageGallery ID="RadImageGallery1" runat="server" Width="100%" Height="310px"
           LoopItems="True" RenderMode="Auto" DataImageField="ImageFile"
           DataSourceID="dsRotationImages" DataTitleField="ImageDescription">
           <ThumbnailsAreaSettings Position="Bottom" ScrollOrientation="Horizontal" Mode="ImageSlider" />
           <ToolbarSettings ShowSlideshowButton="True" ItemsCounterFormat="Image {0} / {1}"
                
               ExitFullScreenButtonText="Exit" />
           <ClientSettings>
               <AnimationSettings SlideshowSlideDuration="3700">
                   <NextImagesAnimation Type="Blocks" Easing="EaseOutSine" Speed="2000" />
                   <PrevImagesAnimation Type="Blocks" Easing="EaseOutSine" Speed="2000" />
               </AnimationSettings>
               <ClientEvents OnImageGalleryCreated="ImageGalleryCreated" />
           </ClientSettings>
       </telerik:RadImageGallery>
Konstantin Dikov
Telerik team
 answered on 18 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?