Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
233 views
Hello,

I've got a rad menu that has a subnode that is being populated from a webservice call. I need to have the node data be refreshed each time the menu is expanded, but it appears that the call is cached once the data is first loaded. I tried setting the persistloadondemanditems attribute to "false" but this doesn't seem to change the behavior. Is there any way to accomplish this?

Thanks,
Aaron
Tom
Top achievements
Rank 1
 answered on 22 Jan 2013
4 answers
147 views
I also posted this question on this thread: http://www.telerik.com/community/forums/aspnet-ajax/menu/prevent-expandmode-webservice-nodes-from-being-cached.aspx

I have a menu that is loaded on demand but I don't want to have the client cache the values - I want a call made each time to load the values when the menu is expanded.  I followed the example from the above thread and it works great when not using rounded corners.  However, when I turn on rounded corners, the second time the menu expands, the corners/borders are missing. 

It appears this happens any time I clear the collection of menu items.  Here is my js:

function mainMenuItemClosed(sender, eventArgs)   
            {  
                var item = eventArgs.get_item();  
                if (item)  
                {  
                    sender.trackChanges();  
                    item.get_items().clear();  
                    item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.WebService);  
                    item._itemsLoaded = false;  
                    sender.commitChanges();  
                }  
            } 
Tom
Top achievements
Rank 1
 answered on 22 Jan 2013
3 answers
158 views
The RadSpell control works fine when URL is the application server, but when the URL is the ACE load balancer, I get a javascript error "object expected" from URL http://xxx.com/xxx/ScriptResource.axd?xxxx.  Fiddler shows 504 receive failure on /xxx/ScriptResource.axd?xxx

This project is referencing the Telerik.Web.UI.dll 2012.2.731.35

Greg
Top achievements
Rank 1
 answered on 22 Jan 2013
0 answers
77 views
My issue is simple, the editform in RadScheduler is showing behind to other appointments, but this bug only happen in IE 8.0.7601.17514. I try to change the css, but I dont have clue to change this behavior. Please help me!! I can't change the version of IE because is the standard in all machines.

<InlineEditTemplate>
                <div class="rsCustomAppointmentContainer">
                    <span class="rsCustomAppointmentContainerInner">
                        <div style="float: left">
                            <asp:Label ID="Label4" runat="server" Text="Option:" CssClass="inline-label"></asp:Label>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Subject") %>'></asp:Label>
                            <asp:LinkButton ID="LinkButtonOpt" runat="server" CommandName="Link" Text='more info ...'></asp:LinkButton>
                            <%--<asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' TextMode="SingleLine"
                            ReadOnly="true"></asp:TextBox>--%>
                        </div>
                        <div style="float: left">
                            <asp:Label ID="Label2" runat="server" CssClass="inline-label">Initial Date:</asp:Label>
                            <telerik:RadDatePicker runat="server" ID="InitialDateRadDatePicker" SelectedDate='<%# Bind("Start") %>'
                                MinDate="1900-01-01" OnSelectedDateChanged="Initial_SelectedDateChanged">
                                <DatePopupButton Visible="True" />
                                <DateInput ID="DateInput2" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" "
                                    EnableSingleInputRendering="false" />
                            </telerik:RadDatePicker>
                        </div>
                        <div style="float: left">
                            <telerik:RadNumericTextBox ID="job_durationTextBox" runat="server" Type="Number"
                                NumberFormat-DecimalDigits="0" MinValue="1" OnTextChanged="jobDuration_TextChanged"
                                Width="100%" Label="Duration:">
                            </telerik:RadNumericTextBox>
                        </div>
                        <div style="float: left">
                            <asp:Label ID="Label3" runat="server" CssClass="inline-label">Final Date:</asp:Label>
                            <telerik:RadDatePicker runat="server" ID="FinalDateRadDatePicker" SelectedDate='<%# Bind("End") %>'
                                MinDate="1900-01-01" OnSelectedDateChanged="Final_SelectedDateChanged">
                                <DatePopupButton Visible="True" />
                                <DateInput ID="DateInput1" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" "
                                    EnableSingleInputRendering="false" />
                            </telerik:RadDatePicker>
                        </div>
                        <div style="float: left">
                            <span class="inline-label">Stage:</span>
                            <telerik:RadComboBox ID="StageAuxComboBox" runat="server" SelectedValue='<%# Bind("cvp_stage_id") %>'
                                DataSourceID="StageDataSource" DataTextField="cvp_stage_name" DataValueField="cvp_stage_id">
                            </telerik:RadComboBox>
                        </div>
                        <div>
                            <asp:Button ID="InsertButton" runat="server" CommandName="Update" Text="Update">
                            </asp:Button>
                            <asp:Button ID="InsertCancelButton" runat="server" CommandName="Cancel" Text="Cancel">
                            </asp:Button>
                        </div>
                    </span>
                </div>
            </InlineEditTemplate>

My css.

.noresults
{
    opacity: 0.4;
    filter:alpha(opacity=40); /* For IE8 and earlier */
}
     
.RadScheduler .rsCustomAppointmentContainerInner
{  
    display: block;
    padding: 2px 0 0 2px;
    z-index: 1000 !important;
}
.RadScheduler .rsCustomAppointmentContainerInner *
{
    position: relative;   
    z-index: 100 !important;
}
.rsCustomAppointmentContainer
{
    width: 100% !important;
    height: 100% !important;
     
}
 
.RadScheduler .rsAptEditSizingWrapper
{
    left:0px !important;
    top:0px !important;
     
}
 
.rsApt
{
    z-index: -1;
}
Carlos
Top achievements
Rank 1
 asked on 22 Jan 2013
3 answers
138 views
I am exporting my grid and it works fine, but there are a couple fileds i do not show on the grid as they are note fields and have a lot of characters and the viewstate would get massive, so I show them in a popup service on the grid.  however when they export the grid they want the notes to go with the export, how can I change the export to include the notes field when I do not pull into the original grid because it would be massive.

Is there a way to pull a seperate sql query for an alternate view just for export only that pulls the notes field then does rebinds real view.
Daniel
Telerik team
 answered on 22 Jan 2013
3 answers
861 views
Hi,
Export to csv modifies datetime data. DateTime column in my grid has data in following format""11/11/2011 1:50:51 PM
but after export it is modified to "11/11/2011 13:50:51".

How can I persist data on exporting/ modify it during  this event. I tried to use  "ExportCellFormatting" but it never fired for csv export.

Thanks,
Prava
Kostadin
Telerik team
 answered on 22 Jan 2013
3 answers
109 views
I am using RadAsyncUpload and cannot get it to work with more than one file.  

Basically, I'm using the FileUploaded event to save the file as a different filename (using a GUID) to ensure uniqueness.

This is what i am seeing (an example that I stepped through):

1. I upload two files on my form
2. After selecting the files and the status says they are complete, they are in the App_Data\Uploasd folder as:

fvcjn4uc.ls0
RadUploadTestFile
skhgx0p0.0at

3. I post the page

4. I step through and let it go through the first file, and it works, and I see that fvcjn4uc.ls0 is removed from App_Data\Uploads (e.g. only skhgx0p0.0at and RadUploadTestFile remains).

5. I then go through the next item in the foreach loop and it can access the filename and extension fine but when it does e.File.SaveAs(newFilename) I get (full path removed w/"HIDDEN"):

Could not find file 'C:\TFS\2010\[HIDDEN]\App_Data\Uploads\fvcjn4uc.ls0'.

But that's the filename of the FIRST file that was removed, why is it trying to access this again?
   
Code:


        protected void RadAsyncUploadAttachments_FileUploaded(object sender, FileUploadedEventArgs e)
        {
            try
            {
                foreach (UploadedFile newfile in RadAsyncUploadAttachments.UploadedFiles)
                {
                    if (newfile != null)
                    {
                        string originalFilename = newfile.FileName;
                        string filename = Guid.NewGuid().ToString() + newfile.GetExtension();
                        string newFilename = RadAsyncUploadAttachments.TargetFolder + @"\" + filename;

                        e.File.SaveAs(newFilename);
                    }
                }
            }

            catch (Exception ex)
            {
                log.Error(ex);
            }
        }      

What am I missing?

Thanks,

Dave
Dave
Top achievements
Rank 1
 answered on 22 Jan 2013
1 answer
74 views

This is probably a newbie question, and is perhaps more of a javascript general question than a Telerik specific one. However, I guess many Telerik-developers know the answer :-)

In many cases, we need to keep track of some kind of state in client:

var someState;
  
function SomeEventHandler() {
      someState = someState + 1;
}

In the code-behind, we hook-up the event to some Telerik event:
theRadGrid.ClientSettings.ClientEvents.OnRowClick = "SomeEventHandler";

This works, if there is only one "theRadGrid" on the page, but if there are multiple instances of the control, we have problem, since "someState" is shared across instances, it is global to the page.

What is the best way to make state variables local to the instance?

Hope I made myself understood :-)

/Fredrik
Angel Petrov
Telerik team
 answered on 22 Jan 2013
1 answer
57 views
Hi,

I am using Telerik RadAsyncUpload and trying to get the keyboard control using the demo URL. I am using 2011.2.915.40 version.

http://demos.telerik.com/aspnet-ajax/asyncupload/examples/keyboardsupport/defaultcs.aspx

I am using the same code given in the demo URL, but unable to get the focus on Select button on Tab key press. Please suggest me what I am missing in the attached code.

Thanks!
Abhinav
Plamen
Telerik team
 answered on 22 Jan 2013
7 answers
481 views
Hello, Telerik,
I´m using a radgrid with 100% height and it works fine with Internet Explorer but I can not get it work with Chrome, where it seems to have 1% height, instead of 100%, so my grid is not visible.
This was working for me with Chrome and radcontrols for asp.net version, but now with rad controls for asp.net ajax and Chrome, it does not work,
Here is some parts of my code, I know I have to put height=100% to all the parent tags:
Can you help me, please.

<

 

body style="height:100%;margin:0px;padding:0;" scroll="no">
<form id="form1" enctype="multipart/form-data" runat="server" style="height:100%"

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

 

 

<asp:Panel ID="pnlExterior" runat="server" Width="100%" Height="100%" DefaultButton="ibtEnter">

 

<

 

telerik:RadCodeBlock ID="radcodigo" runat="server">

 

...

 

</telerik:RadCodeBlock>

 

<

 

telerik:RadSplitter ID="radsplitPagina" runat="server" Width="100%" Height="100%" Skin="Outlook" Orientation="horizontal" OnClientLoaded="FocoSplitterLoad">

 

 

 

<telerik:RadPane ID="radpanArriba" runat="server" Width="100%" Height="116px" Scrolling="None" CssClass="CeldaFondoClara">

 

...

 

</

 

telerik:RadPane>

 

 

 

<telerik:RadPane ID="radpanPagina" runat="server" Width="100%" Height="100%" Scrolling="None" CssClass="PosicionRelativa">

 

 

 

<table style="width: 100%" border="0" cellpadding="0" cellspacing="0">

 

...

 

 

 

 

 

</table>

 

 

 

<table style="width:100%;height:100%" border="0" cellspacing="0" cellpadding="0">

 

 

 

<tr>

 

 

 

<td valign="top" style="width:100%;height:100%">

 

<

 

telerik:RadGrid ID="gvw1" runat="server" AllowPaging="True" PageSize="25" Width="99.5%" Height="99%"

 

 

 

AllowSorting="True" AutoGenerateColumns="False" DataSourceID="odsClientes" GridLines="Horizontal" Skin="Yunke" EnableEmbeddedSkins="false"

 

 

 

OnItemDataBound="gvw1_ItemDataBound" OnSelectedIndexChanged="gvw1_SelectedIndexChanged">

 

...

 

 

 

<MasterTableView DataSourceID="odsClientes" DataKeyNames="intIDCodigoCliente_fl" Width="100%" TableLayout="Fixed"">

 

...

 

</

 

telerik:RadGrid>

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</telerik:RadPane>

 

</

 

telerik:RadSplitter>

 

 

 

 

 


Thanks for your time,
Daniel.

Galin
Telerik team
 answered on 22 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?