Telerik Forums
UI for ASP.NET AJAX Forum
22 answers
270 views
I'm getting bad layout/rendering with my RadRibbonBar controls after I upgraded to 2011.3.1305 release. The controls appears to have all the RibbonBarGroups squashed together, overlapping each other so it's unreadable.

Here is a simple example -

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadRibbonBar ID="RadRibbonBar1" runat="server" Width="100%"  Skin="Office2007">
        <telerik:RibbonBarTab Text="Home">
            <telerik:RibbonBarGroup Text="Team Member Info" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblEmpName" runat="server" Size="Large" Text="" ImageUrlLarge="Images/LTCONTCT.GIF" />
                    <telerik:RibbonBarButton ID="lblDept" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblJob" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblPayType" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="SAP Info" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblEmpNum" runat="server" Size="Large" Text="" ImageUrlLarge="Images/LTCOMMNT.GIF" />
                    <telerik:RibbonBarButton ID="lblEmpSubGroup" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblHireDate" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblSupName" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Vacation" EnableLauncher="true" Width="300px">
                <Items>
                    <telerik:RibbonBarButton ID="lblVacTotal" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblVacUsed" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblVacAvail" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Personal Hours" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblPersHoursTotal" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblPersHoursAvail" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblPersHoursUsed" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Bonus Days" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblBonusDaysAvail" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblBonusDaysUsed" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Overtime" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblOverTimeCurrentWeek" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblOverTimeCurrentYear" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>
Ivan Zhekov
Telerik team
 answered on 31 Oct 2012
1 answer
52 views
Hi All,

i lost the filter value when change the pageindex and all the values bind in radgrid.

here i have attached my code:

 <telerik:RadGrid ID="radAccountSearch" runat="server" AllowFilteringByColumn="true" ShowGroupPanel="true" GridLines="None"
                AllowPaging="true" AllowSorting="true" OnPreRender="radAccountSearch_PreRender"
                PageSize="9" DataSourceID="ldSource" Skin="Vista" AllowCustomPaging="true">
                <PagerStyle Mode="NextPrevAndNumeric" />
                <MasterTableView TableLayout="Fixed">
                    <ItemTemplate>
                        <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
                        <asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>'
                            runat="server">
                            <b>ID : </b>
                            <%# Eval("ID")%>
                            <b>Name : </b>
                            <%# Eval("Name")%>
                            <br />
                            <b>Company : </b>
                            <%# Eval("Company")%>
                            <br />
                            <b>Mobile : </b>
                            <%# Eval("Mobile")%>
                            <b>PhoneNo : </b>
                            <%# Eval("Phone")%>
                            <b>Status : </b>
                            <%# Eval("Status")%><br />
                            <b>Email Id : </b>
                            <%# Eval("Email")%>
                            <br />
                            <b>City : </b>
                            <%# Eval("City")%>
                            <b>State : </b>
                            <%# Eval("State")%>
                            <b>Country : </b>
                            <%# Eval("Country")%><br />
                            <b>Address: </b>
                            <%# Eval("Address")%>
                            <br />
                        </asp:Panel>
                    </ItemTemplate>
                </MasterTableView>
                <GroupingSettings CaseSensitive="false" />
                <HeaderStyle Font-Bold="false" />
            </telerik:RadGrid>
            <asp:LinqDataSource ID="ldSource" runat="server" ContextTypeName="Account.AssetDataContext"
                TableName="AccountContacts" OnSelecting="dsContact_Selecting">
            </asp:LinqDataSource>


below is my CS file.

protected void radAccountSearch_PreRender(object sender, EventArgs e)
    {
        int itemCount = (sender as RadGrid).MasterTableView.GetItems(GridItemType.Item).Length + (sender as RadGrid).MasterTableView.GetItems(GridItemType.AlternatingItem).Length;
        foreach (GridItem item in (sender as RadGrid).Items)
        {
           
            if (item is GridDataItem && item.ItemIndex < itemCount - 1)
            {
                ((item as GridDataItem)["ID"] as TableCell).Controls.Add(new LiteralControl("<table style='display:none;'><tr><td>"));
                                
            }  
            
        }
    }

please i need your help...please help me...
Angel Petrov
Telerik team
 answered on 31 Oct 2012
3 answers
269 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
73 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
118 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
188 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
166 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
389 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
154 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
90 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?