Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
284 views
I am trying to figure out how to enable like the print button when I am in preview mode? How would this be accomplished? Thanks
Ianko
Telerik team
 answered on 11 Aug 2014
1 answer
100 views
I have a Combobox and grid in a widget.  The grid needs to be filtered as the selection in the combobox changes.  Currently when the selection changes, the grid reloads, but always displays the same data.  Any ideas how to fix this?  Or even debug it?

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
 
<label for="NamesDDL">Select plant name to view its reports:</label>
<div style="margin-top: 15px;">
    <telerik:RadComboBox ID="NamesDDL" runat="server" AutoPostBack="True" DataSourceID="dllDataSource"
        DataTextField="PlantNameAndID" DataValueField="PlantID" Width="250px" Height="150px"
        AppendDataBoundItems="true" >
        <Items>
            <telerik:RadComboBoxItem Text="All" Value="0" Selected="true"></telerik:RadComboBoxItem>
        </Items>
    </telerik:RadComboBox>
</div>
 
<div style="margin: 15px 0 20px;">
    <telerik:RadGrid ID="OrdersGrid" AllowPaging="true" DataSourceID="gridSource" runat="server"
        GridLines="None" AllowSorting="true" HeaderStyle-ForeColor="Black" HeaderStyle-HorizontalAlign="Center">
    </telerik:RadGrid>
</div>
 
<asp:SqlDataSource ID="dllDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Dev-TestOilConnectionString %>"
    SelectCommand="select customer.plant.PlantID, customer.plant.PlantNo, customer.plant.PlantName, customer.plant.PlantID, cast(customer.plant.PlantID as varchar) + ' - ' + customer.plant.PlantName as PlantNameAndID from customer.plant where plant.CustID = 10 order by plant.PlantNo"></asp:SqlDataSource>
 
<asp:SqlDataSource ID="gridSource" runat="server" ConnectionString="<%$ ConnectionStrings:Dev-TestOilConnectionString %>"
    SelectCommand="select LabID, SampleDate, MachCond, LubCond, CustReview, CustReviewDte, machine.PlantID from customer.plant inner join customer.machine on machine.PlantID = plant.PlantID inner join sample.sample on sample.PointID = machine.PointID where ((machine.PlantID = @PlantID and @PlantID <> 0) or (machine.PlantID = machine.PlantID and @PlantID = 0)) and plant.custid = 10">
    <SelectParameters>
        <asp:ControlParameter Name="PlantID" PropertyName="SelectedValue" ControlID="NamesDDL"></asp:ControlParameter>
    </SelectParameters>
</asp:SqlDataSource>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="NamesDDL">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="OrdersGrid" LoadingPanelID="AjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                <telerik:AjaxUpdatedControl ControlID="NamesDDL"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
Pavlina
Telerik team
 answered on 11 Aug 2014
2 answers
134 views
Please view the attached screen shot.

We have a web form (in sharepoint) that has a parent question of radiobuttonlist type. Based on the option selected we make a div visible below the question that displays a question with a radcombobox control. Please note we are simply toggling the div that shows the combobox via javascript so it exists in the mark up at all times.

The combobox is loaded on demand. However when we click on the combobox to load the items on demand we get the error in the screen shot. I can see that the target does exist in the html markup.

If we replace the radio button control with a dropdownlist and keep everything else the same then it works perfectly. The problem only seems to occur when we use it with a radio button list.

The other odd thing I have noticed is that if the radio button is loaded with an option selected then everything works perfectly. It only seems to happen if the radio button has no option selected when the page loads.

I have tried to create a web project to demonstrate this however I have not been able to recreate the problem. The problem is that our solution is very complex and to replicate the exact scenario in a web project in its simplest form might be very difficult and time consuming.                                                                                                        
The only thing I can suggest is that I can give you access to our system. I have implemented the combobox with load on demand as per your recommended approach.             











Nencho
Telerik team
 answered on 11 Aug 2014
1 answer
106 views
I am using the Rad Editor tool in a web application. The editor is used to automatically load basic HTML templated forms to be filled out. The problem I am having is when I click inside the editor, on a read-only element (i.e. a table data like <td contenteditable="false" unselectable="ON">Example</td>) anywhere within the form, the cursor focuses to the start of the first read-only element. Also, I am able to edit the read-only. However, if I click in the editor box elsewhere (not on a read-only element), the cursor is placed in the cell that I click. Is there a way to set the cursor focus to the first editable cell if a read-only element is clicked on?

Thanks in advance 
Ianko
Telerik team
 answered on 11 Aug 2014
1 answer
87 views
I've been passed a task of presenting a web based image onto which a user can place markers (symbols such as triangles, squares, circles, dotted lines etc, preferrably in preset colours). The brief was to present the users with a list of these symbols that they could select then click on the image to 'place' them (basically, custom brushes or stamps - similar to the circle and rectangle already present).

I've been going through the custom tools options but can't see if this is possible nor not.

Is it possible, or is this something that hasn't been implimented (yet)?

Thanks in advance for your response.
Vessy
Telerik team
 answered on 11 Aug 2014
1 answer
344 views
Hi,
  I have a small issue while exporting data to export i have 50k records in my grid, when i'm exporting to pdf getting System.OutOfmemory exception.
  Is there any way to resolve this issue.
  feel happy if solution like below.
 1) when its reaching to out of memory exception application should display a popup window by displaying message like 'there is no space in RAM ..bla..bla' or The size of the file exceeds to the current free size of the RAM.

Can someone plz help in this issue.

Thanks ,
Jagadeesh.

Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
191 views
Hi

I have a requirement of loading images in a thumbnail rotator and on click of the thumbnail, open the image in bigger size. The user then should be able to edit the image like cropping, adding text etc and should be able to save it back to the database in the blob format.

I am successful in loading the images as thumbnails in a RadRotator control, from the database using datasource.
However, could you advise if it's possible to load the clicked image in a new RadImageEditor control in Rotator.ItemClick event. And then save it back to the database when it's edited (cropped, marked, text added etc)

Thanks
Slav
Telerik team
 answered on 11 Aug 2014
1 answer
271 views
i am developing a tool where i need a drag and drop option in the treeview. i found about telerik which is easier way to use that in asp.net.
multiple people will be working on this tool in organization. So can i use telerik webUI dll in building the application?.. Do i need to buy it or can i use it for free of cost.
I am just using Telerik Dll please suggest me.
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
274 views
I want to keep max width of Radgrid to 1200px

I am adding cloumns dynamically ,

my requirement is to increase width dynamically as cloumns are added and scrolls when it reach to 1200px


thanks
kishor
Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
3 answers
228 views
Hi

Im using the AutoCompleteBox control to search items via a Web Api and selected value then stored as token. When submitting the form the saving of the tokens work fine but the token no longer appear in the box - its as if its lost from the view state. The functionality to search again is also lost from the box.

Any ideas or advise, see ASPX markup below:

<telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteCostCenter" EmptyMessage="Search" Width="100%" ViewStateMode="Enabled" EnableViewState="true"
InputType="Token" DropDownPosition="Automatic" DropDownWidth="550" DropDownHeight="200" OnClientRequesting="autoComplete.Requesting" Skin="MetroTouch" MinFilterLength="3" >
<WebServiceSettings Method="search" Path="~/api/cost/" />
</telerik:RadAutoCompleteBox>

Shinu
Top achievements
Rank 2
 answered on 11 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?