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

I want to export radgrid data in excel file with xlsx extension.
I checked out this link  but of no use
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-export-to-excel--xlsx-format.aspx


myGrid.ExportSettings.Excel.Format = GridExcelExportFormat.Biff ; 
myGrid.MasterTableView.ExportToExcel();

I am using trial version of Q2 2012.

Can anyone help me here?

Thanks....
Princy
Top achievements
Rank 2
 answered on 26 Feb 2014
1 answer
76 views
Hello All,
     I have a grid, that in the ItemCommand event handler subroutine I handle the "RowClick" with a call to another sub...  Now here's where it gets interesting...  In the first cell/column of a row, I have an Image.  I would like it so that when the user "Clicks" the image that it fires off a server side event that I can capture and call my same sub that handles the "RowClick" event... I know that if the user clicks the "white" space around the image, that the ItemCommand event is fired for the "RowClick", but NOT for clicking inside the image itself...  The image is large enough and takes up a good bit of the cell that there is very little "white" space around it, and that it would seem to be very frustrating that nothing happens when the image itself is clicked...  
    Right now, how things stand is that it's a plain column, and a plain image in the cell.  I have NOT looked at placing an ImageButton in the cell, as I have not used that control before, nor have I looked at a GridImageColumn or a GridBinaryImageColumn yet.  the two alternative column types don't quite seem to be want I looking for, as the images are not stored in a database  or in a particular URL...  
    So...  Is there anyway to have the Image fire off some sort of server event when it is clicked or not???  That is the question of the day...

Thanks in advance!,

Kevin Orcutt
Matson Money Inc.
(513) 204-8000 x8245
(513) 204-8245 (Direct)
Kevin.Orcutt@MatsonMoney.com
www.MatsonMoney.com
Eyup
Telerik team
 answered on 26 Feb 2014
1 answer
48 views
Hi ,

I Have a a ragrid and i enter the data into the grid from textboxes .I have two fields one is the name and Description fields with an unique id in the database. I want to edit the rows on double click of that particular row in the radgrid and on the double click have an update button shown in another column and update button  has the code in the code behind?


Thanks in advance

Eyup
Telerik team
 answered on 26 Feb 2014
8 answers
295 views
Hi All,

I have an all code-behind solution where I build out the grid columns based upon the DataView acquired from the SqlDataSource.  I'd like to be able to dynamically switch the SqlDataSource for the grid with different drop-down-list options.  I'm doing something like this, but it appears that I'm getting vague errors.  I am re-using the SqlDatasource variable and re-building whenever the User switches the drop-down-list option.  I also re-build my RadGrid's columns using the new DataView from the updated SqlDataSource.  I then rebind(); just like in that link, but I do not autogenerate columns.

Can you anyone please help me?

Thanks,
Mark
Marin
Telerik team
 answered on 26 Feb 2014
3 answers
73 views
Hi

I'm trying to create a Department Planner.

I need time in 15 mins interval for 24 hours horizontally on the header and employees name vertically. I need to be able to select the time interval for each employees. Also, I need to group employees based on their job profile. I also need a few footers to calculate totals.

For example

                                        6:00                   7:00                   8:00                9:00            10:00 .............................n                                                            Total hrs worked
                                  15   30   45       15   30   45       15  30   45     15   30  45    15   30  45

Group A - Emp1      highlight back color if working and if double clicked on a particular 15 mins interval then change the colour                                Group A - Emp2                                     
Group A - Emp3
     :
Group A -Footer total...

Group B - Emp1
Group B - Emp2
    :
Group B - Footer total


What' s the best control that I can use to achieve the above scenario.

Any suggestions would be appreciated.

Thanks
Konstantin Dikov
Telerik team
 answered on 26 Feb 2014
2 answers
185 views
I have a radgrid that the user can group by collumns. He can also collapse one, or multiple groups. When exporting to pdf is it possible not to display the rows that were part of the collapsed groups? If it is possible can I get an example ,demo, or hint to make this work,please?
Thank you for you help.
Viktor Tachev
Telerik team
 answered on 26 Feb 2014
1 answer
184 views
I'm having a problem when clicking on the indent button in RichTextEditor in sitecore. Clicking the button produces a <blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"> ... </blockquote> tag, because it's the TelerikRad control that spits out this code. The <blockquote> tag causes an actual quote (") to show on the page. I just want the text to indent, not show a quote.

How can I override this behavior in TelerikRad control to produce maybe a <span> tag with indentation styling, or a <p> tag with indentation styling, rather than a <blockquote> tag?

Is there maybe some sitecore configuration setting I can modify to change the indent button's behavior to spit out a <span> or <p> tag instead of a <blockquote>?

Thanks!
Ianko
Telerik team
 answered on 26 Feb 2014
1 answer
142 views
I'm having a problem when clicking on the indent button in RichTextEditor in sitecore. Clicking the button produces a <blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"> ... </blockquote> tag, because it's the TelerikRad control that spits out this code. The <blockquote> tag causes an actual quote (") to show on the page. I just want the text to indent, not show a quote.

How can I override this behavior in TelerikRad control to produce maybe a <span> tag with indentation styling, or a <p> tag with indentation styling, rather than a <blockquote> tag?

Is there maybe some sitecore configuration setting I can modify to change the indent button's behavior to spit out a <span> or <p> tag instead of a <blockquote>?

Thanks!
Ianko
Telerik team
 answered on 26 Feb 2014
3 answers
65 views
Having an issue with multiple RadEditors on the same page. For the most part they work fine but in certain situations I get a Microsoft JScript runtime error.

Error Message:

Unhandled exception at line 6, column 74203 in http://localhost:53807/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2

0x800a138f - Microsoft JScript runtime error: 'undefined' is null or not an object


Scenario:
Dot Net 4.0 framework ASP.NET app using Telerik ASP.NET AJAX 2013.3.1015 with VS Premium 2012.
I have a form with 3 editors on it inside of a RadAjaxPanel. The first 2 are inside of a RadPanelBar together. The 3rd is inside of a separate RadPanelBar. Now here is what is happening. If the first 2 editors are enabled and the 3rd is disabled, when I submit the form everything works great. Now if the 1st 2 are disabled and the 3rd is enabled is when I get the error above when submitting the form.

Any ideas?
Ianko
Telerik team
 answered on 26 Feb 2014
2 answers
162 views

Hi. I have nested listview . Child Listview has onneeddatasource. but i cant Access any DataKeyValue or custom control attribute in  OnNeedDataSource . both listviews are inside ajaxpanel.
There is an old post about it here. strange i can reach these values from itemcommand of child listview, But i cant access anything from needdatasource event. thanks.

basic skeleton:

<telerik:RadAjaxPanel ID="apanelParent" runat="server"
                ViewStateMode="Enabled"
                EnableViewState="true">
     <telerik:RadListView ID="lvParent" runat="server"
                    DataKeyNames="CId"
                    DataSourceID="OADLSParent"
                    ViewStateMode="Enabled"
                    EnableViewState="true">
               <ItemTemplate>
                         <asp:HiddenField ID="hfCid2" runat="server" Value='<%# Eval("CId") %>' />
                          <telerik:RadAjaxPanel ID="apanelChild" runat="server"
              ViewStateMode="Enabled" EnableViewState="true">
                      <telerik:RadButton ID="btnShowChildInsertItem" runat="server"
                                        ViewStateMode="Enabled"
                                        EnableViewState="true"
                                        Text="insert input"
                                        OnClick="btnShowChildInsertItem_Click"
                                        cId='<%# Eval("CId") %>'
                                        CommandArgument='<%#Container.DataItemIndex%>'>
                    </telerik:RadButton>
                    <telerik:RadListView ID="lvChild" runat="server"
                                        DataKeyNames="Id"
                                        EnableViewState="true"
                                        ViewStateMode="Enabled"
                                        InsertItemPosition="FirstItem"
                                        AllowPaging="True"
                                        PageSize="5"
                                        OnNeedDataSource="lvChild_NeedDataSource"
                                        OnItemCommand="lvChild_ItemCommand">
                    </telerik:RadListView>
                   </telerik:RadAjaxPanel>
              </ItemTemplate>
       </telerik:RadListView>
  </telerik:RadAjaxPanel>

 
OnNeedDataSource of child:

protected void lvChild_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e)
       {
               RadListView lvChild = (RadListView)sender;
               RadListViewDataItem parentItem = (RadListViewDataItem)lvChild.NamingContainer;
 
              var parentCevapId = (int)parentItem.GetDataKeyValue("CId");//null.null exception
 
               RadButton rb = (RadButton)parentItem.FindControl("btnShowChildInsertItem");
               int cId = Convert.ToInt32(rb.Attributes["cId"]);//null.there is rb but no attr.
 
               HiddenField hf2 = (HiddenField)parentItem.FindControl("hfCid2");
//there is an hf2 but no value
               string cId3 = hf2.Value.ToString();//null

Cuneyt
Top achievements
Rank 1
 answered on 26 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?