Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 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
564 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
104 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
394 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
530 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
486 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
181 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
1 answer
128 views
Hello

Can anyone help with this CSS issue I have within my RadTreeNodes? The nodes of my RadTreeView are each instantiated with a node template that is dynamically loaded from an ASCX user control for each node using the Itemplate InstantiateIn method, as standard. This works fine, except that the markup generated for each node does not inherit the css styles from my external css stylesheet file that applies for the rest of the page. There is no problem with the styles and the file, it is something to do with the way that the user control is loaded. Normally I would expect to be able to insert a link in the ASCX markup, and for the control to link to the external CSS file that way:

<link rel='stylesheet' type='text/css' href='~/mypath/mystylesheet.css' />

This doesn't seem to work for a user control that is dynamically added when each RadTreeNode is instantiated. What is the recommended technique for allowing a user control to inherit CSS styles from the page, when the user control is used dynamically as the template for each node?

Thanks very much if anyone can cast some light on this mystery.

Regards

 
Paul Robertson
Top achievements
Rank 1
 answered on 30 Jul 2011
1 answer
94 views
Hi dear,
when i click on rotator i see this error: "Microsoft JScript runtime error: Object doesn't support this property or method"
this is my javascript code for itemclicked:

function

 

itemClicked_handler(sender, args)

 

{

log(sender.get_id() +

" item was clicked. Item index is " + args.get_item().get_index());

 

 

// gets reference to the rotator object

 

 

var rotator = $find("RadRotator1");

 

 

var currentIndex=args.get_item().get_index();

 

 

// Sets currently shown item by its index

 

rotator.set_currentItemIndex(currentIndex);

}

I have 2 rotator, RadRotator1 and RadRotator2. When I click on one of the 4 items of RadRotator2,  RadRotator1 must be initiate with that clicked item of RadRotator2.
nasrin
Top achievements
Rank 1
 answered on 30 Jul 2011
2 answers
896 views
I have a RAD Grid that I am using as a worklist for users.  One of the columns needs to have a button that is called "Complete" that they can click to remove this from the worklist (a simple database update for that record)).

       <telerik:GridButtonColumn CommandName="Complete" Text="Complete" 
            UniqueName="column">
        </telerik:GridButtonColumn>


However, what event of RadGrid is called when I click this button?
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Jul 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?