Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
I am having an issue where the client-side method deleteFileInputAt() method is throwing an exception when I pass in a zero in the OnClientFileUploaded event.  It only does this in Internet Explorer.  Firefox works just fine, or at least it is not throwing an exception.  Any ideas please?

I have tried first calling the getUploadedFiles() method to check the count prior to calling the deleteFileInputAt(), but oddly I get a javascript error saying that the getUploadedFiles() method does not exist.  I am frustrated.

Here is the function I am call in the OnClientFileUploaded event.

 

 

function resumeFileUploaded(sender, args) {

 

sender.deleteFileInputAt(0);

}

Brent
Top achievements
Rank 1
 answered on 16 Dec 2010
3 answers
213 views
I have the following aspx code:
<telerik:RadComboBox ID="rcbEditProject" runat="server" SkinID="ddRegular" Width="375px" AutoPostBack="True" OnSelectedIndexChanged="rcbEditProject_SelectedIndexChanged">
</telerik:RadComboBox>

And I have this code in code behind:

 

 

 

Protected Sub rcbEditProject_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
Dim editedItem As GridEditableItem = CType(CType(o, RadComboBox).NamingContainer, GridEditableItem)
Dim rcbEditObstacle As RadComboBox = CType(editedItem.FindControl("rcbEditObstacle"), RadComboBox)
Dim rcbEditProject As RadComboBox = CType(editedItem.FindControl("rcbEditProject"), RadComboBox) rcbEditObstacle.Items.Clear()
Dim dtEditObstacle As Data.DataTable = Nothing
If rcbEditProject.SelectedValue = "" Then
Else
' I have the code to populate the child radcombo box .....

End
Sub

Problem:
My RadGrid is in RadAjax panel. In the Item data bound for Grid I am able to populate the values fine.
My problem is when I change the value in the Parent 'rcbEditProject' combo box the selected index changed EVENT IS NOT FIRED.
If I have a break in the grid item data bound procedure it DOES trigger the Break point!
The other strange thing is that when I click the 'Cancel' button (see code below) the selected index changed event is FIRED?

 

 

 

 

 

 

 

<asp:LinkButton runat="server" ID="lnkCancel" Text="Cancel" SkinID="lnkGvEditText" Font-Bold="true" CommandName="Cancel" CausesValidation="False" />

Please help?
Thanks Sanjay


 

 

 

Radoslav
Telerik team
 answered on 16 Dec 2010
6 answers
133 views
How do I keep the "Add Record" form open after a record is inserted?  Also, is there a way to have the "Add Record" form open by default?
Daniel
Telerik team
 answered on 16 Dec 2010
5 answers
182 views

I have several RadComboBox placed in the EditItemTemplate

Of a radGrid, when I changed it into the edit mode, some of the

ComboBox becomes "transparent", some of them become text
 and the user cannot select anything.

This happended occassinaly in our client site.Attached file is the screenshot.

Any ideal about this?

 

Thank you in advanced.

James Faw
Top achievements
Rank 1
 answered on 16 Dec 2010
1 answer
93 views
Hi,

I'm trying to set the default font properties of the saved content.

I've got a RadEditor control, I'm setting the default font and text color for the editor like below:
<telerik:RadEditor runat="server"  ID="RadEditor1">
          <CssFiles>
              <telerik:EditorCssFile Value="~/EditorContentArea.css" />
          </CssFiles>
        </telerik:RadEditor>
Which works fine in the editor, however, when I save the content, using RadEditor1.Content, that styling isn't kept.

How can I set the default font and text color so that it gets saved when I save the content?

Cheers,
Ola
Rumen
Telerik team
 answered on 16 Dec 2010
4 answers
140 views
I have spent 1 hour now looking for any information on installing that fucking trial version of the editor in my VS 2008. So far i have gone as far as unziping the file...


whats wrong with this???

can someone point to some link that explains how to install the trial version of the rad editor (which I only found as a ZIP) in my Visual studio 2008 so i can test it??
Rumen
Telerik team
 answered on 16 Dec 2010
3 answers
121 views
The border color on most of the Sitefinity Skinned controls is
border1px solid #C6C7D2;

The border on the editor is
border1px solid #828282;

Looks out of place combined with a bunch of the other sitefinity skinned controls.

*EDIT*
Actually after popping around the demo site, it seems fairly inconsistent what color the border is...?  Plop a bunch on a page and it looks a bit strange.
Vasil Yordanov
Telerik team
 answered on 16 Dec 2010
2 answers
74 views
Hi

We have our editor (version 2010.1.519.20) configured to use "PageTop" mode.  On pages where there is a lot of text (requiring vertical scrolling to edit content) users are using their mouse wheel to scroll up and down the page.  When this scrolling occurs the toolbar moves up/down the page (as expected) however the movement is far from smooth and the toolbar judders, flickers and disappears/reappears until it gets into the correct position.

A silimar forum post included a video which demonstrates my general scenario but as you can see the browser scrollbar is used (with slow scrolling) instead of mousewheel.  If you scroll using your mousewheel you will see what i mean (the problem gets more noticeable the bigger your toolbar)

Is it possible to make the scrolling smoother and can we in someway influence how the animation occurs ?

Thanks
Dobromir
Telerik team
 answered on 16 Dec 2010
1 answer
111 views

Hi Everyone,

I would like to ask two questions about the Scheduler.
1. I may just be a bit silly here but i cant seem to find the event handler for the save button on the default advanced form?

2. I have a database with a value 1 to 5. In my code i have resources like so

 

<

 

ResourceStyles
    <telerik:ResourceStyleMapping Type="Calendar" Text="example" ApplyCssClass="rsCategoryBlue" /> 
    <telerik:ResourceStyleMapping Type="Calendar" Text="example1" ApplyCssClass="rsCategoryOrange" /> 
    <telerik:ResourceStyleMapping Type="Calendar" Text="example2" ApplyCssClass="rsCategoryGreen" /> 
    <telerik:ResourceStyleMapping Type="Calendar" Text="example3" ApplyCssClass="rsCategoryRed" /> 
    <telerik:ResourceStyleMapping Type="Calendar" Text="example4" ApplyCssClass="rsCategoryYellow" />
</ResourceStyles>

I have copied most of this code from an online example and modified it for my needs. The example came with a context menu fully functioning with the option to change appointments background colour using resources

 

 

 

 

<

 

Items
    <telerik:RadMenuItem Text="Open" Value="CommandEdit" /> 
    <telerik:RadMenuItem IsSeparator="True" /> 
    <telerik:RadMenuItem Text="Appointment Type"> 
    <Items
        <telerik:RadMenuItem Text="example" Value="1" /> 
        <telerik:RadMenuItem Text="example1" Value="2" /> 
        <telerik:RadMenuItem Text="example2" Value="3" /> 
        <telerik:RadMenuItem Text="example3" Value="4" /> 
        <telerik:RadMenuItem Text="example4" Value="5" /> 
    </Items
    </telerik:RadMenuItem
    <telerik:RadMenuItem IsSeparator="True" /> 
    <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="Images/delete.gif" />
</Items>

 

 

 

var selectedAppointment = null;
var contextMenuSlot = null;
//Called when the user clicks an item from the appointment context menu
function appointmentContextMenuItemClicking(sender, eventArgs) {
var clickedItem = eventArgs.get_item();
if (clickedItem.get_text() == "Appointment Type") {
//Prevent the menu from closing if the user clicked the "Categorize" menu item
eventArgs.set_cancel(true);
return; }

 

 

}



This code works and changes the colour of my appointments perfectly. But i am having a problem setting the variables from my database to the appointment to give it the correct resource. I would much appreciate any help

Thanks

 

 

 

 

 

Mouse
Top achievements
Rank 1
 answered on 16 Dec 2010
1 answer
124 views
Hi Team,
I am having trouble when opening the popup (i.e. radwindow) from server side.
On client side of parent page, I have :

<div id="RestrictionZone" class="module" style="margin-top: 4px; height: 300px; width: 400px;">
  <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index:7001">
     <Windows>
    <telerik:RadWindow runat="server" ID="RadWindow1" ReloadOnShow="true" ShowContentDuringLoad="true" Modal="true" Height="620px" Width="620px" NavigateUrl="ManageStatusChange.aspx"  />
    </Windows>
</telerik:RadWindowManager>
</div>

and On button click event, I want to open radwindow from server side.
This is what I have on server side.

protected void btnStatus_Click(object source, EventArgs e)
{
StringBuilder oStringBuilder = new StringBuilder();
                oStringBuilder.Append("ManageStatusChange.aspx?EntityID=")
                 .Append(GlobalConstants.COA_BUDGET_SECONDARY_ENTITY_ID)
                 .Append("&SessionString=" + Session["SessionString"] + "&EntityType=COABudgetSecondaryEntity");
OpenModalDialog(this, "Msg", "Key", oStringBuilder.ToString());
Session["SessionString"] = null;
}
  
  
public void OpenModalDialog(System.Web.UI.Page ObjPage, string strMsg, string strKey, string url)
        {
            string strScript;
            Type jsType = ObjPage.GetType();
            ClientScriptManager CS = ObjPage.ClientScript;
            strScript = "javascript:window.radopen(\"" + url + "\",); return true";
            /*System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "btnStatus_Click", strScript, true);*/
  
  
Telerik.Web.UI.RadWindow newwindow = RadWindow1;
            newwindow.ID = "RadWindow1";
            newwindow.Height = 620;
            newwindow.Width = 620;
            newwindow.NavigateUrl = url;
            newwindow.VisibleOnPageLoad = true;
            newwindow.RegisterWithScriptManager = true;
            RadWindowManager1.Windows.Add(newwindow);
        }

I also have AjaxRequestDelegate on Parent page .

protected void Page_Load(object sender, EventArgs e)
{
RadAjaxManager rjxManager = RadAjaxManager.GetCurrent(this);
            //Create a new delegate to handle the AjaxRequest event   
            rjxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(rjxManagerBudgetEntity_AjaxRequest);
            rjxManager.AjaxSettings.AddAjaxSetting(rjxManager, aspPanel_ProjectBudget);
}
  
  protected void rjxManagerBudgetEntity_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            if (e.Argument == "Rebind")
            {
                Session["currentObject"] = null;
                rgProjectBudget.MasterTableView.SortExpressions.Clear();
                rgProjectBudget.MasterTableView.GroupByExpressions.Clear();
                rgProjectBudget.Rebind();                
            }
  
        }

On my Popup page I have a button, which after clicking saves the data and also has some script that will fire my ajax request delegate on Parent page.

On my aspx side of Popup, I have :

function closeRadWindow()   
{
  
    GetRadWindow().Close();     
    
}   
  
 function CloseAndRebind(args) 
 {
  
      GetRadWindow().Close();
      GetRadWindow().BrowserWindow.refreshParent(args);
 }

And on server side button click Event, I have :

protected void btnSave_Click(object sender, EventArgs e)
        {
           
 COABudgetDetails = Request.QueryString["SessionString"].ToString().Split(',');
                    for (int i = 0; i <= COABudgetDetails.Length - 1 && !string.IsNullOrEmpty(COABudgetDetails[i]); i++)
                    {
                        //Retrive Entity Key for Bdgeting else passing the object.
                        if (mEntityID == GlobalConstants.COA_BUDGET_SECONDARY_ENTITY_ID)
                            mCOABudgetDetailID = Convert.ToInt32(COABudgetDetails[i]);
  
                        StatusChangeHistory AllStatusChangeHistory = GetStatusChangeHistory();
                        StatusChangeHistoryEntry AnStatusChangeHistoryEntry = AllStatusChangeHistory.GetItem(mStatusChangeHistoryID);
                        DoSaveStatus(AllStatusChangeHistory, AnStatusChangeHistoryEntry);
  
                    }
string script = "<script>CloseAndRebind('Rebind')</" + "script>";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "CloseAndRebind", script, false); 
    
            }


My popup opens fine. But my problem is that, when I click save button of Popup, it saves the data, goes to parent page, fires the ajax request, and instead of closing, it reopens itself 3 times.
I dont know where I am going wrong.
Could you please help me out ?

Thanks,
Lok..
Georgi Tunev
Telerik team
 answered on 16 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?