Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
89 views
How RadEditor Design, HTML, Preview button text rename?
sangki
Top achievements
Rank 1
 answered on 05 Apr 2011
3 answers
424 views
<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    Codebehind="ManageFAQsNew.aspx.cs" Inherits="TRAC.Connect.WebSite.ManageFAQsNew"
    Title="TRAC Connect :: Manage FAQs" %>
  
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="Caption.ascx" TagName="Caption" TagPrefix="cap" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MasterContentPlaceHolder" runat="server">
    <asp:Panel ID="HeightAdjusterPanel" runat="server" Height="660" Width="98%">
        <cap:Caption ID="MyCaption" runat="server" CaptionText="Manage FAQs" />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        </telerik:RadWindowManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="radGridManageFAQs">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="radGridManageFAQs" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" InitialDelayTime="20"
            MinDisplayTime="20">
        </telerik:RadAjaxLoadingPanel>
          <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function PopUpShowing(sender, eventArgs) {
                                    var popUp = eventArgs.get_popUp(); 
                                    var popUppopUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px")); 
                                    var popUppopUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px")); 
                                    var windowHeight = (typeof window.innerHeight != 'undefined' ? window.innerHeight : document.body.offsetHeight); 
                                    var windowWidth = document.body.offsetWidth; 
                                    if (popUppopUpHeight == "") popUppopUpHeight = 300; // if the height isn't set on the popup, default to 300px    
                                    popUp.style.position = "fixed"; 
                                    popUp.style.left = (Math.floor((windowWidth - popUppopUpWidth) / 2)).toString() + "px"; 
                                    popUp.style.top = (Math.floor((windowHeight - popUppopUpHeight) / 2)).toString() + "px"; 
                
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadGrid ID="radGridManageFAQs" runat="server" AutoGenerateColumns="False"
            PageSize="15" AllowSorting="True"  ShowStatusBar="True" AllowMultiRowEdit="true"
            OnNeedDataSource="radGridManageFAQs_DataSource">
            <MasterTableView CommandItemDisplay="TopAndBottom" TableLayout="Fixed" EditMode="PopUp"
                DataKeyNames="FaqId,FaqPosition,Category">
                <NoRecordsTemplate>
                    <div>
                        There are no records to display
                    </div>
                </NoRecordsTemplate>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="CategoryCode.Description" HeaderText="Category"
                                FieldAlias="CategoryCode.Description" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="CategoryCode.ResultPosition" FieldAlias="CategoryCode.ResultPosition" />
                            <telerik:GridGroupByField FieldName="CategoryCode.Description" FieldAlias="CategoryCode.Description" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" FilterControlAltText="Filter EditCommandColumn column"
                        EditImageUrl="~/images/Edit.bmp">
                        <HeaderStyle Width="20px" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="FaqId" Display="False" HeaderText="Faq Id" UniqueName="FaqId"
                        FilterControlAltText="Filter FaqId column" />
                    <telerik:GridBoundColumn DataField="FaqPosition" Display="False" UniqueName="FaqPosition"
                        HeaderText="Faq Position" FilterControlAltText="Filter FaqPosition column" />
                    <telerik:GridBoundColumn DataField="CategoryCode.Description" Display="False" UniqueName="Desc"
                        HeaderText="Category Description" FilterControlAltText="Filter Desc column" />
                    <telerik:GridBoundColumn DataField="CategoryCode.ResultPosition" Display="False"
                        HeaderText="Category ResultPosition" UniqueName="ResPos" FilterControlAltText="Filter ResPos column" />
                    <telerik:GridBoundColumn DataField="Text" HeaderText="FAQ Text" UniqueName="Text"
                        FilterControlAltText="Filter Text column" Display="false">
                        <HeaderStyle Width="300px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Category" HeaderText="Category" Display="False"
                        UniqueName="Category" FilterControlAltText="Filter Category column" />
                    <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" UniqueName="Subject"
                        FilterControlAltText="Filter Subject column">
                        <HeaderStyle Width="600px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Author" HeaderText="Author" UniqueName="Author"
                        FilterControlAltText="Filter Author column">
                        <HeaderStyle Width="50px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DateCreated" HeaderText="DateCreated" UniqueName="DateCreated"
                        Display="False" FilterControlAltText="Filter DateCreated column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ExpirationDate" HeaderText="Expiration Date"
                        UniqueName="ExpirationDate" FilterControlAltText="Filter ExpirationDate column">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this user?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn" FilterControlAltText="Filter DeleteColumn column" ImageUrl="~/images/Delete.bmp">
                         <HeaderStyle Width="30px" />
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings EditFormType="WebUserControl" UserControlName="FAQEditor.ascx"
                    PopUpSettings-Modal="true" PopUpSettings-Width="900" InsertCaption="Add New FAQ"
                    CaptionFormatString="Edit FAQ">
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <CommandItemSettings ExportToPdfText="Export to Pdf" AddNewRecordText="Add New FAQ" />
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
             
        </telerik:RadGrid>
    </asp:Panel>
</asp:Content>

Attached sceenshots and code above.

If i remove Grid Client Settings. Popup Box shows correctly but i can't adjust scroll for my grid and grid grouping option.

Let me know what I am doing wrong.

Thanks,
Maria Ilieva
Telerik team
 answered on 05 Apr 2011
1 answer
80 views
I have 8 items in my legend and it is reusing colors , it seems like there are only 6 colors by default with the built in skins. How can I add my own colors for the chart?  I am using a Pie chart.

Thanks!
Sia
Telerik team
 answered on 05 Apr 2011
1 answer
64 views
i just purchased the Telerik Developer tools and wanted to add the RadMenu control (or something equivalent to it) into an existing Classic ASP web site.  That's classic ASP site with .asp pages. 

Can I use the Rad Menu control for this?  If not. are there any other Telerik controls that can be used?

Are there instructions anywhere to do this. 

Thanks for your assistance.
Shinu
Top achievements
Rank 2
 answered on 05 Apr 2011
1 answer
86 views

hello.

I'm using Asp.Net Ajax 2010 Q3 edition,

On the page i have RadMenu and RadGrid with PopUp edit form.

The problem is that when i move grid popup form over the menu, the menu hovers it, despite of that my popup is modal. (see the file)

Is this any bug or something?

Is there any solution?

thx.

Shinu
Top achievements
Rank 2
 answered on 05 Apr 2011
1 answer
78 views
I have a webforms app containing a paged gridview (e.g., 200 records - 50 rows and 4 pages).

When the user clicks on a button in a specific row of the grid (e.g., row 20 of the 4th page), another web page is launched to process that button click. When the user closes that page to return to the main gridview, the gridview databind event is rerun which redisplays the gridview starting at the item 1 on page 1.

However, I want to have the previous position maintained, so that the grid will automatically be scrolled to the the previously clicked gridview page and item.

How would I accomplish this?
Shinu
Top achievements
Rank 2
 answered on 05 Apr 2011
4 answers
85 views
Hi....

I want to Export the RadGrid datas to pdf .... But the problem is "Say if my grid contain value of 10 and if i set the page size to 5... only the visible 5 data only generated as pdf, but i want the second page value too(remaining 5 data)... could any one help with this thing.... please

Thanks in advance..

Regards
Suren
$uren
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
73 views
Hello Telerik Team,

Need your help, Is it possible to use "Datapager with RadDataGrid ".
 
Please let us know so that we can continue to use it.

Regards
Sudhakar
sudhakar
Top achievements
Rank 1
 answered on 05 Apr 2011
1 answer
64 views
Telerik Admin,

Good Day. I know that this thread is very old however the issue I encountered is somewhat very much related to what was raised by some of the users specially with Midhun Kumar Allu in: http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/radeditor-for-wcm-sharepoint-specialtags-and-scripts.aspx

Given Scenario:
1. We have MOSS web page(s) that contains <embed > tags.
Like if I view that page and view source of that I can see the following tags:

<embed height="240" width="320" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" src="http://video.abc.com/com/abcplayer/bin-debug/main.swf?i just omit other characters...." type="application/x-shockwave-flash"></embed>


2. And in a separate app. when we extract the content of this web page through moss webservice. everything is fine except for the <embed> tags. I am not sure but all info in <embed> tags will become something like this:
<pre id="RadEditorEncodedTag">PGVtYmVkIGhlaWdodD0iMjQwIiB...............................

Note: We are using the updated version of MOSS.

Question/Problem:
* Like I said my question is somewhat related to Midhun Kumar Allu except that mine is via Moss Content Extract. Can you please help me what configuration that I need to consider? What am I forgetting to include? How do we decode (or decrypt if applicable) that?

Really appreciate any quick feedback...
Regardz, -jepoy
Jepoy
Top achievements
Rank 1
 answered on 05 Apr 2011
1 answer
167 views
I have two button in RadComboBox in RadToolBarButton ItemTemplate:
<telerik:RadToolBarButton Font-Size="X-Small" CausesValidation="false" Value="column">
                         <ItemTemplate>
                         <table>
                         <tr>
                           <td align="right" valign="top">
                 <telerik:RadComboBox ID="RadComboBoxAddColumns" Height="20px" runat="server" EmptyMessage="Add Columns" HighlightTemplatedItems="True" AllowCustomText="True" Width="150px" 
                                Skin="Windows7"
                            <ItemTemplate>
                                <div>
                                    <asp:CheckBox runat="server" ID="chk1" Checked="false" Font-Size="X-Small"/><%# Eval("COLUMN_NAME") %>
                                </div>      
                            </ItemTemplate>
                            <FooterTemplate>
                            <div
                                <asp:Button ID="btnAdd" runat="server" Text="Add" CssClass="button" OnClick="btnAdd_Click"/>   <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="button" 
                                            OnClick="btnReset_Click"/>
                            </div>
                            </FooterTemplate>
                  </telerik:RadComboBox>  
            </td>
            </tr></table>
                         </ItemTemplate>
                        </telerik:RadToolBarButton>
And I need to map the code behind click event for each button, I can get reference of the button:
Button btnAdd = (Button)RadToolBar1.FindItemByValue("column").FindControl("RadComboBoxAddColumns").FindControl("btnAdd");
But how do I know which button is clicked? Please help!

Thanks a lot!
Shannnon
Top achievements
Rank 1
 answered on 05 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?