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

Is it possible to release the source code for the visual style builder?  It would be a nice application to use to help learn Silverlight.

Richard
Paul
Telerik team
 answered on 26 Nov 2009
5 answers
162 views
I have switched the RadAjaxManager to the MasterPage and added the RadAjaxManagerProxy to the custom control.  My problem is when I use the find method it is no longer anymore.  I am not sure what I am dong wrong here.


function refreshDependantsGrid(arg)
{
    if(arg=='')
         $find("<%= RadAjaxManager1.GetCurrent(this.Page).ClientID %>").ajaxRequest("Grid1Rebind");
    else
         $find("<%= RadAjaxManager1.GetCurrent(this.Page).ClientID %>").ajaxRequest("Grid1RebindAndNavigate");
}
function refreshCommentsGrid(arg)
{

    if(arg=='')
         $find("<%= RadAjaxManagerProxy1.ClientID %>").ajaxRequest("Grid2Rebind");        
    else
         $find("<%= RadAjaxManagerProxy1.ClientID %>").ajaxRequest("Grid2RebindAndNavigate");        
}   

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
        </UpdatedControls>
    </telerik:AjaxSetting>
....
Pavlina
Telerik team
 answered on 26 Nov 2009
3 answers
159 views
I have a listbox with checkboxes.  When I disable it in the code-behind it disables correctly in IE but in Firefox it's still fully enabled.  I don't receive any javascript errors.  Has anybody else run into this issue?  I have version 2009.2 826 of the Telerik Ajax controls.

Thx.
Paul
Telerik team
 answered on 26 Nov 2009
7 answers
340 views
My company upgraded to RadControls for ASPNET Ajax Q2 2009  from RadControls for ASPNET Ajax Q3 2008 and now I get the error 'Could not load file or assembly 'Telerik.Web.UI.dll' or one of its dependencies. The system cannot find the file specified.'  for every Telerik control in the VS Solution. Since then I have uninstalled Q2 2009 version and the Q3 2008 version, deleted the .Net cache files and all references in the web.config file. Restarted my dev system and reinstalled 2008 Q3. Same error for every Telerik control in the project. The one thing that makes it work is to change all references in the registration of the Telerik.Web.UI tagPrefix from 'telerik' to something else.

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="tel" %>

and then change all of the controls' prefixes. This makes it work but not really a fix. (Other developers work on the same projects)

 


Does anyone have any suggestions? 
Pavlina
Telerik team
 answered on 26 Nov 2009
3 answers
211 views
Hi,
        I was wondering if there was any way that with the grid filtering, it would be possible to display a label of some sort next to/above/below the filter that would show which filter option the user has chosen (e.g. contains, equal to, beginswith etc)

Thanks

Robert
Sebastian
Telerik team
 answered on 26 Nov 2009
1 answer
216 views
Hi, I have a RadToolBar that contain Export Buttons so the user can download iCAL calendar on the page (using RadScheduler).  The RadToolBar is contained inside a RadGrad which ajaxified using RadAjaxManager.  Export button uses Response.Write to write an iCAL file back to the user.  When click on the Export button, I got the following error message:

Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'BEGIN:VCALENDAR
VER'.

I tried to use RadScriptManager.GetCurrent(page).RegisterPostBackControl(btnExportButton) or RadScriptManager.GetCurrent(page).RegisterPostBackControl( RadToolBar)  both didn't work.

I tried using the following example http://www.telerik.com/community/code-library/aspnet-ajax/general/export-radgrid-content-to-excel-word-csv-pdf-with-ajax-enabled.aspx
but there is no specific example for the RadToolBar.  Can anybody help bring me to light???
Thank you very much,
Nick
Peter
Telerik team
 answered on 26 Nov 2009
4 answers
130 views
Dear Telerik,

i had a problem using server sided dynamic radwindow opening.

Scenario: We have a RadMenu. If i click on an menu Item a dynamicly added window should shown. The RadMenu updates the RadWindowManager through Ajax using RadAjaxManager.

At first, here are some relevant code in the aspx file:

Registring componetes in RadAjax Manager:
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" > 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="MainMenu"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="WindowManager" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 

RadMenu and WindowManager:
 <div id="menuDiv"> 
     <telerik:RadMenu ID="MainMenu" runat="server" OnItemClick="RadMenuOnItemClick" Width="100%" /> 
</div>  
    
<div id="windowZone" runat="server"></div>  
<telerik:RadWindowManager ID="WindowManager" EnableViewState="true" runat="server"  RestrictionZoneID="windowZone" ></telerik:RadWindowManager> 
    

The RadMenuItems added in code behind. Here is the function called if an item clicked
 protected void RadMenuOnItemClick(object sender, RadMenuEventArgs e) 
        { 
            switch (e.Item.Value)  
            { 
                case "wima_wiki": 
                    RadWindow rw = new RadWindow(); 
                    rw.Title = "Test"; 
                    rw.ID = "testwin1"; 
                    rw.VisibleOnPageLoad = true; 
                    rw.Width = 500; 
                    rw.Height = 500; 
                    WindowManager.Windows.Add(rw); 
                     
                    break; 
                case "wiki_bookmarks": 
                    RadWindow rww = new RadWindow(); 
                    rww.Title = "Test2"; 
                    rww.ID = "testwin2"; 
                    rww.VisibleOnPageLoad = true; 
                    rww.Width = 500; 
                    rww.Height = 500; 
                    WindowManager.Windows.Add(rww); 
                     
                    break; 
            } 


If i click on one Item, the window appears dynamicly without a page reload. Great! But when i clicked on an other menu item, the second window appears, but the first window disappears.
I need all opened windows should stay open unless you realy want to close them.

I tried to set following window manager properties on page_load:
WindowManager.DestroyOnClose = true; 
WindowManager.EnableViewState = true; 
WindowManager.RegisterWithScriptManager = true; 
WindowManager.PreserveClientState = true; 
            
The windows still close if i open another, but the position of the windows stayes the same as befor.

What i must do that the windows doesent close when i open another? Must i save the window collection into state?

Thanking you in anticipation

Best regard
Marek Schmidt

Georgi Tunev
Telerik team
 answered on 26 Nov 2009
1 answer
121 views
The cancel button in the Delete popup is not styled anymore in 2009Q3.

This one uses

class="rwPopupButton rwCancel"

BR,
Marc



Georgi Tunev
Telerik team
 answered on 26 Nov 2009
1 answer
120 views

Hello,

I need to allow submit of a File Upload when no file is specified. My form adds additional fields using the method described here: http://demos.telerik.com/aspnet-ajax/upload/examples/additionalfields/defaultcs.aspx

I need to have the form submit if any data was entered in any of the additional fields even if no file to upload is set. My application will then process the data submitted. It is acceptable if no uploaded file is specified as long as some data was entered in one of the additional fields.

 

How can I do this?

 

Thanks,

Steve

Veselin Vasilev
Telerik team
 answered on 26 Nov 2009
1 answer
85 views
I have the following grid with PagerTemplate set up based on the example at http://demos.telerik.com/aspnet-ajax/grid/examples/programming/pagertemplate/defaultcs.aspx:

<

 

telerik:RadGrid ID="grdTicket" Skin="Office2007" Width="100%" AllowSorting="True"

 

 

AllowPaging="True" PageSize="50" runat="server" AllowMultiRowSelection="true" OnItemDataBound="grdTicket_ItemDataBound"

 

 

OnNeedDataSource="grdTicket_NeedDataSource" OnColumnCreated="grdTicket_ColumnCreated" OnItemCreated="grdTicket_ItemCreated">

 

 

<MasterTableView Width="100%" NoMasterRecordsText="No records to display" TableLayout="Fixed" HeaderStyle-Wrap="true">

 

 

<PagerTemplate>

 

 

<asp:Panel ID="PagerPanel" Style="padding: 6px; line-height: 24px" runat="server">

 

 

<div style="float: left">

 

 

<span style="margin-right: 3px;">Page size:</span>

 

 

<telerik:RadComboBox ID="RadComboBox1" DataSource="<%# new object[]{ 5, 10, 15, 20, 25, 30, 35, 40, 45, 50} %>" Skin="Office2007"

 

 

Style="margin-right: 20px;" Width="40px" SelectedValue='<%# DataBinder.Eval(Container, "Paging.PageSize") %>'

 

 

runat="server" OnClientSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">

 

 

</telerik:RadComboBox>

 

 

</div>

 

 

<div style="margin: 0px; float: right;">

 

Displaying page

<%

# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>

 

of

<%

# DataBinder.Eval(Container, "Paging.PageCount")%>

 

, items

<%

# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1 %>

 

to

<%

# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1 %>

 

of

<%

# DataBinder.Eval(Container, "Paging.DataSourceCount")%>

 

 

</div>

 

 

<asp:Panel runat="server" ID="NumericPagerPlaceHolder" ></asp:Panel>

 

 

</asp:Panel>

 

 

</PagerTemplate>

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">

 

 

<HeaderStyle Width="25px"></HeaderStyle>

 

 

</telerik:GridClientSelectColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="WTB" DataField="wtbdt" UniqueName="WTBIndicator" Groupable="false" SortExpression="wtbdt">

 

 

<HeaderStyle Width="35px" />

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

<ItemTemplate>

 

 

<asp:Image ID="WTBIndicator" runat="server">

 

 

</asp:Image>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="wtbindicator" SortExpression="wtbindicator" Visible="false"></telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<PagerStyle Mode="NumericPages" />

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

</ClientSettings>

 

 

<PagerStyle Mode="NumericPages" />

 

</

 

telerik:RadGrid>

Everything displays the same as the demo in Firefox, but in IE8, everything is out of position and the width of the radComboBox takes up the whole width of it's container even though a width is specifically set on the combobox.  I'm using version 2009.2.826.35.  Attached is a screenshot of the positioning issue.

 

Dimo
Telerik team
 answered on 26 Nov 2009
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?