Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views
Hello.

I have encountered a strange problem with conditional css loading when a page uses AJAX.

I have a conditional block in the "header"  that says that the css file testIE7.css should only be loaded by Internet Explorer 7.
 
Everything works fine when viewing the page in Firefox, until I try to make an AJAX call. The first AJAX call that occurs on the page will also load the testIE7.css file and affects the layout. I have verified that both css files are loaded using firebug and through the example provided here.

As a simple example look at the following files:
testIE7.css:
.button {
    color: Red;
}
test.css:
.button {
    color: Green;
}

When the hyperlink is pressed, the text will change color from the one specified in the test.css to the one specified in the testIE7.css file.

Thanks in advance,

 - Joel

Joel Sanderi
Top achievements
Rank 1
 answered on 22 Jul 2008
3 answers
117 views
Hi,
I am using the version released on 2008 May.
I have 2 controls one is Telerik Calendar the other one is Telerik Grid.
I set them into 2 ajax panel however the Calendar works fine, the telerick grid will fully post back when user click filter options. I change the Grid's ajax panle to Ajax manager, the first click is ok, second click will cause full postback, and  the third time work well again ... ...

It is so wired, any ideas
<table> 
    <tr> 
        <td> 
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="true">  
                <telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma" 
                    ForeColor="Black" Style="border-color: #ececec" Skin="Web20" BorderStyle="Double" 
                    BorderWidth="5px" MultiViewColumns="2" BorderColor="#3366CC" AutoPostBack="True">  
                    <CalendarTableStyle BorderColor="White" BorderWidth="2px" Wrap="False" /> 
                </telerik:RadCalendar> 
            </telerik:RadAjaxPanel> 
        </td> 
        <td> 
            <telerik:RadAjaxManager ID="RadAjaxManager2" EnableAJAX="true" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="gridDrivers">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="gridDrivers" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowSorting="True" 
                AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="gridDrivers_NeedDataSource" 
                Skin="Web20" Height="500px">  
                <ClientSettings AllowColumnsReorder="True" EnableRowHoverStyle="true" ReorderColumnsOnClient="True">  
                    <Selecting AllowRowSelect="True" /> 
                    <ClientEvents OnRowSelected="RowSelected" /> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                </ClientSettings> 
                <MasterTableView ClientDataKeyNames="DriverID" DataKeyNames="DriverID">  
                    <RowIndicatorColumn Visible="False">  
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn Resizable="False" Visible="False">  
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn AllowSorting="true" DataField="DriverID" HeaderText="Driver ID" 
                            SortExpression="DriverID" UniqueName="DriverID" DataType="System.String">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn AllowSorting="true" DataField="DriverName" HeaderText="Driver Name" 
                            SortExpression="DriverName" UniqueName="DriverName" DataType="System.String">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn AllowSorting="true" DataField="CompanyName" HeaderText="Company Name" 
                            SortExpression="CompanyName" UniqueName="CompanyName" DataType="System.String">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn AllowSorting="true" DataField="DivisionName" HeaderText="Division Name" 
                            SortExpression="DivisionName" UniqueName="DivisionName" DataType="System.String">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <EditFormSettings> 
                        <PopUpSettings ScrollBars="None" /> 
                    </EditFormSettings> 
                </MasterTableView> 
            </telerik:RadGrid> 
        </td> 
    </tr> 
</table> 

thank you
Iana Tsolova
Telerik team
 answered on 22 Jul 2008
1 answer
302 views
Hi!

Can I change the tooltip text (which is now 'Close') of the close button of the RadToolTip?

Best Regards
Radek
Svetlina Anati
Telerik team
 answered on 22 Jul 2008
0 answers
75 views
I believe it is now not possible to load a context menu file declaratively from a file.

Not only that but different context menus have to be added separately.

I must say I prefer the old system.


Marty
Martin Sarosi
Top achievements
Rank 2
 asked on 22 Jul 2008
1 answer
158 views

I have a Scheduler and several other controls on a page.  Sometimes I want scheduler events to invoke AjaxRequests and other times I would like the entire page to post back.  For example when a user changes the date on the scheduler I want the calendar control to update but when I change the view to Month view I would like the entire page to refresh.

I tried handling the AjaxManager's OnAjaxRequestStart() event so that I can determine the scheduler's current view however after getting reference to the scheduler it's SelectedView property returns null.  Here's an example:

function AjaxManager_RequestStart(sender, eventArgs)  
{  
    debugger 
    var scheduler = $find("<%= RadScheduler1.ClientID %>");  
    var currentView = scheduler.get_selectedView();  // selectedView is always null  
} 

Is there another way to do this?  It would be nice if there was a client-side OnSelectedViewChanged event of the scheduler.

Al
Peter
Telerik team
 answered on 22 Jul 2008
1 answer
308 views

Hello, I have asked this question before, but didnt get the response I desired, maybe this was due to me being unclear on my intentions, so I shall try again.
I am using the RadUpload control to allow the uploading of image files to my server. After the files a uploaded, they are minipulated server side, height, width etc are adjusted and a watermark is added, so it is very important that I have the correct filename after upload.
When the upload control detects that a file already exists, it fires the following function:

protected void RadUpload1_FileExists(object sender, UploadedFileEventArgs e)  
    {  
        int counter = 1;  
 
        UploadedFile file = e.UploadedFile;  
 
        string targetFolder = Server.MapPath(RadUpload1.TargetFolder);  
 
        string targetFileName = Path.Combine(targetFolder,  
            file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());  
 
        while (System.IO.File.Exists(targetFileName))  
        {  
            counter++;  
            targetFileName = Path.Combine(targetFolder,  
                file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());  
        }  
 
        file.SaveAs(targetFileName);  
    }         
This works well, the uploaded file is renanmed by appending an extra "1" to the filename, until a unique name is generated.
However my problem is, if I try the followning in my upload button click event:
 protected void Button1_Click(object sender, EventArgs e)  
    {  
        foreach (UploadedFile f in RadUpload1.UploadedFiles)  
        {  
            if (!Object.Equals(f, null))  
            {  
                LooongMethodWhichUpdatesTheProgressContext(f);  
            }  
        }  
        foreach (UploadedFile f in RadUpload1.UploadedFiles)  
        {  
            Response.Write(f.GetName() + "<br>");  
        }  
    }  
 
I only get the original filenames, if the filename has been changed by the fileexists funtion above, the correct name is not shown in the uploaded files collection. I need a way to be able to access the filenames, as they are saved on the server. Yes I can save the filename of the modified file within the fileexists method to a string list, however the original file name still exists within the uploaded files collection.
Veselin Vasilev
Telerik team
 answered on 22 Jul 2008
2 answers
310 views

Ola,

Estou testando o objeto RADGRID / ASP.NET AJAX 2008 Q1 no VB2008 e, estou precisando de ajuda na seleção de valores na GRADE. 

Ex: 

ID

 NOME

1

CLAUDINEI

2

TELERIK

Queria saber como pego o valor de uma coluna especifica quando clicar na linha? 

Agradeço a ajuda, Claudinei.

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2008
7 answers
290 views
Hi,

I got a grid with a template column. In this column I have an image.

Now I like to export the grid including the picture.

How can i do this?

Thanks,
Thimo
t
Top achievements
Rank 1
 answered on 22 Jul 2008
2 answers
75 views
I am using the radgrid on my page. It is showing the data from the database by dataset, there is a column to show the data / time. I have enabled the grouping on grid. When i drags the date / time column on to the group portion of grid it groups the grid data by date / time but i want to group just by data not by time. I have not defined any group by clause in my sql query, my question is that how i can group the column just by date not by date / time.
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2008
1 answer
222 views
Hello Telerik,

Is it possible to achieve this now?

Regards,
Elton
Rosi
Telerik team
 answered on 22 Jul 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?