Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
643 views
Hi All,

I am facing a situation here where I need to change the worksheet name of CSV file. I use below code to export my grid to CSV.

grid1.MasterTableView.ExportToCSV();

I don't want to export file to excel (i.e. xls or Excelml). I am using Telerik 2011 Q3. Is it possible to do the same in Telerik 2012 Q1?

Thanks in advance!!!

Dhaval Tamhane



Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
4 answers
140 views

Hi,

I am upgrading 2008 Q3 version of telerik control to 2011 Q3 version in my project in .NET 4.0. I have an issue with the RadAjaxxLoadingPanel in the latest version where it used to work fine with 2008 version.

I have a RadComboBox outside of the RadAjaxPanel which refreshes the grid based on the dropdown selection. When Items selection is changed in the dropdown it will make a Ajax postback to refresh the grid. while the grid is getting refreshed the AjaxLoading panel shows the back color of gray with some transparency set. The grid will not be accessible during the refresh. The gray color disappeared itself and grid became accessible again, once the Ajax is complete in the 2008 Q3 version. But, with 2011 Q3 version the gray color won’t disappear and the grid is inaccessible even after the post back is complete.

Here is the code: Please let me know what needs to be done to get the same behavior in the latest version? Thanks in Advance!!!

<telerik:RadAjaxPanel ID="ajaxPanel" EnableAJAX ="true" EnableOutsideScripts="false"

EnablePageHeadUpdate="false" runat="server" LoadingPanelID="ajaxLoadingImage" EnableViewState="false"

 EnableEmbeddedScripts ="false" EnableHistory="false" EnableTheming="false"

ClientEvents-OnRequestStart="RequestStart" ClientEvents-OnResponseEnd="RequestEnd" >

    <telerik:RadAjaxLoadingPanel ID="ajaxLoadingImage" EnableViewState="false" runat="server" BackColor="Gray" Transparency="90"

    </telerik:RadAjaxLoadingPanel>

   

   <div id="DataGrid">

        <telerik:RadGrid id="grid" runat="server" AutoGenerateColumns="false"

            GridLines="None" Skin="" EnableEmbeddedSkins="true" EnableViewState="false"

            EnableAJAXLoadingTemplate="true" LoadingTemplateTransparency="100"

            EnableAJAX="true"  AllowSorting="true" OnItemCreated="grid_ItemCreated"

            OnItemDataBound="grid_ItemDataBound"

            OnSortCommand="grid_SortCommand"

            AllowAutomaticDeletes="false" AllowAutomaticInserts="false"

            AllowAutomaticUpdates="true" AllowCustomPaging="false"

            AllowFilteringByColumn="false" AllowMultiRowEdit="false"

            AllowMultiRowSelection="false" AllowPaging="false">

           

            <ClientSettings EnablePostBackOnRowClick = "false"

             AllowColumnHide="false" AllowColumnsReorder="false" AllowDragToGroup="false" AllowExpandCollapse="false"

             AllowKeyboardNavigation="false" AllowGroupExpandCollapse="false" AllowRowHide="false"

             AllowRowsDragDrop="false">

                 <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" />

                 <ClientEvents OnGridCreated="GridCreated"></ClientEvents>

           </ClientSettings>

            <MasterTableView AllowCustomSorting="true" DataKeyNames="status" AllowNaturalSort="false"

            CssClass="ltable" Width="100%"  AllowAutomaticDeletes="false" AllowAutomaticInserts="false"

            AllowAutomaticUpdates="false" AllowCustomPaging="false" AllowFilteringByColumn="false"

            AllowPaging="false">

              <Columns>      

...                                   

              </Columns>     

            </MasterTableView>

    </telerik:RadGrid> 

    </div>

</telerik:RadAjaxPanel>

Sub
Top achievements
Rank 1
 answered on 31 Jan 2012
2 answers
413 views
I am using RadAjaxManagerProxy in my user control and RadAjaxManager in the master page and a RadAjaxLoadingPanel. When an error occurs server side, the loading panel hides and does not show any error message. How can I show an error message when an ajax request fails.
Suresh
Top achievements
Rank 1
 answered on 31 Jan 2012
2 answers
83 views
If you are using a WebUserControl for your edit form on a rad grid do you have to use link button on the control in order for the Update, Cancel, etc. controls to work?
Eric Klein
Top achievements
Rank 1
 answered on 31 Jan 2012
3 answers
269 views
I am using RC Q2 2010 Net 4

I am using a combobox as a lookup that automatically fills with data from a SQL Table so that when a user begins typing in the box the data filters. Everything works great as long as the user SELECTS the item from the dropdown list. However, if the user types the exact item in the box and the dropdown filters to the exact text and the user hits the enter key and does not select the item from the list, the box queries all items in the table and not just the item that was typed.

For example, the CB we are using lists data from a user table with a field called LastName.

When the user starts typing 'bro' the box filters the list and shows all users that have a last name that begins with 'bro'

brown
browning
brownly

If the user selects browning from the list, the correct user data is queried and returned.

However, if the user types the entire name browning and hits the enter key instead of selecting it from the dropdown list, all users are returned.

Here is the ASPX code for my ComboBox:
<telerik:RadComboBox ID="rcb_Users" Runat="server" AutoPostBack="True"
DataSourceID="sds_UserList" DataTextField="UserName"
DataValueField="UserName" EmptyMessage="Select User" Height="150px"
Skin="WebBlue" EnableAutomaticLoadOnDemand="True" EnableVirtualScrolling="True"
ItemsPerRequest="10" ShowMoreResultsBox="True">
</telerik:RadComboBox>

Is there a way to alow the use of the enter key?
RvdGrint
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
232 views
I have Sql Database and I want to bind it through LINQ from code-behind programmatically in C#.NET. How can I do that?

I have the following code written:

public void populatetree()
    {

        using (DataClasses1DataContext db = new DataClasses1DataContext())
        {
            MsgType mt=new MsgType();
            RadTreeView1.DataFieldParentID = mt.ParentID.ToString();
            RadTreeView1.DataFieldID = mt.ID.ToString();
            RadTreeView1.DataValueField = mt.ID.ToString();
            RadTreeView1.DataTextField = mt.Name;
            RadTreeView1.ToolTip = mt.Description;
           RadTreeView1.DataSource= ?
   
            RadTreeView1.DataBind();
            
        }
    }
what shud I do for the datasource?
Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
2 answers
607 views
Hi guys

I want to call buttonClick event from javascript

 <telerik:RadToolBar ID="_rtooMenu" runat="server" Width="100%" dir="rtl">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="Save" Value="Save" Owner="_rtooMenu" PostBack="true">
                </telerik:RadToolBarButton>
            </Items>
</telerik:RadToolBar>

<script type="text/javascript">
         function FunctionFoundByJavascriptThroughLayersAndLayersOfControls() {
__dopostback ????
         }
    </script>

 Protected Sub _rtooMenu_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles _rtooMenu.ButtonClick
'I want FunctionFoundByJavascriptThroughLayersAndLayersOfControls to get here

end sub
Bill Togkas
Top achievements
Rank 2
 answered on 31 Jan 2012
4 answers
411 views

Hello all

if i put this code into the head section of my master page,
items are 10 pix height as expected, but only on vstudio2008 webdevserver, not on production server (w2k3).

<style type="text/css">
.RadListBox span.rlbText  { padding:0; line-height:10px; }
</style>

the only differences in ie8 sourcetext compare are things like this: <link href="/WebResource.axd?d=Xv_vuQIqd...blabla
Maybe there is a better way to set the line height of my listbox items, the default height is much too big for my taste.
i am a bit lost...
Any ideas?

Jean-Francois Lussier
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
72 views
Hi there. First, sorry about my english.

We have a project on Visual Studio 2010 and we had implement the demo of the MDI application and works great but when we implement an ajax request to get the url of the window to be open, everything go fine until the tabstrip call the repaint method and because of this, the minimize window doesn't work. The question is How can a fix this situation??



Thanks in Advance
Oscar
Top achievements
Rank 1
 answered on 31 Jan 2012
3 answers
70 views
How do I switch between showing a Listview with pictures to a more grid0like view. It must use JavaScript and/or Ajax not repaint the whole screen.
Andrey
Telerik team
 answered on 31 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?