Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 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
118 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
166 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
58 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
536 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
84 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
365 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
494 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
18 answers
457 views
I want to implement related RadComboBoxes and have been studying the demo in \RadControls for ASP.NET AJAX Q1 2010\Live Demos\ComboBox\Examples\Functionality\MultipleComboBoxes.  I added a Submit button to see what would happen on postback, and the only combobox that retains its value is the Continent combobox.  The Country and City comboboxes lose all their data.  I set EnableLoadOnDemand to true for the Country and City comboboxes, and then the selectedvalue and data in the drop-down was retained on postback, but if I try to select a different Country I get: "Conversion failed when converting the nvarchar value 'New Delhi' to data type int."  This happens on both the Country and City comboboxes whether EnableViewState is true or false.

What should I do to make the Country and City comboboxes retain the user's selection on postback?
Galobart
Top achievements
Rank 1
 answered on 31 Jul 2011
1 answer
154 views
Hello,
I am developing a web app using radajax and asp.net. my problem is Radbutton position. display Radbutton over the expanded menu item. see the attachment image. How can I solve it?

Thanks
Nahid
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Jul 2011
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?