Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
235 views
Hi,
MasterTableView.ExportToExcel(),MasterTableView.ExportToCSV() etc are not working  with Mozilla in the following scenario.
I paced the image buttons inside
<telerik:RadGrid>
 <MasterTableView>
  <CommandItemTemplate>
   <asp:ImageButton.....>
The same is working with Internet Explorer.
How can I make this work keeping the buttons inside <CommandItemTemplate>?

Thanks... 

 

Winni
Top achievements
Rank 1
 answered on 01 Aug 2011
1 answer
120 views
Hi all,

I honestly haven't needed any help with RadEditor for quite some time, but now some users on an old MOSS 2007 instance would like an old v4.5 bug fixed. Through "Your Account" I can download v5.2.3, but due to the need for additional AJAX configuration I'd just as soon not use this version. Instead I'd like to replace the version 4.5 we are running with version 4.5.6, but it doesn't seem to be available anywhere I can access via Your Account. I found 4.5.6 Lite fine, but not 4.5.6 Full.

Any help would be great. Thanks!
Stanimir
Telerik team
 answered on 01 Aug 2011
1 answer
162 views
I have a server side Panel and the Rad editor is within the panel.

Now when I try to disable the panel the Rad editor also should get disabled along woth other controls in the panel.

But RAD editor is not disabled ,but allows the user to edit the text.

The code is as follows.

 

<asp:Panel ID="pnlReqeuster" runat="server" CssClass="panel">

 

 

        <asp:Panel ID="pnlInterfaceDetails" runat="server" CssClass="panel" BorderColor="white">

 

                

                <

 

telerik:RadEditor MaxHtmlLength="8000" ID="txtDescription" runat="server" ToolsFile="../App_Data/ToolsFile.xml">

 

 

                </telerik:RadEditor>

 


 

        </asp:Panel>

 

 

</asp:Panel>

 

In thr code behind we give

pnlReqeuster.enabled =false and this should disable the rad editor but it is not getting disabled.
The screenshot of editor after the panel is disabled is attached.

Please help.

Rumen
Telerik team
 answered on 01 Aug 2011
1 answer
125 views

Dear Telerik Community,

Formatting display text in a GridButtonColumn doesn't seem to work.  Is there any way of formatting numeric types?

Thanks,
Michael

GridButtonColumn displayColumn = new GridButtonColumn();               
displayColumn .HeaderText = dataColumn.ColumnName;
displayColumn .DataTextField = dataColumn.ColumnName;
displayColumn .UniqueName = dataColumn.ColumnName;
displayColumn .DataTextFormatString = "{0:0.0000}";
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
186 views
Hi,

    In my page i have radtreeview, when i right click on child node(Lot 5) i am getting context menu "Start job" i want this option only.
    But when i am right click on parent node(Phase 1) of Lot 5 i am getting same "Start Job" context menu. I don't want  this option.

    Please find the attached screen shots.

    Here is my code.
Protected Sub contextmenu()
    Dim contextMenu1 As New RadTreeViewContextMenu()
    contextMenu1.ID = "contextMenu1"
    Dim menuItem1 As New RadMenuItem()
    menuItem1.Text = "Start Job"
    contextMenu1.Items.Add(menuItem1)
    RadTreeView1.ContextMenus.Add(contextMenu1)
    Dim contextMenu2 As New RadTreeViewContextMenu()
    RadTreeView1.ContextMenus.Add(contextMenu2)
    For Each node As RadTreeNode In RadTreeView1.GetAllNodes()
        node.ContextMenuID = IIf((node.Text = node_text.Text And node.Level = 2), "contextMenu1", "contextMenu2")
    Next
End Sub
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
63 views
Hi,

I'm using Fancybox to pull a page with an editor via the IFRAME technique.  Whenever I launch the page with the fancybox modal the editor does not work.  I can't click onto the input area to enter any text. 

Before I post my code, has anyone run into this before? It works fine with an inline fancybox modal. 


Dobromir
Telerik team
 answered on 01 Aug 2011
6 answers
550 views
Hi,

I have a RADGrid which has some boundcolumns and a templatecolumn. The template column has the Linkbutton.
Clicking on the Linkbutton will open a new window. Till here it is working fine. When the user clicks on one of the linkbutton, I want that row to be selected or make the font bold. I tried calling the client side script

window[

"<%= RadGrid1.ClientID %>"].MasterTableView.SelectRow(window["<%= RadGrid1.ClientID %>"].MasterTableView.Rows[rowIndex].Control, true);

 


This does not do anything. It is refresing the page. Any help will be appreciated.

Thanks,
Raji
Princy
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
94 views
Hi guys, I would need help for RadTimepicker.

I have 2 DatePickers to choose Start Date & End Date , And also 2 Time pickers to choose the Start Time & End Time.
However, I would want to validate something like. (Start Date is 31 July 2011 & End Date is 1 August 2011, Start Time is 10:00 AM & End Time is 08:00AM) which i couldnt figure out how to do it.(It's a different day so the validator shouldnt prompt me saying invalid due to the end time is earlier than start time). The most i can do is just use Compare Validate to compare the time on the same day which is not what i want. Could someone please help me on this? Thanks

Regards.
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
381 views
i want to open a radwindow from a button in a radgrid. the grid has ajax settings so that it can filter columns and display loading image without postback. However that appears to prevent the radwindow from displaying when a radgrid button is clicked (i think because a postback doesn't occur because i can step through the code that opens the window but the screen doesn't update). If i use a button outside the grid then the window pops up.

so my question is what's the best way to get the window to pop up from a button in the grid and still allow the ajax column filtering? i thought if i could force the buttons in the grid to postback then the window will pop up just like it does with the buttons outside the grid. The client setting EnablePostBackOnRowClick sounds promising but the buttons still aren't causing a postback.

Here's some code in case it helps:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="AccountGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="AccountGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Center" Transparency="25">
        <div class="loading" style="width:100%; height:100%; background-color:#ddd">
            <img src="./../../images/loading.gif" style="position:relative; top:120px;" />
        </div>
    </telerik:RadAjaxLoadingPanel>

    <asp:Button ID="PopUpWindowButton" runat="server" OnClick="PopUpWindowButton_Click" Text="Pop Up Window" />

    <telerik:RadGrid ID="AccountGrid" runat="server"
        DataSourceID="AccountSqlDataSource" OnItemCommand="AccountGrid_ItemCommand"
        AutoGenerateColumns="false" AllowFilteringByColumn="True" 
        AllowSorting="true" AllowPaging="True" PageSize="15" ShowFooter="True" 
        BorderStyle="Solid">
        <ClientSettings EnablePostBackOnRowClick="true">
        </ClientSettings>
        <GroupingSettings CaseSensitive="false" />
        <AlternatingItemStyle BorderStyle="Solid" />
        <MasterTableView>
            <Columns>
                <telerik:GridButtonColumn Text="Select" CommandName="Select" UniqueName="SelectColumn" ButtonCssClass="ButtonSmGray" AutoPostBackOnFilter="true" />
                <telerik:GridNumericColumn  
                    DataField="AccountID" UniqueName="AccountNumberColumn" HeaderText="Account #"
                    FilterDelay="1000" AutoPostBackOnFilter="true" FilterControlWidth="60" ShowFilterIcon="false">
                </telerik:GridNumericColumn>
                <telerik:GridBoundColumn 
                    DataField="Phone" UniqueName="PhoneColumn" HeaderText="Phone"
                    FilterDelay="1000" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn 
                    DataField="ContactName" UniqueName="NameColumn" HeaderText="Name"
                    FilterDelay="1000" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="70">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn
                    DataField="Address" UniqueName="AddressColumn" HeaderText="Address"
                    FilterDelay="1000" AutoPostBackOnFilter="true" ShowFilterIcon="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn 
                    DataField="City" UniqueName="CityColumn" HeaderText="City"
                    FilterDelay="1000" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn 
                    DataField="State" UniqueName="StateColumn" HeaderText="State"
                    FilterDelay="1000" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn 
                    DataField="DisplayZipCode" UniqueName="ZipColumn" HeaderText="Zip"
                    FilterDelay="1000" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ActiveItemStyle BorderStyle="Solid" />


        <HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
    </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
511 views
hi
i use these codes for fill combobox
//Item Request

 

protected void Customer_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
       {
           LoadCustomerData();
           (o as RadComboBox).Items.Clear();
           string text = e.Text;
           try
           {
               DataRow[] rows = CustomerData.Select("title LIKE '" + text + "*'");
               int itemsPerRequest = 20;
               int itemOffset = e.NumberOfItems;
               int endOffset = itemOffset + itemsPerRequest;
               if (endOffset > rows.Length)
               {
                   endOffset = rows.Length;
               }
               for (int i = itemOffset; i < endOffset; i++)
               {
                   (o as RadComboBox).Items.Add(new RadComboBoxItem(rows[i]["title"].ToString()));
               }
               e.Message = String.Format("رکورد <b>1</b>-<b>{0}</b> از <b>{1}</b> رکورد", endOffset.ToString(), rows.Length.ToString());
           }
           catch { }
       }

 

********************************************************************************

 

 

private void LoadCustomerData()
        {
            if (Cache["CustomerData"] == null)
            {
                DataTable words = new DataTable("words");
                DataColumn title = words.Columns.Add("title");
                DataColumn id = words.Columns.Add("id");
                string word = String.Empty;
                List<CDS.IAS.Logic.Sale.User.NameResult> result = CDS.IAS.Logic.Sale.Customer.Customer.GetCustomerName();
                foreach (var item in result)
                {
                    words.Rows.Add(item.FullName, item.ID);
                }
  
                Cache["CustomerData"] = words;
            }
  
            CustomerData = (DataTable)Cache["CustomerData"];
        }

********************************************************************************
and in page load:

if (!IsPostBack)

{ 

LoadCustomerData();

}
i just set Item but i need to insert value
beacuse i use to my program this code:combobox.selected value
please help to me
thanks a lot

Thad
Top achievements
Rank 2
 answered on 31 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?