Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
311 views
Hi,

I have radgrid,for which I am using inbuilt edit functionality.
Edit Template contains some controls along with the Button. on click of this button,another set of same controls should be added in the edit template. Please refer edittemplate.png and edittemplate1.png 


Also after saving these detail from Edit template we need to display TWO record inside the RadGrid row.Please refer radgrid.png
Kostadin
Telerik team
 answered on 15 Aug 2012
2 answers
71 views
I have a menu with a checkboxlist inside of an ItemTemplate.  When the menu expands, the user can check whatever boxes they want and close the menu.

But the checkbox list will be created dynamically so I want to know if I can get the width of the template to grow with the size of it's contents.

Thanks
Javier
Top achievements
Rank 1
 answered on 15 Aug 2012
1 answer
74 views
I'm evaluating Telerik controls and have a question on the best grid type control to use to lay out certain data. I've attached an image of the layout I'm trying to achieve.

Can this be done? The challenge here would be to sum up groups of data in the same control. I'm assuming that the grand total at the bottom of the grid could be done within a footer.

Thank you for your help on this. 

Terry
Kostadin
Telerik team
 answered on 15 Aug 2012
1 answer
170 views
I have a button and a RadProgressArea button in one page to execute a batch job. When I click the button and wait for some time, I click the cancel button, it have no any response. Anybody know why?

  protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RadProgressArea1.Localization.UploadedFiles = "Completed Steps: ";
                RadProgressArea1.Localization.CurrentFileName = "Step: ";
                RadProgressArea1.Localization.TotalFiles = "Total Steps:";
            }
        }


        protected void RadButtonProcess_Click(object sender, EventArgs e)
        {
            RadProgressContext context = RadProgressContext.Current;
            context.SecondaryTotal = "100";
            for (int i = 1; i < 100; i++)
            {
                context.SecondaryValue = i.ToString();
                context.SecondaryPercent = i.ToString();
                context.CurrentOperationText = "Doing step " + i.ToString();
                if (!Response.IsClientConnected)
                {
                    //Cancel button was clicked or the browser was closed, so stop processing
                    break;
                }
                // simulate a long time performing the current step
                System.Threading.Thread.Sleep(100);
            }
        }



 <telerik:RadProgressManager runat="server" ID="RadProgressManagerCode" />
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True"
        ProgressIndicators="FilesCountBar,
                          FilesCountPercent,                      
                          SelectedFilesCount,                      
                          CurrentFileName,                      
                          TimeElapsed">
    </telerik:RadProgressArea>

 <telerik:RadButton ID="RadButtonProcess" runat="server" Text="Process Comparision"
                    OnClick="RadButtonProcess_Click">
                    <Icon PrimaryIconCssClass="rbConfig" PrimaryIconLeft="4" SecondaryIconTop="4" />
                </telerik:RadButton>
Plamen
Telerik team
 answered on 15 Aug 2012
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
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?