Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi All,

I am using RadScheduler.

I want to show the tooltip for delete appointment.
ie when mouse goes over delete icon then it should show the tooltip as 'delete'


Thanks


Peter
Telerik team
 answered on 23 Oct 2008
3 answers
171 views
Hi there,

I'm experiencing an intermittent problem with the radscheduler, which is ajax enabled via an ajaxmanager.

The backwards and forwards links on the rad scheduler have a href of 'default.aspx#', which is fine as there is an onclick handler which handles the paging on the scheduler. What happens sometimes is that the onclick event seems to fail and the href fires which then moves the view to the top of the page. In my case due to the radscheduler being in a user control, the href link is something like 'UserControls/#', so when the href is mistakenly fired, it redirects to the user controls directory, and a page not found error occurs.

Is there any reason why the onclick event sometimes fails to fire?

Regards,
  Demetri.
Peter
Telerik team
 answered on 23 Oct 2008
1 answer
111 views
does anyone know how to delete all the rows in a grid on the client side ?
Yavor
Telerik team
 answered on 23 Oct 2008
1 answer
86 views
I have no idea how to use the FireCommandEvent. Actual the thing I want to do is after the user fill in the filter textbox the he/she will click a button ( instead of the default drop down list option) to trigger the filter action "contains"(but non case sensitive) , and there is another button for them to cancel the filter( same as "no filter" option), Would you please show me how can I do this with the FireCommandEvent? Thanks.
Daniel
Telerik team
 answered on 23 Oct 2008
3 answers
183 views
Hi,

I've got a composite control which contains a RadWindowManager and a RadWindow. It was using the older versions of the control and I initially swapped to the AJAX versions without trouble.

However the control is injecting some Javascript into the page which is no longer functioning. I have tried to get a reference to the RadWindow object using two different methods, both of which return a null object:

var oManager = GetRadWindowManager();
oManager.tile();
var oWnd = oManager.GetWindowById(windowName);
oWnd.show();  //errors as null object

var oWnd = $find('<%= _randWindow.ClientID %>');
oWnd.show(); //errors as null object

I've no idea why this occurring. What do I need to do to get the window object?

Cheers,
Matt
Georgi Tunev
Telerik team
 answered on 23 Oct 2008
4 answers
130 views
Basically, I have pages with controls on them like this (I've left the properties out, for brevity):

<asp:Panel id="DataFormPanel">
    <asp:Panel id="NamePanel">
        <...controls here that I want to ajaxify...>
    </asp:Panel>
    <asp:Panel id="AddressPanel">
          <cc1:RadCombobox id="Country_DDL" />
          <asp:TextBox id="Addr1"/>
          <cc1:RadComboBox id="State_DLL" />
          <asp:TextBox id="PostalCode" />
          <cc1:RadComboBox id="County_DDL" />
    </asp:Panel>
</asp:Panel>
<asp:LinkButton id="save" />

- I'm using the AddAjaxSettings of the RadAjaxManager, to ajaxify controls.
- My goal in the above scenario would be to:
   1. Ajaxify the ENTIRE DataFormPanel so that it updates when the user clicks the Save linkbutton (it becomes invisible).
  2.  Ajaxify the Country_DDL so that it updates ONLY the State_DLL when the selected value of Country_DDL changes.
  3.  Ajaxify the State_DDL so that it updates ONLY the County_DLL when the selected value of State_DDL changes.

- The reason why I want to only ajaxify the single DDL's above, is so that when a user selects a country and tabs to Addr1 textbox, they can enter a value in the textbox without having it "wiped out or cleared" when the ajax request comes back from the server and populates the State_DLL.

- In other words, my scenario calls for ajaxifying controls that are located within an ajaxified panel.

PROBLEMS:
- When I try to just ajaxify the separate DDL controls (Country so that it only updates State, and State so that it only updates County), I get ajax error messages telling me that I need to surround the State_DDL with another UpdatePanel.
- When I ajaxify Country_DDL and have it update the entire AddressPanel, then the State_DLL also updates the entire AddressPanel even though I have ajaxified it to ONLY update the County_DDL.

I'm looking for general guidance on how to ajaxify many individual controls, when they are included in an ASP Panel that is also ajaxified.

Thanks in Advance,
Brent
Maria Ilieva
Telerik team
 answered on 23 Oct 2008
10 answers
199 views
I have a grid and a RADCombo on a page.  The grid has its datasource mapped to a custom object.  When a user makes a selection in the drop down, I have some code that deletes all the underlying data displayed in the grid.  The data deletion is performed in the Itemsrequested event of the drop down

Ive traced through the code and this works ok, the problem is that the grid is never refreshed, the HTML stays the same even though there are now no rows to display.  In my code that does the deletion I've used Rebind() which I thought woud work.

private void DeleteSubCategories()  
        {  
            int id = -1;  
            string res = string.Empty;  
            bool ok = Int32.TryParse(this.HiddenArtistID.Value, out id);  
            if (ok)  
            {  
                res = categorymanager.DeleteAllSecondaryCategories(id);  
                if (!string.IsNullOrEmpty(res))  
                {  
                    RadGridSecondaryCategories.Controls.Add(new LiteralControl("Unable to delete secondary categories. Reason: " + res));  
                      
                }  
                RadGridSecondaryCategories.Rebind();  
                  
                  
            }  
        } 

The rebind does cause the NeedDataSource event to fire and no data is returned, so I how do I get the grid to refresh and show no rows ?

I have used a RADAJAX manager and added the grid to it in the PageLoad event

_RADAJAXManager = (Telerik.Web.UI.RadAjaxManager)Master.FindControl("RadAjaxManager1");  
            if (_RADAJAXManager != null)  
            {  
                _RADAJAXManager.AjaxSettings.AddAjaxSetting(this.RadGridSecondaryCategories, this.RadGridSecondaryCategories, this.RadAjaxLoadingPanel1);  
                  
            } 

 

Daniel
Telerik team
 answered on 23 Oct 2008
1 answer
332 views
Hi,

We are trying to implement a RadSplitter control which has 4 panes.

To make things easy, the splitter is 100% width and height of the page and each SplitterPane is 25% width and height, each pane is named Pane1 to Pane4 clock wise.

In Pane4, we have a RadTabStrip, RadMultipage and RadGrid in Page1.

Initially, the RadGrid has scrollbars but the scrollbar bottom is not visible.

When we resize Pane4, we would like the grid to continue to fill the width and height of the Pane taking in to account the height of the tabstrip.

ASPX code below:

<

 

telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="vertical">

 

 

 

<telerik:RadPane ID="radPane1" runat="server" Scrolling="None">

 

 

 

<telerik:RadSplitter ID="treeSplitter" runat="server" Width="100%" Height="100%" Orientation="horizontal">

 

 

 

<telerik:RadPane ID="treePane" runat="server">

 

 

 

<div class="containerHeading">

 

 

 

<span>TreeView</span>

 

 

 

</div>

 

 

 

</telerik:RadPane>

 

 

 

<telerik:RadSplitBar ID="SplitterBar2" runat="server" />

 

 

 

<telerik:RadPane ID="controlsPane" runat="server">

 

 

 

<div class="containerHeading">

 

 

 

<span>Controls</span>

 

 

 

</div>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadSplitter>

 

 

 

</telerik:RadPane>

 

 

 

<telerik:RadSplitBar ID="radSplitterBar1" runat="server" />

 

 

 

<telerik:RadPane ID="radPane2" runat="server" Scrolling="None">

 

 

 

<telerik:RadSplitter ID="RadSplitter2" runat="server" Width="100%" Height="100%" Orientation="horizontal" ResizeMode="proportional">

 

 

 

<telerik:RadPane ID="RadPane3" runat="server" Scrolling="None">

 

 

 

<div class="containerHeading">

 

 

 

<span>Map</span>

 

 

 

</div>

 

 

 

</telerik:RadPane>

 

 

 

<telerik:RadSplitBar ID="RadSplitBar1" runat="server" />

 

 

 

<telerik:RadPane ID="RadPane4" runat="server" Scrolling="None">

 

 

 

<div class="containerHeading">

 

 

 

<span>Tools</span>

 

 

 

</div>

 

 

 

<telerik:RadTabStrip ID="tabStrip1" runat="server" Style="width: 100%;" MultiPageID="RadMultiPage1" SelectedIndex="0">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab runat="server" Text="Noticeboard" Selected="True"></telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="History"></telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="Properties"></telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="Legend"></telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="Find"></telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="Alerts"></telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="RadMultiPage1" Height="100%" runat="server" SelectedIndex="0">

 

 

 

<telerik:RadPageView ID="RadPageView1" Height="100%" runat="server" Selected="True">

 

 

 

<asp:Timer ID="timerNoticeboard" runat="server" Enabled="false"></asp:Timer>

 

 

 

<telerik:RadAjaxManager ID="AjaxManager1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="timerNoticeboard">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" Height="100%" AllowSorting="True" GridLines="None" ShowStatusBar="True" AutoGenerateColumns="False">

 

 

 

<MasterTableView>

 

 

 

<RowIndicatorColumn>

 

 

 

<HeaderStyle Width="20px" />

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn>

 

 

 

<HeaderStyle Width="20px" />

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="Title" EmptyDataText="&amp;nbsp;" HeaderText="Title" UniqueName="Title"></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Description" EmptyDataText="&amp;nbsp;" HeaderText="Description" UniqueName="Description"></telerik:GridBoundColumn>
</
Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

</ClientSettings>

 

 

 

<FilterMenu EnableTheming="True">

 

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

 

</FilterMenu>

 

 

 

</telerik:RadGrid>

 

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView2" runat="server">History</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView3" runat="server">Properties</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView4" runat="server">Legend</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView5" runat="server">Find</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView6" runat="server">Alerts</telerik:RadPageView></telerik:RadMultiPage>
</telerik:RadPane>
</telerik:RadSplitter>

Many thanks,

Tom

Svetlina Anati
Telerik team
 answered on 23 Oct 2008
1 answer
256 views
Hi

I have a RadWindow which i would like to have popup on location
300,20

and with a width set to 610 and the height set to maximize to the availheight in the browser (of cause minus this 20)

However this does not work for me, the window gets a height which is much less that the availHeight.

Should i do something else ?



    function addNewClick() {  
        var oWind = $find("<%=RadWindow1.ClientID %>");  
        oWind.moveTo(300, 20);  
        oWind.setSize(610, window.availHeight);  
        oWind.setUrl("CalculationEdit.aspx?selectedID=0");  
        oWind.show();  
 
    } 
Georgi Tunev
Telerik team
 answered on 23 Oct 2008
1 answer
123 views
My Hierarchical RadGrid:
* RadGrid -> ClientSettings -> AllowExpandCollapse = true
* MasterTableView -> HierarchyLoadMode="Client"
* a MasterTableView and a GridTableView (in DetailTables).
* CommandItemTemplate on MasterTableView

1. I click the second row on the MasterTableView then  I click edit on the CommandItemTemplate .
Error 1:
Selection out of range
Parameter name: value

 
2. I click a row on the GridTableView then  I click edit on the CommandItemTemplate.
Error 2:
The row (GridTableView ) hides but the parent row is still expanded.
Daniel
Telerik team
 answered on 23 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?