Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
205 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
212 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
129 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
116 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
113 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
80 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
9 answers
160 views
Hi All,

I have a grid with column 'Status', when i click edit then in status edit column i want drop down with status values(Closed,Open) and it should select which is the status.

Please help me regarding this.
pradeep k
Top achievements
Rank 1
 answered on 26 Nov 2009
1 answer
63 views
Hi,

We as using Telerik Ajax ASP.NET control version 2009.1.402.35.
We have a requirement whether we need to show some numeric values and perform filtering on them with respect to Browser Language selected.
The first part that is fomatting of data displayed in Grid column is working file and we get the approapiate Group seperator and Decimal seperator.Below is the code which i have used

<

 

telerik:GridNumericColumn DataField="MyField" HeaderText="My Numeric Data" UniqueName="MyNumericData"

 

 

Resizable="true" HeaderTooltip="Sort by 'My Numeric Data'" DataType="System.Double" DataFormatString="{0:##,###0.00}" ItemStyle-HorizontalAlign="Right" FilterControlWidth="75%" HeaderStyle-Width="10%">

 

 

</telerik:GridNumericColumn>

This part is working fine and my data is formatted automatically when i change the Browser Language.
But filter on that data is leading to issue.
As this is numeric column while perfoming filtering i am only allowed to enter the numeric value with culture specific decimal seperator , which is great.But when i perform the search it does not work except for ENGLISH(EN-US).So if i select Germany the same filter operation is failing.
Is  this a bug in Telerik and is there any workaround for this.

Regards,
Aayam

 

Yavor
Telerik team
 answered on 26 Nov 2009
1 answer
163 views
Our Framework has gotten to a point where we need to handle AsyncPostBackErrors in different ways on the same page.  Here is an example of my problem in short.  We want to display ErrorTextA using an "alert();" if an error is thrown in systemA... which is simple enough.  But on the same page we want ErrorTextB to be displayed on a label if an error is thrown in systemB.  Is there a way to Differentiate between the two or have two AsyncPostBackError handlers on the same page?  Basicly I need to know if the error came from SystemA or SystemB.
Iana Tsolova
Telerik team
 answered on 26 Nov 2009
0 answers
119 views
Hi Telerik,

          I am using the rad grid user control edit form. Inside the user control i have a list box which populates the data dynamically.
I have a selectedindexchanged fn trigered whn i click on the items in the list box that works fine. I have 10 items in the listbox after randomly clicking few items when i click the update or cancel button, the selectedindexchanged fn gets fired first and then the
control goes to the update in the aspx.cs page, This also happens once in a while.The grid is placed in the Ajax panel. Do you people have any idea about this. Please let me know your ideas on this.

Thanks
Arun.M
Arun
Top achievements
Rank 1
 asked on 26 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?