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

I am stuck on a project for a while. please give me some suggestion.

The requirement is that there is a radlistbox which contains buttons in a radwindow AAA. Once I click any button inside the radlistbox, a new radwindow BXX will show up in a designed position according to which button has been clicked.If the button has not been clicked before,a new radwindow BXX will be opened. That means if I clicked two different buttons, two new radwindow BXX will be opened in the window. If the button has been clicked, there is no need to open new radwindow.

Also, the radwinow AAA which contains the radlistbox could be repositioned in the window. If it is repositioned, when I click any button inside the radlistbox, a position of new radwindow BXX according to the reposition.

My question 1 is. how to open multiple new radwindows BXX in desgined position? I use the code below and only get a radwindow BXX instead of multiple radwindow BXX.
 

 

 

function ShowWindow(assetId){

 

 

 

var pos = GetTopLeftWidthPosition(assetId);

 

 

 

var oMan = GetWindowManager();

 

 

 

var oWnd = oMan.getWindowById("WIDGETcf0376226a6944999bc3269b48fbc4ac");

 

oWnd.setUrl(

 

"<%=GetWidgetURL(Settings.PAGE_ASSETMARKETVIEW)%>" + "?aid=" + assetId, "WID_AMV_ONE"+assetId.toString());

 

oWnd.moveTo(pos.left,pos.top);

oWnd.show();

oWnd.setActive();

 

}

My question 2 is. When I reposition the radwindow AAA using the code below, it only work after second reposition.

 

 

 

var oMan= GetWindowManager();

 

 

 

var oWnd=oMan.getWindowByName("WIDGET74ce09f36ebe4fffa45389e9303526f2");

 

oWnd.setUrl("<%=GetWidgetURL(Settings.PAGE_ASSETSELECTOR)%>","WID_AMV_ONE");

 

 

 

oWnd.add_dragEnd(OnClientDragEnd);

oWnd.show();

 

 

 

var oMan= GetWindowManager();

 

 

 

var oWnd=oMan.getWindowByName("WIDGET74ce09f36ebe4fffa45389e9303526f2");

 

 

 

 

oWnd.setUrl("<%=GetWidgetURL(Settings.PAGE_ASSETSELECTOR)%>","WID_AMV_ONE");

 

 

 



 

 

 

function OnClientDragEnd(sender, eventArgs)

 

{

window.setTimeout(

 

function () {

 

bounds = sender.getWindowBounds();

}, 20);

}

Georgi Tunev
Telerik team
 answered on 12 May 2010
1 answer
66 views
We are using the rad editor 2008/q3 and are having two issues.

First, the find/replace dialog often covers the text that you're trying to find/replace.  Is there a way to move the dialog box dynamically so that it does not obscure the text is has found?

Second, the find/replace dialog has no border to set if off from the background that it covers.  Can I add a border to that dialog?

Thanks,
Ken
Rumen
Telerik team
 answered on 12 May 2010
3 answers
187 views
Hello!

I would like to seek guidance on how to best approach custom filters using date ranges with Start and End date values. On my grid, I only have one "Date" column that I would like to filter by 5 date ranges (I'm using a RadComboBox for the filter):
  • This Month
  • Last Month
  • Last 3 Months
  • Last 6 Months
  • Older than 6 Months

I can retrieve the correct dates using a RowFilter, as well as get the current filter value, but am not successful in displaying the filter results on the grid.

In my  class GridBoundColumnWithComboBoxFiltering : GridBoundColumn, this is what I have:
private void list_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
            filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
        }




protected override string GetCurrentFilterValueFromControl(TableCell cell)
        {
            if (((RadComboBox)cell.Controls[0]).Text == "Show All")
                return "";
            else
            {
                return ((RadComboBox)cell.Controls[0]).Text;
            }
        }

Thanks for your help!






Yavor
Telerik team
 answered on 12 May 2010
1 answer
92 views
OUr company purchased Telerik ASP.Net Ajax product and I am learning to use the RadScheduler control.
I have a question concerning discussion about data binding in your documentattion
Controls > RadScheduler > Data Binding > Using the Data Source Property:
I have my data source for all appointments in a Data Table (selected from a database with a completed schema) with each row of the table representing an approintment, I do not seem to understand how I could associate my data table to the List object, Appointments, as defined in the above mentioned document.
Could you help me with this?  Thanks.
Peter
Telerik team
 answered on 12 May 2010
2 answers
153 views
How do I find the GridGroupHeaderItem in EventArgs e

protected void ButtonApprove_Click(object obj, EventArgs e)  
{           
 // loop through rows  
    foreach (GridDataItem item in RadGrid1.MasterTableView.Items)  
    {  
     // How do I access the GridGroupHeaderItem ?  
    }  
Mike
Top achievements
Rank 1
 answered on 12 May 2010
4 answers
349 views
I am using the version of RadEditor that comes with Sitefinity 3.6.1936 and am having an issue when the content is just one line or paragraph long.

After entering a line of text, there will be no paragraph tags wrapping the text. If I use the HTML view to wrap the text in paragraph tags and then save, this will work. If I then edit the text again, even if no changes are actually made, the paragraph tags will be stripped out.

I am using IE8, this is because the editor in Firefox producing code like the following:

Paragraph number one.
<p></p>
Paragraph number two.



Is there a configuration option that I can stop the RadEditor from removing the paragraph tags? Is this a know bug?

Thanks
Dave Cooper
Stanimir
Telerik team
 answered on 12 May 2010
1 answer
123 views
Hi,

I am new to telerik implementation. In my current project which is running on .net feramework 3.5/VS2008/RadControls for ASP.NET AJAX Q1 2010 is having a requirement where I need to spell check a series of textbox controls and save to database. I am able to do this in two steps where I am asking user to first click on "Spell Check" button and then click again on "Save" button. Is it possible to delegate the spell check click event to this "Save" button?

I am trying to do like this:
Suggest me if I need to make any changes in the script.
<script language="javascript" type="text/javascript">  
 function spellCheck() {  
      var radSpell = GetRadSpell('<%= radSpellChecker.ClientID %>');  
      radSpell.StartSpellCheck();  
 }  
</script> 
 
<telerik:RadSpell ID="radSpellChecker" runat="server" ButtonType="None" IsClientID="True" /> 
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /> 

And in the code behind, I am adding this below statement in Page_Load event.
this.btnSave.Attributes.Add("onClick""return spellCheck();"); 

I tried setting up the RadControlsDir property for the spell checker with the path to a folder that contains spell folder with 3 scripts present in a "Scripts" folder.

Please suggest me the chagnes requried and also if any configuration settings are to be made.

Thanks,
Jagadeesh
Petio Petkov
Telerik team
 answered on 12 May 2010
1 answer
104 views

I used the Editor to make a simple heading of two centred lines of different text sizes.

The Html produced was:

<h1 style="text-align: center;"><span style="font-family: arial; color: #00b050;">&nbsp;  
<h2>Dinedor Cross Garage </h2> 
</span><span style="font-family: arial;">  
<h2></h2>  
</span> 
<h2></h2>  
<span style="font-family: arial;">  
<h1> 
<h3>Total care for Herefordshire Land Rover owners</h3> 
</h1> 
</span></h1

I think I started using <h1> for the first line and <h2> for the second and then changed this to <h2> and <h3>.  As you can see, the Html is a mess.

Is there a procedure you can recommend to avoid this sort of thing happening?

On a related issue, I note that when I click Enter, the Html inserted is <br/>.  This leads to problems when subsequently changing one of the "paragraphs" to a header - the whole lot changes to a header!  Wouldn't it be better for the Enter key to enter <p></p> and Shift+Enter to enter <br/>?  If so, is it possible to set the Enter key to do this?

Your help would be much appreciated.

Thanking you in anticipation.

Roger
Stanimir
Telerik team
 answered on 12 May 2010
3 answers
151 views
I have a simple master page, content page with a radgrid being populated from button click,  I have ajaxmanager, grid and button on the content page, everything works fine for the first click( when the page loads for the first time) I see the loading panel, isajaxrequest = true, but any subsequent click will return RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString())   = false which means the ajax request  is not being fired, what am I doing wrong?  I need to it be consistently showing the panelbar after the button_click  Please help


I have the below code on the content page. At btnsearch_click I have RadGrid1.databind
 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >  
 
<AjaxSettings>  
 
<telerik:AjaxSetting AjaxControlID="btnsearch" >  
 
<UpdatedControls>  
 
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>  
 
</UpdatedControls>  
 
</telerik:AjaxSetting>  
 
 
<telerik:AjaxSetting AjaxControlID="RadioButton1">  
 
<UpdatedControls>  
 
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />  
 
<telerik:AjaxUpdatedControl ControlID="RadioButton2" />  
 
</UpdatedControls>  
 
</telerik:AjaxSetting >  
 
<telerik:AjaxSetting AjaxControlID="RadioButton2">  
 
<UpdatedControls>  
 
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />  
 
<telerik:AjaxUpdatedControl ControlID="RadioButton1" />  
 
</UpdatedControls>  
 
</telerik:AjaxSetting >  
 
</AjaxSettings>  
 
</telerik:RadAjaxManager>  
 
  
Pavlina
Telerik team
 answered on 12 May 2010
1 answer
92 views
Hi!

I would like to add information to a RadDock that I also can access in the DockState from code behind. Is this possible?

This is related to my other question about get_text and set_text for RadDock client side. If this had been available I'm guessing that would do the trick but since it's not I wonder if there is some other way to get information from the client side into server side using DockState.

Cheers!
//Christoffer
Pero
Telerik team
 answered on 12 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?