Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
179 views
Using a RadTreeView is it possible to have both server side and client side actions for a node click?  In my application I'm using a RadTreeView to load content into a separate panel when I click on a tree node.  The tree node click should do a call back to retrieve/load data then I'd like to be able to scroll the pane to a div in the content.  Having OnNodeClick and OnClientNodeClicked defined for a RadTreeView causes the client side to fire but not the server side.
john81
Top achievements
Rank 1
 answered on 15 Aug 2012
3 answers
254 views
I have a RadGrid on my page with the last data column being a GridTemplateColumn with a RadComboBox inside of it. I have been going by this example here to help familiarize myself with the RadGrid control. I know there is a DropDown column type, but I want to try and get this TemplateColumn working.

Whenever I click update on a row, my RadComboBox has the list of different Frequencies and has the proper one selected. When I select a different frequency and click update again to save those changes, the frequency isn't saved. It is still the previous one.

I have attached a picture of my model. OpenAccessDataSource is Task while FrequencyDS is TaskFrequency.

Here is my grid:
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None"
    AutoGenerateEditColumn="True" DataSourceID="OpenAccessDataSource"
    AllowAutomaticUpdates="True">
    <MasterTableView AutoGenerateColumns="False"
        DataSourceID="OpenAccessDataSource" DataKeyNames="Id">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" FilterControlAltText="Filter Id column"
                HeaderText="Id" SortExpression="Id" UniqueName="Id">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TaskName" FilterControlAltText="Filter TaskName column"
                HeaderText="TaskName" SortExpression="TaskName" UniqueName="TaskName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="NextRun" FilterControlAltText="Filter NextRun column"
                HeaderText="NextRun" SortExpression="NextRun" UniqueName="NextRun">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Enabled" DataType="System.Char" FilterControlAltText="Filter Enabled column"
                HeaderText="Enabled" SortExpression="Enabled" UniqueName="Enabled">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="Frequency" DataField="Frequency" UniqueName="Frequency">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem, "Frequency") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadComboBox runat="server" ID="FrequencyCB" DataTextField="Name" DataValueField="Name" DataSourceID="FrequencyDS"
                     SelectedValue='<%# DataBinder.Eval(Container.DataItem, "Frequency") %>' />
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>
DuelingCats
Top achievements
Rank 2
 answered on 15 Aug 2012
1 answer
35 views
We have a custom user control (let's say Prices.ascx) which is responsible for dynamically creating a number of RadNumericTextbox based on the configuration of a specific object. For example when WidgetA we display 10 price fields dynamically.  This user control works fine on any normal form.

Let's say we have a grid that provides a list of Widgets.  We are using a user control edit form for the widget.  The edit form also includes the custom Prices user control.  In ItemDataBound we call a method on the Prices user control to dynamically create the inputs based on which Widget we are editing.  This display and binding previous price entries works fine.

So we have
Grid
with WidgetEditControl
with Prices user control
On Grid ItemDataBound we call LoadPrices(id) method on the WidgetEditControl which calls another method on the Prices user control which dynamically adds the inputs needed

When attempting to pull in the data to save on the grid update command the viewstate and properties of the Prices user control are lost and we therefore can't pull them in to update.  Is there a way the prices user control can be added and/or bound so that when the update command on the grid fires the data from the prices user control is still available?

Tsvetina
Telerik team
 answered on 15 Aug 2012
3 answers
201 views
Hello,

I really have to say that I enjoy your Header Context Menu for the Rad Grid. I am currently trying to customize it for my project, using HeaderContextMenu_ItemCreated to set "Group by" and "Ungroup" invisible, and OnPreRenderComplete to add my own Rad Menu Items to it.
However, I would like to know how to access the click event of the Rad Menu Items I have added myself. Do I have to add an event handler here?

Thanks in advance,
Robin
Kostadin
Telerik team
 answered on 15 Aug 2012
6 answers
260 views
Using ASP.NET Rad Grid. I am trying to address requirement to display HTML in a grid, and to render same to Excel without extra html characters.

The issue is that data might contain html (inputs from email in html format) as well as plain text. The difference is that plain text has char 10 representing a line break, and html is a <br> tag. One attempt is to replace char 10 with <br> tags. This renders great in the grid, but presents false data when exported to excel, due to extra <br> tags. To remedy this, I think I could either (1)remove the <br> tags at time of exporting, or (2)have a hidden column without the extra <br> tags, and export that field instead of the one used for the grid.

I've been struggling with this for the longest time. Closest I came up with is link below, but this applies to WinForms, not ASP.NET. Can anyone help?

http://www.telerik.com/community/forums/winforms/gridview/export-to-excel-with-gridview.aspx
Daniel
Telerik team
 answered on 15 Aug 2012
1 answer
102 views

Hi friends

I have the function to compare the two date on "Onpopupclosing",

after comparing two date I displayed the message and after closing that message,

I want to set the initial date to that datepicker not selected date.

please help me

Eyup
Telerik team
 answered on 15 Aug 2012
0 answers
95 views
Hi,

I am using Radcombobox feature LoadOnDemand. In my radcombobox I have a label, textbox and a button control but when I try to click on a button the post back occurs but my onclick event doesn't fire.

Is this the problem because I am using LoadOnDemand ?

Any help would be greatly appreciated.

<telerik:RadComboBox ID="rcbProducts" runat="server" Width="300px" Height="300px" EnableLoadOnDemand="true" 
                                   DataTextField="ProductCodeAndDesc" DataValueField="LogisticProductKey" Font-Names="Arial"
                                   Font-Size="XX-Small" Skin="Windows7" EmptyMessage="- please select a product -"
                                   Filter="Contains">
                                   <ItemTemplate>
                                       <table>
                                           <tr>
                                               <td>
                                                   <asp:Label ID="lblProductName" Text='<%# Bind("ProductCodeAndDesc") %>' runat="server"></asp:Label>
                                               </td>
                                               <td style="text-align: right">
                                                   <asp:TextBox ID="txtIntervalDays" ValidationGroup="vgNumeric" Width="50px" MaxLength="5" Text='<%# Bind("RepeatIntervalDays") %>'
                                                       runat="server"></asp:TextBox>
                                                       <asp:Button ID="btnSaveIntervalDays" Text="Save" OnClick="btnSaveIntervalDays_Click" runat="server" />
                                                       <asp:Button ID="btnTest" Text="TEst" OnClick="btnTest_Click"  
runat="server" />
                                                   
                                               </td>
                                           </tr>
                                       </table>
                                   </ItemTemplate>
                               </telerik:RadComboBox>

Protected Sub btnTest_Click(ByVal sender As Object, ByVal e As EventArgs)
 
 
 End Sub

Protected Sub btnSaveIntervalDays_Click(ByVal sender As Object, ByVal e As EventArgs)
 
 
 End Sub

Muhammad
Top achievements
Rank 1
 asked on 15 Aug 2012
10 answers
234 views
Hi-
I would like to place a radslider in a repeater and have it (them) act as a thumbnail viewer. Similar to http://demos.telerik.com/aspnet-ajax/Slider/Examples/CustomScrollbar/DefaultCS.aspx. Only the repeater would generate several sliders to show product in different categories.

I know that this is done with JavaScript and the changing of divs so I believe it is not possible inside a repeater.

Does anyone know of an other way I could accomplish this?
Niko
Telerik team
 answered on 15 Aug 2012
2 answers
80 views
Hi,

I've been using version 2010.1.315.35 of the ASP.NET AJAX tools for quite some time now.  I'm in the middle of upgrading to the latest version (2012.2.724.35).  I use AsyncUpload in my application and use Flash in my application too.  Up until now version 2010.1.315.35 AsyncUpload has been using Flash in Firefox and Chrome (versions 14.01 and 21.0 respectively) but now that I've upgraded to 2012.2.724.35 flash is no longer being used and it appears to be falling back to using HTML.  I make extensive use of file filters so it's important that I can use AsyncUpload in flash mode.  I've noticed also that the demo at http://demos.telerik.com/aspnet-ajax/upload/examples/async/validation/defaultcs.aspx?product=asyncupload has the same problem.

My AsyncUpload control is specified as follows:

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
                                    OnClientFileUploadFailed="RadAsyncUploadOnUploadFailed"
                                    OnClientFileSelected="RadAsyncUploadOnFileSelected"
                                    OnClientFileUploaded="RadAsyncUploadOnFileUploaded"
                                    OnClientFileUploadRemoved="RadAsyncUploadOnUploadRemoved">
                                    <Localization Select="<%$ Resources:Localization, AttachFile %>" />
                                    <Localization Cancel="<%$ Resources:Localization, Cancel %>" />
                                    <Localization Remove="<%$ Resources:Localization, Remove %>" />
                            </telerik:RadAsyncUpload>
Is there something different I need to do in 2012.2 to get flash working?

Thanks
Andrew Dixon

Mohammed
Top achievements
Rank 2
 answered on 15 Aug 2012
1 answer
62 views
Whether telerik provide a skin like the chrome browser tab? It's really beautiful than telerik's provided skin.
Kate
Telerik team
 answered on 15 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?