Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
247 views
Hello, how can I change the colors of this dialog (borders and backgrounds) for the Simple skin?

How can I change the fonts of the labels?

Thank you

AB
Bozhidar
Telerik team
 answered on 31 Oct 2012
1 answer
53 views
As usual I'm trying to learn new technology overnight.  I have a couple of scenarios I need to design for and I was wondering if someone could point me to the right demos.

First of all, there's the classic dropdown from a foreign key table (for example, a customer editing form with a dropdown for states.)  I've already implemented that using the RadGrid's defaults and LinqDataSources.  Put a GridDropDown column in and bind it to a second LinqDataSource.  The dropdown displays in the popup.  Utterly simple. 
Now it appears that what I should do (to allow for design flexibility) is use the NeedDataSource event (no data source controls on the screen.)  Given that requirement, what would be the simplest way to implement the same scenario?   Is is possible to still let the grid do most of the work or do I need to implement a FormTemplate and bind the dropdown in there?  (Forget this one. Already solved it.)


Second, imagine a grid with checkbox and/or dropdown columns.  It's possible that we will want to implement a grid in which a user goes down the list, makes a few changes, and then hits submit to update everything at once.  Is that possible?

Marin
Telerik team
 answered on 31 Oct 2012
3 answers
104 views
hello
I need to know if it is possible to maintain the columns in edit mode,
without lost this mode when the page makes a
"pageLoad", because this is exactly what happens to me.
I can not put anything in the aspx of radgrid,
because it is a radgrid with autogenerated columns.


I put the columns in edit mode with the following method:

foreach (GridDataItem item in RadGrid1.Items)
        {
            item.Edit = true;
        }
        RadGrid1.MasterTableView.Rebind();



thank you very much
Shinu
Top achievements
Rank 2
 answered on 31 Oct 2012
1 answer
168 views
HI

im Using  ItemStyle-CssClass="rwStyle_Brkmgnt"  to apply border for the for grid cells
but this border is getting show only to the First Row of grid

my code ASPX:
<telerik:GridNumericColumn ItemStyle-CssClass="rwStyle_Brkmgnt"  ItemStyle-Wrap="false" UniqueName="NoOfOffices" DataField="NoOfOffices" >
                      </telerik:GridNumericColumn>
CSS:

.rwStyle_Brkmgnt
{
    border-right: solid 1px #c1c1c1;    
    border-bottom: solid 1px #c1c1c1;         
}

Please see the attachment   Screen shot how the CSS is getting Applied

how to Apply border to Whole Grid

Shinu
Top achievements
Rank 2
 answered on 31 Oct 2012
2 answers
146 views
hi.
I am using the rad Grid control  and it is bound to a datatable in code behind.
I want to change each cell to a hyperlink field at runtime and configure  NavigateUrl. When I'm clicking each row  a new page show. How can I do that?
Parnia
Top achievements
Rank 1
 answered on 31 Oct 2012
1 answer
360 views
Is there a way to determine the current sort order of a radgrid, or do I have to keep track of it myself whenever a column header is clicked?
Princy
Top achievements
Rank 2
 answered on 31 Oct 2012
1 answer
129 views
hi All,

I have a dropdown (programgroup) in my edit form for which I want to set the selectedvalue in the code behind and not in aspx. For that I have to know the value that is in the radgrid cell for that column. Please see the code below. I have a different datakey and this program group cannot be the datakey.

This is my aspx definition:
In MasterTable View:
   <telerik:GridBoundColumn UniqueName="ProgramGroup" HeaderText="Program Group" DataField="ProgramGroup" DefaultInsertValue="">  </telerik:GridBoundColumn>

In the EditForm Template:
<asp:DropDownList ID = "ddlProgramGroup" runat = "server"  TabIndex="8" Width="200px" DataTextField = "List_Item" DataValueField = "List_Value" DataSource ="<%# dsProgramGroup(true) %>" >
</asp:DropDownList>

In the CodeBehind:
  Private Sub rgSearchResults_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles rgSearchResults.ItemDataBound
        If TypeOf e.Item Is GridEditFormItem And e.Item.IsInEditMode Then
            Dim item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            Dim ddlDropDownList As DropDownList = DirectCast(e.Item.FindControl("ddlProgramGroup"), DropDownList)
            If Not IsNothing(ddlDropDownList) Then
                Dim strPrg As String = "VALUE IN THE RADGRID CELL"
                ddlDropDownList.Items.FindByText(strPrg).Selected = True
            End If
        End If
    End Sub

Is there a way to find out the value of the program group is the radgrid_ItemDataBound event
Shinu
Top achievements
Rank 2
 answered on 31 Oct 2012
0 answers
79 views
Dear all

I need to whenever a user Add/Update/Delete a raw from the Grid
All clients' Grid update like the JTable example here
http://www.jtable.org/
All i found yet is updating the Grid by a timer, not instantly after the update happens

I'm using VS 2010 and VB code behind

Regards
Amr
Top achievements
Rank 1
 asked on 30 Oct 2012
0 answers
34 views
This has been driving me nuts for the past couple days. I have a grid that has a customized GroupFooterTemplate. There's three different levels of grouping (this doesn't seem to happen with just two). GroupLoadMode is set to Client, ShowGroupFooter is set to True, GroupsDefaultExpanded False, and RetainGroupFooterVisibility is True.

When the grid is initially displayed, all top level groups are shown collapsed with their group footers as expected. When I expand a top level group, the first second-level group is displayed with it's group footer, but the second second-level group is also showing a third-level group footer. If I expand and collapse that second-level group, it is now displayed correctly.

If I change the GroupLoadMode to Server, it works as expected. If I only have two levels of groups, it works as expected. Am I doing something wrong or is this a bug? I'm using version 2012.2.912.35

I've attached a picture showing what it looks like. In the group footer, I'm displaying the group index. As you can see, under "Segment 1"->"Group 2", there's three footers. The 0_2_2 shouldn't be there as that is from a group inside of "Group 2".
Ronald
Top achievements
Rank 1
 asked on 30 Oct 2012
3 answers
102 views
The subject pretty much says all.  I can't seem to find any way to get the columns in the inner-grid of a two-level hierarchical RadGrid to resize.  Below is the code I'm attempting:

ASPX:
<telerik:RadGrid ID="XLSView" runat="server" AutoGenerateColumns="True" AllowMultiRowSelection="true" Width="600px">
    <MasterTableView Width="100%">
        <DetailTables>
            <telerik:GridTableView Width="100%">
                <Columns>           
                    <telerik:GridTemplateColumn UniqueName="chkDup" HeaderText="Select">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkDup" runat="server">
                            </asp:CheckBox>
                        </ItemTemplate>
                        <HeaderStyle Width="200px" />
                    </telerik:GridTemplateColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="true" />
    </ClientSettings>
</telerik:RadGrid>

VB:
Protected Sub XLSView_DetailTableDataBind(sender As Object, e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles XLSView.DetailTableDataBind
 
...
            Dim test As DataTable = New DataTable()
            test.Columns.Add("FileID")
...
            For Each dupFile As FILE In dupFiles
                Dim dr As DataRow = test.NewRow()
                dr("FileID") = dupFile.FILEID
...
            Next
            e.DetailTableView.DataSource = test
 
------------------------------------
 
    Protected Sub XLSView_ColumnCreated(sender As Object, e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles XLSView.ColumnCreated
        If e.Column.UniqueName = "Description" Then
            Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn)
            boundColumn.HeaderText = "DescriptionA"
            boundColumn.ItemStyle.Width = 600
            boundColumn.HeaderStyle.Width = 600
            boundColumn.FooterStyle.Width = 600
            boundColumn.FilterControlWidth = 600
        End If
    End Sub

I get a good hierarchial grid, with the only exception being that the column of checkboxes that's in the ASPX will not widen and the numerous column resize attempts in the ColumnCreated function(which DOES fire correctly; the HeaderText property does change to "DescriptionA") also will not widen.  Can anybody please tell me what I'm doing wrong?

Thank you for any help you may have in advance.

Patrick
Patrick
Top achievements
Rank 1
 answered on 30 Oct 2012
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?