Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
272 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
38 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
221 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
277 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
109 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
104 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
250 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
91 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
66 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
1 answer
99 views
hi there,
i now it might sound silly but i am new so, how can i have a menu with telerik for DNN form an html template i mean i have below codes that works fine with html and i need the same menu in DNN would anyone change this to a telerik menu skin so i might get the process.
and may be give me a tutorial of how to have the same menus as there are in html templates

my html menu was created by these css codes:

.menu.nav-bar{background: none; margin-top: 0px; border: 0px solid #ddd;}
.menu.nav-bar>li { display: inline-block; padding: 0; margin: 0; border-right: 0px solid #ddd; line-height:normal; padding:0px 0px;}
.menu.nav-bar>li li.parent ul { display: none;}
.menu.nav-bar li.parent ul {display:none;}
/* Main Navigation */
ul.menu.nav-bar {float:right;margin:10px 0 0 0; display:inline-block; width :1100px;}
ul.menu.nav-bar li a {color:#888; padding:6px 10px;  -webkit-transition: 0.3s ease;-moz-transition: 0.5s ease;-o-transition: 0.5s ease; transition: 0.5s ease;}
ul.menu.nav-bar li a:hover {color:#fff; text-shadow:0px 0px 10px rgba(255,255,255,1); text-decoration:none;}
ul.menu.nav-bar li.active a{color:#ccc; border:1px solid #111;box-shadow:inset -1px -1px 1px rgba(255,255,255,.05); border-radius:5px; border-right:1px solid #000; border-bottom:1px solid #000;}


/* Sub Menu Styling*/
ul.menu li.parent:hover ul, ul.menu li.over ul {background-color:#000; background-color:rgba(0,0,0,.85); border:1px solid #000; padding:10px 10px 0 10px; width:10em; box-shadow:inset 1px 1px 1px rgba(255,255,255,.1); border-radius:5px;}
ul.menu li.parent:hover ul li, ul.menu li.over ul li {width:100%; display:block; border-bottom:1px solid #333; padding:0 0 5px 0;}
ul.menu li.parent ul li:hover ul, ul.menu li ul li.over ul, ul.menu li.parent ul li ul li:hover ul, ul.menu li ul li ul li.over ul, ul.menu li.parent ul li ul li ul li:hover ul, ul.menu li ul li ul li ul li.over ul {margin-left:9em;}

Ivan Zhekov
Telerik team
 answered on 15 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?