Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
484 views
Is there any way to create a stacked bar chart without explicitly creating different series? We have a table that returns three columns; Category, Status, and a numeric value. We'd like to have the chart show each category as a stacked bar, with the status items stacked together; however, we don't know up front how many different status values will exist in the result set. The original RadChart control supported this, but we can't figure out any way to do it within the RadHTMLChart.
Danail Vasilev
Telerik team
 answered on 16 Oct 2014
1 answer
144 views
Hello,

I have configured the Telerik editor to display the RadEditorStatistic module in the toolbar.xml file (<modules>
<module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true" dockable="true" />
</modules>). However, the word and character count statistics does not show up at the bottom of the editor only with the design mode setting. I need to configure both design and preview mode to enable the character and word count display. Is the prerequisite to have preview mode setting enabled to display the word and character count?

Thanks,
Chuck 
Dobromir
Telerik team
 answered on 16 Oct 2014
1 answer
67 views
HI,

I have (In a rather compex asp.net page)  a grid inside an asp.net Panel .
The hierachy look like that:

...
<telerik:RadMultiPage  runat="server" ID="xxx" SelectedIndex="0" Height="100%" Width="100%">
<telerik:RadPageView  ID="xxx" runat="server" Height="100%" >
<telerik:RadAjaxPanel  ID="xxxl" runat="server"  Height="100%" Width="100%" LoadingPanelID="xxx">
<telerik:RadGrid  ID="xxx" runat="server"   ../



What I want is that the grid should have a FIXED height of say 500px. If there are more rows in the grid than one can Show in the 500px grid , vertical scrollbars should be displayed.

Of course the first I tried was to set the HEIGHT of the grid to height="500". Unfortunately this property has (in my case) no effect of the height of the grid.

What I currently get is that the height of the grid is determined by the number of rows that gets bound to the grid. If there are e.g. many rows bound to the grid the height of the grid is very very heigh, regardless of the height I set via the height property.

What am I doig wrong ? How can I force the grid to have a FIXED height of say 500 px asnd force the grid to Display vertical scrollbars if necessary ??

Hope one can help.

Best regards
Hans-Juergen 



Galin
Telerik team
 answered on 16 Oct 2014
1 answer
76 views
Dear Admin,
I am using RadGanttChart in one of my project I have large amount of filed in my Task table is there is way we can give edit button in RadGanttChart and redirect to edit task page or some how display popup to edit task other fileds?

Regards,
Shakti
Hristo Valyavicharski
Telerik team
 answered on 16 Oct 2014
8 answers
1.1K+ views
Hello, all.

I have a tricky dynamic/programmatic creation issue which is I think different from any of the other ones I've been reading about here, i.e. "how do I programmatically create a column?", "how do I programmatically create a grid?" etc. I'm familiar with all the online references regarding those and have no problems there. My scenario:

  1. I have a RadGrid that is declared statically in the ASPX page.
  2. This RadGrid contains all GridBoundColumns, except for one GridTemplateColumn.
  3. In this GridTemplateColumn, I have only an empty <ItemTemplate></ItemTemplate> declared. (I also tried declaring an empty <EditItemTemplate></EditItemTemplate>, makes no difference.)
  4. Based on a condition that is only available after the RadGrid is databound (i.e. I perform a check on the contents of a column, similar to "((TextBox)gridItem["RenderHint"].Controls[0]).Text")...
  5. ...I then dynamically create a control and add it to the GridTemplateColumn (e.g. create a TextBox tb, then do something like "gridItem["Value"].Controls.Add(tb);"). I've found that since the condition is based on the data in the item, I need to do this step in ItemDataBound.

Everything I've described so far works perfectly. So here's where the trouble begins.

When it comes time to persist data back to the DB, in my ItemCommand for the RadGrid which receives the "Save" (from e.CommandName), I have a call to GridEditableItem.ExtractValues. This call to ExtractValues finds and pulls data for every other column (which is in edit mode at any rate), except for my GridTemplateColumn! As described above, this is the column where I am dynamically instantiating and adding a control.

If I perform the instantiation and addition earlier as a test (e.g. Page_Init), then of course the control is found - but my condition which is based on data is not yet available. In other words, even though I would love to build the grid programmatically in Page_Init, I can't do so because I don't know what kind of control I need to instantiate that early!

Ideas please? Regards,

Allen

Chris
Top achievements
Rank 1
 answered on 16 Oct 2014
9 answers
93 views
Hi,

We are using ExpandDelay in combination with ClickToOpen.
When users that are in a hurry clicks around in menues, it sometimes ends up in a state where sub-items can't be opened anymore.

Sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="menu.aspx.vb" Inherits="TestaTredjepartWeb.menu" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <table>
                <tr>
                    <td>
                        <telerik:RadMenu ID="menu" runat="server" RenderMode="Lightweight" ClickToOpen="true" ExpandDelay="1000">
                            <Items>
                                <telerik:RadMenuItem Text="Test1" Value="item1">
                                    <Items>
                                        <telerik:RadMenuItem Text="1"></telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="2">
                                            <Items>
                                                <telerik:RadMenuItem Text="22"></telerik:RadMenuItem>
                                                <telerik:RadMenuItem Text="23"></telerik:RadMenuItem>
                                            </Items>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="3"></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Test2" Value="item2">
                                    <Items>
                                        <telerik:RadMenuItem Text="1"></telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="2"></telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="3"></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>

In this sample do the following:
  1. Click the Test2 menu item to open it
  2. Move the cursor fast to Test1 item and click it before it open by itself (within 1 second since ExpandDelay=1000)
  3. Keep the mouse over the Test1 so it opens by itself
  4. When this has happened, the sub-items below Test1 (2->) can't be opened in any way until the menu is closed by clicking beside the menu!

You might think that this doesn't happen often, but for some users it actually does.
One other thing is that I think the second click should open it directly without waiting for the expandelay...

Regards
Andreas

Boyan Dimitrov
Telerik team
 answered on 16 Oct 2014
2 answers
69 views
Hi,
I am using "UI for ASP.Net AJAX Q2 2014", Telerik.Web.UI.dll version is 2014.2.618.45 and Visual Studio 2013, developing a website. 

On one of my webpage, upon a button click, I need to open up license agreement and need to ask user to "Agree" in order to continue. If user presses Disagree, want to take some actions serverside. 
I have a RadGrid, inside ItemTemplate, I have a linkButton and I want to open up this license agreement, based on a data field value, so lets say if that datafield value is "1" it should open up license agreement, if that datafield value is "0", it do not need to open up that license agreement. But if it opens up license agreement, I should be able to get "Agree" and "Do not Agree" on serverside.
<asp:LinkButton ID="lnkAddProduct"
CausesValidation="true" ValidationGroup="ValidationGroup2"
ToolTip="Add To Cart"
runat="server" CommandArgument='<%# Eval ( "PriceListID").ToString() %>'
CommandName="addproduct"><img style="border:0px" alt="" width="22px" height="22px" src="../Images/icons/shopcartapply3.ico"/> </asp:LinkButton>

So I want to display license agreement text upon click of a button, with Agree and Do not Agree buttons, and want to code on both "Agree" and "Do not agree" click. 
For License Agreement Text, I am fine using PDF to display or can also display Text, whatever is easy.

What I want to know is, is there any way to achieve above functionality using any of the Telerik Control? 

Nirav
Top achievements
Rank 1
 answered on 16 Oct 2014
6 answers
591 views
I recently changed a regular GridBoundColumn to a GridTemplateColumn so that it may serve as a RadComboBox instead of a textbox which allows users to choose from a dropdownlist or type in their own value which can be dynamically saved to the list. I do this in the Insert/Update methods of the Radgrid which will update the tables for the dropdownlists just fine. However, the RadGrid itself no longer finds a value for the column and inserts NULL into its actual column. I will break it down

RadGridTable
Columns: ClaimantID, StartDate, EndDate, NoteStatus

RadComboBoxTable
Columns: NoteStatusID, Text, ect.

The RadGrid has an aspx sqldatasource with an Insert command into the RadGridTable. This worked perfectly fine.
I added a new OnInsertMethod through C# that will grab the value from RadComboBox and put it into the RadComboBoxTable. This now works fine but on insert and update the value NULL gets put into the RadGridTable. Every other value works just fine.

Here is my RadComboBox:




<telerik:GridTemplateColumn FilterControlAltText="Filter NoteStatus column" HeaderText="Note Status" SortExpression="NoteStatus" UniqueName="NoteStatus" Visible="true">
                                <ItemTemplate>
                                    <%#DataBinder.Eval(Container.DataItem,"NoteStatus") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="rcbNoteStatus" runat="server" DataField="NoteStatus" Text='<%#DataBinder.Eval(Container.DataItem,"NoteStatus") %>' EnableLoadOnDemand="true" OnItemsRequested="rcbNoteStatus_ItemsRequested" DataTextField="Description" DataValueField="Status" ></telerik:RadComboBox> 
                                </EditItemTemplate>
 </telerik:GridTemplateColumn>
Viktor Tachev
Telerik team
 answered on 16 Oct 2014
1 answer
224 views
Hi guys.

I need some help to implement this scenario: OnButton1_Click I need to close radwindow, and redirect the parent page.

Thnx in advance
Marin Bratanov
Telerik team
 answered on 16 Oct 2014
2 answers
131 views
Hi,

I am trying to toggle the visibility of a searchbox on my page using a button.
but for some reason the searchbox never disappear.

<asp:ImageButton
    ImageUrl="Images/zoom-search-2-icon.png"
    AlternateText="Search"
    ToolTip="Search"
    Height="32"
    Width="32"
    runat="server"
    CssClass="iconImageStyle"
    OnClientClick="Search_Click()" />
 
<telerik:RadSearchBox
    ID="CmbBx_Search"
    runat="server"
    Width="550px"
    EmptyMessage="Search..."
    OnClientSearch="PerformSearch"
    ShowSearchButton="true">
    <DropDownSettings Height="400" Width="300" />
    <WebServiceSettings Path="Main.aspx" Method="GetResults" />
</telerik:RadSearchBox>
 
<script type='text/javascript'>
    function Search_Click() {
        toggle_visibility('CmbBx_Search');
    }
 
    function toggle_visibility(id) {
        var e = document.getElementById(id);
        if (e.style.display == 'block')
            e.style.display = 'none';
        else
            e.style.display = 'block';
    }
</script>

From the code behind if I change the Visibility, it works.
But I do not want to do this from the code behind. I need to do it from client-side javascript.
Mickael
Top achievements
Rank 1
 answered on 16 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?