Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views

Hi

How can we have navigation like on the left on this page http://www.gordonramsay.com/thesavoygrill/theatre/Pre_theatre where navigation items have different attributes even when they are not selected or hovered over?

Thanks

Regards

Kate
Telerik team
 answered on 10 Aug 2011
1 answer
59 views
Hello,
 My Goal: To use the default AlternatingItemStyle. To evaluate each grid row, if that grid rows Order column = PreviousRow's Order column, then set the CurrentRows.BackColor = PreviousRows.Backcolor.

My Problem seems to be, that the BackColor doesn't exist in the RadGrid_ItemDataBound() event.
I don't want to set my own AlternatingItemStyle in a .CSS for this, because My Whole Site is managed via Telerik Skins, and if I want to chagne the skin, i don't want to have to change this AlternatingStyle to match.

How can I capture what the Color is?

My Code:

 

 

//Changing the backcolor so that rows w/ the same order number show the same color
if (e.Item is GridDataItem && e.Item is GridTableRow)
{
    int rowNumber =  e.Item.DataSetIndex;
      
    if (rowNumber >= 1)
    {
        GridDataItem previousRow = RadGrid1.Items[rowNumber - 1];
        GridDataItem currentRow = (GridDataItem)e.Item;
        string prevMilestoneOrder = previousRow["Order"].Text;
        //Set current row back color to previous row back color if they have the same order
        if (prevMilestoneOrder.Equals(currentRow["Order"].Text))
            currentRow.BackColor = previousRow.BackColor;              //<------- previousRow.BackColor does not exist yet
    }
}

 

 


Tsvetina
Telerik team
 answered on 10 Aug 2011
1 answer
94 views
When I get the popup that says "Error loading Radchart image.... Display Stack Trace?" and hit "OK", I get a blank page. How can I disable this all together and have .NET show me the stack trace?

Thanks!
Evgenia
Telerik team
 answered on 10 Aug 2011
1 answer
80 views
Hi All,
We have configured the Rad Editor (RadEditor to edit List Items) feature in our WSS environment.

On trying to pick the template using the template manager it dosent shows up the documents in the document library.

The loading wheel keeps rotating displaying nothing. 
On the top of it till the time we click the template manager there is no javascript error on the page. but upon clikcing the template manager 
the page throws sme javascript error saying

Message: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data


how would we take it forward

Rumen
Telerik team
 answered on 10 Aug 2011
3 answers
144 views
Hi,
I am using Rad Grid and using Template Field I am doing Filtering and sorting but issue arises at the time of sorting that small sort image comes below text i want it right side of text i tried many combination in style-sheet but no success.

My template column is as:
<telerik:GridTemplateColumn ReadOnly="true" AllowFiltering="false"  GroupByExpression="CloseOutType Group By CloseOutType" DataField="CloseOutType" SortExpression="CloseOutType" >
                   <HeaderTemplate>
                   <table>
                   <tr>
                   <td style="width:20%"><asp:Image ID="imgCloseOutType" ImageUrl="~/Images/closeout_type.png" runat="server" /></td>
                   <td style="width:80%">
                   <asp:Button  ID="btnheaderCloseOutType" Title="Sort by Interim/Workbook"  runat="server"
                        CommandName="Sort" CssClass="LabelViewForButton" CommandArgument="CloseOutType" Text="Interim/Workbook" />             
                   </td>
                   </tr>
                   </table>
                 </HeaderTemplate>
                   <ItemTemplate>
                      <div style="text-align:center">
                      <asp:Label ID="lblCloseOutType" runat="server" Text='<%# eval("CloseOutType") %>'></asp:Label>
                      </div>                   
                   </ItemTemplate>
                   </telerik:GridTemplateColumn>

And style Sheet as:
/*sorting, reordering*/
 
.RadGrid_Vista .rgHeader .rgSortAsc
{
    background-position:3px -248px;
    height:10px;  
}
 
.RadGrid_Vista .rgHeader .rgSortDesc
{
    background-position:3px -198px;
    height:10px;
}
 
.GridReorderTop_Vista,
.GridReorderBottom_Vista
{
    width:9px !important;
    height:9px !important;
    margin-left:-5px;
    background:0 0 no-repeat url('Grid/sprite.gif');
}
 
.GridReorderBottom_Vista
{
    background-position:0 -50px;
}

I am attaching both screens for better understanding. (See Attachment)

Thanks....



Rajneesh
Top achievements
Rank 2
 answered on 10 Aug 2011
3 answers
245 views
Simple question, looking for a simple answer: How do you change the hover color in RadMenu ?

So far my research has shown me nothing but seemingly overcomplicated measures (custom CSS classes etc.) just to change what you would think would be a fairly obvious control paramater.

The Black skin has a default hover color of green, I need it to be orange...it's that simple !

If anyone can tell me where the control setting is for that, I would greatly appreciate it (I find it hard to believe that cusom CSS is required to modify such an obvious thing). I also looked though the CSS file for the Black skin, and there was one hex value that was green, after changing that to orange, the green remained anyway...

Totally frustrated,

Bazz
Kate
Telerik team
 answered on 10 Aug 2011
2 answers
96 views
Hello, I have a master page that contains a RadWindowManager, with a number of RadWindows Defined. I have working code from an earlier project in which no master page was used, where I can save the window's position after it's moved, by using the OnClientDragEnd event. This does not seem to get fired in the master page version. Here is the RadWindowManager from the master page:

<telerik:RadWindowManager ID="RadWindowManagerMaster" runat="server" OnClientDragEnd="WindowMoved" PreserveClientState="true"
    Behaviors="Close, Move" Behavior="Close, Move">
    <Windows>
        <telerik:RadWindow ID="BinAssignmentDialog" runat="server" Title="Bin Assignment" Height="384px"
            Width="530px" Left="400px" ReloadOnShow="true" OnClientDragEnd="WindowMoved"
            ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false"
            Top="80px" />
    </Windows>
</telerik:RadWindowManager>

The window is apparently using this definition as the window size agrees with the above. The code that opens the window follows:

function ShowBinAssignmentDialog(bintolotid) {
 
    var oWndMgr = $find("<%= RadWindowManagerMaster.ClientID %>");
    var oWnd = oWndMgr.Open("BinAssignmentDetail.aspx?btl=" + bintolotid, "BinAssignmentDialog");
    var x = readCookie('BinAssignmentDialogLeft');
    var y = readCookie('BinAssignmentDialogTop');
    if (x) {
        oWnd.moveTo(x, y);
    }
    else {
        oWnd.moveTo(80, 80); // move to top left 
    }
    return false;
}

The client method "WindowMoved" looks like the following:

function WindowMoved(sender, args) {
    debugger;
    window.setTimeout(function () {
        SaveSizeAndPosition(sender, args);
    }, 10);
}

Yet the debugger is never hit. This arrangement worked before I moved the RadWindowManager to the master page. Any suggestions would be appreciated.

Steve
neebs
Top achievements
Rank 2
 answered on 10 Aug 2011
3 answers
320 views
Hi.

I'm using the method below to place all rows in edit mode...
for (int i = 0; i < RadGrid1.PageSize; i++)
{
    RadGrid1.EditIndexes.Add(i);
}
RadGrid1.Rebind();

It works fine but my RadGrid has three levels of parent child relationships and this only works on the first level. How do I get it to affect all levels? Thanks in advance.
<telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" DataSourceID="SqlDataSource1" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false" GridLines="None" ShowGroupPanel="True" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowMultiRowEdit="true">
    <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
    <MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="EmissionFactorGroupID" AllowMultiColumnSorting="True" PageSize="10" CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText=" Add New Emission Factor Group" CommandItemSettings-ShowAddNewRecordButton="true" CommandItemSettings-ShowExportToExcelButton="true" EditMode="InPlace" NoDetailRecordsText="No emission factor groups to display." EditFormSettings-EditColumn-CancelText="Cancel" EditFormSettings-EditColumn-ButtonType="ImageButton">
        <DetailTables>
            <telerik:GridTableView AllowMultiColumnSorting="true" DataKeyNames="EmissionFactorID" DataSourceID="SqlDataSource2" Width="100%" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="false" CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText=" Add New Emission Factor" CommandItemSettings-ShowAddNewRecordButton="true" EditMode="InPlace" NoDetailRecordsText="No emission factors to display.">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="EmissionFactorGroupID" MasterKeyField="EmissionFactorGroupID" />
                </ParentTableRelation>
                <DetailTables>
                    <telerik:GridTableView AllowMultiColumnSorting="true" DataKeyNames="EmissionGasBreakdownID" DataSourceID="SqlDataSource3" Width="100%" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="false" CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText=" Add New Gas" CommandItemSettings-ShowAddNewRecordButton="true" EditMode="InPlace" NoDetailRecordsText="No gases to display.">
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="EmissionFactorID" MasterKeyField="EmissionFactorID" />
                        </ParentTableRelation>
                        <Columns>
                            <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionGasBreakdownID" DataType="System.Int32" SortExpression="EmissionGasBreakdownID" UniqueName="EmissionGasBreakdownID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorID" SortExpression="EmissionFactorID" UniqueName="EmissionFactorID" DataType="System.Int32">
                            </telerik:GridBoundColumn>
                            <telerik:GridDropDownColumn DropDownControlType="RadComboBox" DataType="System.Int32" DataField="GasID" HeaderText="Gas" SortExpression="GasID" UniqueName="GasID" DataSourceID="SqlDataSource4" ListTextField="GasName" ListValueField="EmissionGasID">
                            </telerik:GridDropDownColumn>
                            <telerik:GridBoundColumn DataField="Factor" DataType="System.Decimal" HeaderText="Factor" SortExpression="Factor" UniqueName="Factor" DataFormatString="{0:0.000000000000}">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="UOM" HeaderText="UOM" SortExpression="UOM" UniqueName="UOM">
                            </telerik:GridBoundColumn>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit..." UpdateText="Save your changes..." CancelText="Cancel your changes..." InsertText=" Add new item..." />
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you wish to delete this gas?" />
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <Columns>
                    <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorID" DataType="System.Int32" HeaderText="EmissionFactorID" SortExpression="EmissionFactorID" UniqueName="EmissionFactorID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Factor" DataType="System.Decimal" HeaderText="Factor" SortExpression="Factor" UniqueName="Factor" DataFormatString="{0:0.000000000000}">
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn DataField="EffectiveFrom" DataType="System.DateTime" HeaderText="Effective From" SortExpression="EffectiveFrom" UniqueName="EffectiveFrom">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridDateTimeColumn DataField="EffectiveTo" DataType="System.DateTime" HeaderText="Effective To" SortExpression="EffectiveTo" UniqueName="EffectiveTo">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Source" HeaderText="Source" SortExpression="Source" UniqueName="Source">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorGroupID" DataType="System.Int32" HeaderText="EmissionFactorGroupID" SortExpression="EmissionFactorGroupID" UniqueName="EmissionFactorGroupID">
                    </telerik:GridBoundColumn>
                    <telerik:GridNumericColumn DataField="IPCCTier" DataType="System.Byte" HeaderText="IPCC" SortExpression="IPCCTier" UniqueName="IPCCTier" HeaderStyle-Width="20px" ItemStyle-Width="20px" NumericType="Number">
                    </telerik:GridNumericColumn>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit..." UpdateText="Save your changes..." CancelText="Cancel your changes..." InsertText=" Add new item..." />
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you wish to delete this emission factor?" />
                </Columns>
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <ExpandCollapseColumn Visible="True">
                </ExpandCollapseColumn>
            </telerik:GridTableView>
        </DetailTables>
        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="EmissionFactorGroupID" DataType="System.Int32" HeaderText="EmissionFactorGroupID" SortExpression="EmissionFactorGroupID" UniqueName="EmissionFactorGroupID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="GroupName" HeaderText="Group Name" SortExpression="GroupName" UniqueName="GroupName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ResourceType" HeaderText="Resource Type" SortExpression="ResourceType" UniqueName="ResourceType">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ResourceName" HeaderText="Name" SortExpression="ResourceName" UniqueName="ResourceName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ResourceUOM" HeaderText="UOM" SortExpression="ResourceUOM" UniqueName="ResourceUOM">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Region" HeaderText="Region" SortExpression="Region" UniqueName="Region">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OwnerTenantID" HeaderText="Owner Tenant ID" SortExpression="OwnerTenantID" UniqueName="OwnerTenantID" DataType="System.Int32" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="Shared" DataType="System.Boolean" HeaderText="Shared" SortExpression="Shared" UniqueName="Shared">
            </telerik:GridCheckBoxColumn>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit..." UpdateText="Save your changes..." CancelText="Cancel your changes..." InsertText=" Add new item..." />
            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you wish to delete this emission factor group?" />
        </Columns>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="True">
    </ClientSettings>
</telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Aug 2011
1 answer
115 views
I have a RadMenu on the MasterPage. In the content page when a button is clicked a RadWindow pops up. But a part of this window is  overlayed by the menu control so I'm not able to close the window. Is there a property on the RadMenu that sets the window on the top?

Thank you,
Neelima
Shinu
Top achievements
Rank 2
 answered on 10 Aug 2011
1 answer
96 views
Hi, i would like to use the a combobox in the grid item template and i would like to populate the combobox with data from my db, but also do the databinding from the codebehind, is there a way to do this? 
Princy
Top achievements
Rank 2
 answered on 10 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?