Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
 I want to populate populate lable in the grid on combobox selectedindex when batchupdating is performed.
Princy
Top achievements
Rank 2
 answered on 10 Jun 2014
3 answers
639 views
I have added a radgrid, textbox and a button as follows:
  this._UpdatePanel.ContentTemplateContainer.Controls.Add(RadGrid1);
  this._UpdatePanel.ContentTemplateContainer.Controls.Add(TextBox1);
  this._UpdatePanel.ContentTemplateContainer.Controls.Add(Buton1);

The radgrid has a checkbox column which I have added through a GridTemplateColumn. On click of the button I want to know the rows that are selected. How can I do this on server side? Also is it possible to find the selected checkboxes client side?

Shinu
Top achievements
Rank 2
 answered on 10 Jun 2014
5 answers
96 views
Hi,

Seems this would be easy, but I am stuck.

I sometimes need to open a 2nd RadWindow on my page.  When I close it, the 1st RadWindow appears to still be "inactive."  Please see the attached screenshots.

I've also tried different variations of this code:

function onRWClose(sender, args) {
 
    var JobRW = $find("<%=JobRW.ClientID %>");
    jobvisible = JobRW.isVisible();
    if(jobvisible == true) {
        JobRW.isActive(true);
    }
     
}

Thanks for any help!

Jim
Marin Bratanov
Telerik team
 answered on 10 Jun 2014
5 answers
1.3K+ views
I am having issues with Paging within a Radgrid.  I have specified a PageStyle Mode="Advanced".   If I change the mode to NextPrevNumericAndAdvanced or any other type with the Go To First, Previous, Next and Go To Last page buttons these will work fine but in Advanced mode the Textbox to change the page and pagesize do not work.  It causes a postback on the page but does not update the grid data or the paging/pagesize textbox(es).  I am using NeedDataSource for my grid binding and when I break the code during this procedure the CurrentPageIndex is always set to 0.  Any help would be great.

Angel Petrov
Telerik team
 answered on 10 Jun 2014
1 answer
231 views
Hi,

I am new to telerik, I want to design page having a grid which should allow user to insert new row & allow batch update to modify exsisting items, grid should also have combo box columns. I want to poplate grid and all combo box kept in Edit item template on code behind.
please let me know how to do this.
Princy
Top achievements
Rank 2
 answered on 10 Jun 2014
1 answer
188 views
I have a RadGrid displaying 12 months of data that I would like to update in batch mode. I don't want to have to update each row individually. When the grid is displayed, the column headings disappear, but the grid populates from an external data source. The data is there, but no column headings. If I change the EditMode from Batch to any other option, the column headings appear. How do I get the column headings to show up whil in Batch mode?


<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="GetMiles" GridLines="None" AllowMultiRowEdit="True" AllowMultiRowSelection="True" AutoGenerateColumns="False" ShowHeader="False">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView DataSourceID="GetMiles" EditMode="batch" CommandItemDisplay="Bottom" ShowHeader="true" CommandItemSettings-ShowAddNewRecordButton="false" AllowNaturalSort="False">
<RowIndicatorColumn Visible="False">
</RowIndicatorColumn>
<CommandItemSettings ShowAddNewRecordButton="False"></CommandItemSettings>
<Columns>
<telerik:GridBoundColumn DataField="division" FilterControlAltText="Filter division column" HeaderText="Div" SortExpression="division" UniqueName="division">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="January" DataType="System.Double" FilterControlAltText="Filter January column" HeaderText="Jan" SortExpression="January" UniqueName="January">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="February" DataType="System.Double" FilterControlAltText="Filter February column" HeaderText="Feb" SortExpression="February" UniqueName="February">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="March" DataType="System.Double" FilterControlAltText="Filter March column" HeaderText="March" SortExpression="March" UniqueName="March">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="April" DataType="System.Double" FilterControlAltText="Filter April column" HeaderText="April" SortExpression="April" UniqueName="April">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="May" DataType="System.Double" FilterControlAltText="Filter May column" HeaderText="May" SortExpression="May" UniqueName="May">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="June" DataType="System.Double" FilterControlAltText="Filter June column" HeaderText="June" SortExpression="June" UniqueName="June">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="July" DataType="System.Double" FilterControlAltText="Filter July column" HeaderText="July" SortExpression="July" UniqueName="July">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="August" DataType="System.Double" FilterControlAltText="Filter August column" HeaderText="Aug" SortExpression="August" UniqueName="August">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="September" DataType="System.Double" FilterControlAltText="Filter September column" HeaderText="Sep" SortExpression="September" UniqueName="September">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="October" DataType="System.Double" FilterControlAltText="Filter October column" HeaderText="Oct" SortExpression="October" UniqueName="October">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="November" DataType="System.Double" FilterControlAltText="Filter November column" HeaderText="Nov" SortExpression="November" UniqueName="November">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="December" DataType="System.Double" FilterControlAltText="Filter December column" HeaderText="Dec" SortExpression="December" UniqueName="December">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
Radoslav
Telerik team
 answered on 10 Jun 2014
8 answers
816 views
Hello,
  I am using radgrid to display the data. I want to set the background colour of the parent row of the detail table in the rad grid.I want the colour from the start (extreme left) so that it covers the expandcol cell of master table too.
Please suggest.
Konstantin Dikov
Telerik team
 answered on 10 Jun 2014
1 answer
454 views
hi

I am always getting file count 0 and i don't know why? Is there anything i need to add in the web config file? Or is there anything that i may have missed? Please help. Thanks a lot

<telerik:RadAsyncUpload ID="upload" runat="server" AllowedFileExtensions="jpg,png,gif" Skin="Metro" InputSize="50">
                                <Localization Select="Browse" />
                            </telerik:RadAsyncUpload>

Protected Sub btnUpload_Click(sender As Object, e As EventArgs) Handles btnUpload.Click
        Dim stdWidth As Integer
        Dim stdHeight As Integer
        Dim filenameext As String = "None"
        Try
            Dim i As Integer = upload.UploadedFiles.Count
            If upload.UploadedFiles.Count > 0 Then
                For Each f As UploadedFile In upload.UploadedFiles
                    Dim filename As String = Session("accountid").Replace("-", "0")
                    Dim target As String = Server.MapPath(filename)
                    Dim filepath As String = "~/images/pic" & filename
                    If Not Directory.Exists(target) Then
                        Directory.CreateDirectory(Server.MapPath(filepath))
                    End If

                    Using originalimage As New Bitmap(f.InputStream)

                        Dim NewSize As System.Drawing.Size = New System.Drawing.Size(stdWidth, stdHeight)
                        Dim newimg As New Bitmap(NewSize.Width, NewSize.Height, PixelFormat.Format16bppRgb555)
                        Dim g As Graphics = Graphics.FromImage(newimg)
                        g.InterpolationMode = InterpolationMode.HighQualityBicubic
                        g.CompositingQuality = CompositingQuality.HighQuality
                        g.SmoothingMode = SmoothingMode.HighQuality
                        g.DrawImage(originalimage, New Rectangle(0, 0, 120, 120))
                        newimg.Save(Path.Combine(Server.MapPath(filepath), filename + f.GetExtension))
                        g.Dispose()
                        originalimage.Dispose()

                    End Using
                Next
            Else
                filenameext = "None"
            End If
        Catch ex As Exception
         
        End Try
    End Sub
Plamen
Telerik team
 answered on 10 Jun 2014
1 answer
101 views
Hi

I have a tree view inside a radcomboBox. This contains a list of location some 2 deep some 3.

Is it possible to collapse the 3rd level so that the top 2 are expanded, only the lower levels (if any exist) are collapsed.

Andy
Plamen
Telerik team
 answered on 10 Jun 2014
1 answer
152 views
Hi,

I am trying to get a RadTreeView to display some very basic data from a SQL Database.

The data is already filtered from the SQL Server so what ever the SQL Server finds, I want to display it all. There is no sort of Row 1 links with Row 2. They are all unique.
The format of the query is
ID, Date, Description.

What I am trying to do is get the Date displayed in the first node, and when it has been clicked, I would want the Description to be down below it.

I have attached a sample image on how it looks now.

My current code is very basic which is below.

<telerik:RadTreeView runat="server" ID="RadTreeView2" Skin="Metro" DataSourceID="GetNotesTicket" datatextfield="Date">
 
                                          
                                       </telerik:RadTreeView>




I have played around with trying to use DataBindings and Notes. As well as trying to use DataFieldID, DataValueField but still not happening.

I ideally would want to display it in a Template the Description so that the user can edit the data using a RadFormWindow so I would be putting some buttons in there to.

This is the closest example I can find on how I want it to work until I start looking at the button clicks. Link

Any help would be useful.

Thanks,




 












Plamen
Telerik team
 answered on 10 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?