Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
OK,

I've developed an application, part of which is using a RadTreeView, together with RadAjaxManager and RadUpload to form a basic file manager.

Everything works fine on my local machine (VS2008 and Cassini).

When I upload to the production or staging server (Win 2003 / IIS 6) nothing works!

The first problem is the RadUpload control appears to upload files (ie. the Upload progress panel does its thing) but the uploaded file doesn't make it onto the server. No errors or anything shown though.

Secondly, The treeview has a context menu so right-clicking on a file allows the user to rename or delete. If I click on delete, I get a null reference exception when it tries to access (RadTreeViewContextMenuEventArgs) e.Node.Text in the server-side ContextMenuClick event. If I click on rename, the server-side NodeEdit method should ultimately fire, but doesn't appear to?

I've checked the NETWORK SERVICE account has permissions on everything; hell, to rule out permissions I even gave the "Everyone" full control :)

I've tried disabling AJAX on the AjaxManager, I've tried removing the AjaxManager all together and still no joy.

Any ideas?

Thanks
John
Top achievements
Rank 1
 answered on 20 May 2008
4 answers
179 views
Hi, i am having a problem with my AjaxRequest method that i have hooked up to the onchange event of a dynamically created button. It seems to work fine in that the server side method fires and calls a method I have for calculationg a count. The problem is that i update a client side label with this count but the label on the page does not get updated. The weird thing is that on the same page I have a button that calls the same server side method which updates the label correctly as you would expect. Can anyone see how i am going wrong or why the label is not getting updated?

this is my javascript:
        function InitiateAjaxRequest(arguments) 
        { 
            var ajaxManager = <%= RadAjaxManager1.ClientID %>; 
            ajaxManager.AjaxRequest(arguments); 
        } 
this is my ajax manager code that contains the reference to the serverside onajaxrequest method and also the panel that is being refreshed via the button click:
    <rad:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" > 
        <AjaxSettings> 
            <rad:AjaxSetting AjaxControlID="RadAjaxManager1"> 
            </rad:AjaxSetting> 
            <rad:AjaxSetting AjaxControlID="pnlNumberPresent"> 
                <UpdatedControls> 
                    <rad:AjaxUpdatedControl ControlID="pnlNumberPresent" /> 
                </UpdatedControls> 
            </rad:AjaxSetting> 
        </AjaxSettings> 
    </rad:RadAjaxManager> 

this is the ajaxified button and the label to be refreshed
<asp:Panel  ID="pnlNumberPresent" CssClass="row" runat="server" Visible="True" > 
  <asp:Label  id="lblNumberPresent" runat="server"  Visible="true" Cssclass="field_label_noclear" /> 
  <asp:Button  id="btnRefreshNumberPresent"  Cssclass="input_but" text="Refresh" runat ="server" OnClick="calculateNumberPresent" /> 
</asp:Panel> 
                   


this is where i am dynamically building my textbox(s)

 if (bJavaScriptEnabled) 
            { 
                int nextTextboxNo = StudentCount + 1; 
                statusBox.Attributes.Add("onchange", "InitiateAjaxRequest(this,event); return false;"); 
                statusBox.Attributes.Add("onkeypress", "setFocusOnEnterKey('status_textbox_" + nextTextboxNo.ToString() + "',event);"); 
            } 


and this is the server side method that is called when I click the button directly and also the onajaxrequest method that calls the same method:
    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) 
    { 
        calculateNumberPresent(sender, e); 
    } 
 
    protected void calculateNumberPresent(object sender, EventArgs e) 
    { 
        int intCount = 0; 
 
        //code to do count here... 
 
        lblNumberPresent.Text = "Total number of students present = " + intCount; 
    } 

on both events the "lblNumberPresent.Text = "Total number of students present = " + intCount;"
line is hit in the debugger but it is only on the button click that the label on the page gets updated...


barry
Top achievements
Rank 1
 answered on 20 May 2008
1 answer
89 views
hi ,
i m using this format for in grid for paging

Change Page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}.
i wan to change the  "Page Size " to "Display" and "Change" to "REcords per page"

please find the attahcment for details

Farhan Hashmi

Yavor
Telerik team
 answered on 20 May 2008
3 answers
151 views
Is there a way to set an "alternate" text for multimedia or flash content when such content is being added in RadEditor to meet W3C accessibility standards?

I could not see any field in the "add content" form itself to allow me to do this.

Thanks,
Sathya.
Lini
Telerik team
 answered on 20 May 2008
1 answer
124 views
Please could someone tell me or direct me to an example of how can I customize my x-axis values. i want to place custom string  names as xAxis values. thank yopu.
Giuseppe
Telerik team
 answered on 20 May 2008
1 answer
196 views
Please could someone tell me or direct me to an example of how can I customize my x-axis values. i want to place custom string  names as xAxis values. thank yopu.
Giuseppe
Telerik team
 answered on 20 May 2008
1 answer
92 views
Hi,
    I am using a groupby expression in  my grid.
Is it possible to have gridgroupheaderitem same as the gridheaderitem i.e with mulitple columns. Also, is it possible to remove the expand/collpase control from the groupheader item? As I see, it added a new column altogether for the expand/collpase control.
Thanks,
Pri
Shinu
Top achievements
Rank 2
 answered on 20 May 2008
9 answers
235 views
Hi
I have a problem changing the language in RadEditor.
I want all the menus and  the spellchecker to have another language than default.

The language-file (tdf) is in the right folder and the spellcheck file aswell.

How can I get the Editor to be in my language? In which files do I have to make changes in the code?

I tried to add Language="" in the pagelayout, but it didn't work.

Thanks!
Regards Cecilia
Rumen
Telerik team
 answered on 20 May 2008
1 answer
157 views

If I select an image and set the border width to 5 and then the border color to something (let's say lime) in the editor I won't see the border in the editor. The generated HTML is this:

<img border="5" src="/demos/aspnet/Prometheus/Editor/Img/UserDir/Marketing/awards-page-2007-.jpg" style="border-color: lime;" /> 

If I change that to:

<img src="/demos/aspnet/Prometheus/Editor/Img/UserDir/Marketing/awards-page-2007-.jpg" style="border: solid 5px lime;" /> 

I get to see the border in the editor. Any reason why it works this way?

Also, selecting white from the color dropdown actually removes the color rather than changing it to white. If the function is to remove the color then I think having a white box with an "x" inside is more suggestive. But if this is the case, how can I change the border to white?

Thanks.
George
Telerik team
 answered on 20 May 2008
1 answer
146 views
Hi,

My question is, how do I refresh the pager controls.  Problem is, paging is working perfectly fine except when I do a search that returns like 20 results the first time, it will display say 2 pages(10/page), but when I do another keyword search which returns only 1 result, the number of pages still says 2 instead of just 1.  I cant seem to find any refresh functionality for the grid..plz advice.

here is a snippet of my code:  Search will call loadGrid everytime
loadGrid()
{
           // Database call etc here...cut
            grdResult.DataSource = newList;
            grdResult.DataBind();
}

ASPX:

<telerik:RadGrid ID="grdResult" runat="server" style="width:auto;"
                            GridLines="None" AutoGenerateColumns="false"
                            AllowSorting="true" AllowCustomPaging="true"
                            AllowMultiRowSelection="True"
                            AllowPaging="True" ShowHeader="true"
                            PagerStyle-AlwaysVisible="true"
                            OnItemCreated="grdResult_ItemCreated"
                            OnPageIndexChanged="grdResult_PageIndexChanged"
                            OnItemDataBound="grdResult_ItemDataBound" OnSortCommand="grdResult_SortCommand">
---//Columns here etc...MasterTableView etc...
 </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 20 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?