Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views

Hello

I have a simple Grid With many Columns and I Add "Export to Excel" to it. I can Export Easily

but I want better Excel File.I mean I want add some Other Information to Excel File Which are not in Grid For Example 'Creation DateTime','The name of someone who Exported' and ... .and I want to format them .for example Bold or Italic .

I dont want use "caption" because it is simple.

Is another way to achive this Goal?

Viktor Tachev
Telerik team
 answered on 04 Jan 2016
11 answers
1.0K+ views
I need to add a radio ButtonList in a Custom Item Template for a test. I pull [QID],[TestQuestion] from SQL DataSource1  I have a Radiobuttionlist inside the ItemTemplate as well which uses SQLDataSource2 which Pulls [QID],[TestChoice] I need to populate the itemtemplate with the test questions and the test choices underneath in the radiobuttonlist but I can't seem to get the control parameter correct for the buttonlist unless I go into edit mode. How do I tell SQLDatasource2 to use the [QID] of the current record to populate the buttonlist?

 <form id="form1" runat="server">  
    <div>  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager>  
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager>  
        <br />  
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gulfcoastConnectionString %>" 
            SelectCommand="SELECT [QID], [Question] FROM [mttestquestions]"></asp:SqlDataSource>  
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:gulfcoastConnectionString %>" 
            SelectCommand="SELECT [Choice], [Selectvalue], [QID] FROM [mttestChoices] WHERE ([QID] = @QID)">  
            <SelectParameters>  
                <asp:ControlParameter ControlID="RadGrid1" Name="QID" PropertyName="DataSource" />  
            </SelectParameters>  
        </asp:SqlDataSource>  
      
    </div>  
        <br />  
        <br />  
        <br />  
        <br />  
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
            GridLines="None" Skin="Sunset">  
            <MasterTableView DataSourceID="SqlDataSource1">  
                <EditItemTemplate>  
                    &nbsp;  
                </EditItemTemplate>  
                <RowIndicatorColumn>  
                    <HeaderStyle Width="20px" />  
                </RowIndicatorColumn>  
                <ExpandCollapseColumn>  
                    <HeaderStyle Width="20px" />  
                </ExpandCollapseColumn>  
                <Columns>  
                    <telerik:GridBoundColumn DataField="QID" DataType="System.Int32" HeaderText="QID" 
                        SortExpression="QID" UniqueName="QID">  
                    </telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="Question" HeaderText="Question" SortExpression="Question" 
                        UniqueName="Question">  
                    </telerik:GridBoundColumn>  
                </Columns>  
                <ItemTemplate>  
                    <asp:Label ID="LABELQID" runat="server" Text='<%# Eval("QID") %>' AssociatedControlID="RadioButtonList1"></asp:Label>  
                    <asp:Label ID="Label2" runat="server" Text=". "></asp:Label>  
                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("Question") %>'></asp:Label><br />  
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" DataSourceID="SqlDataSource2" 
                        DataTextField="Choice" DataValueField="Selectvalue">  
                    </asp:RadioButtonList>&nbsp;&nbsp;  
                </ItemTemplate>  
            </MasterTableView>  
            <FilterMenu EnableTheming="True" Skin="Sunset">  
                <CollapseAnimation Duration="200" Type="OutQuint" />  
            </FilterMenu>  
        </telerik:RadGrid>  
    </form>  
</body> 
Angel Petrov
Telerik team
 answered on 04 Jan 2016
2 answers
158 views

Hello,

 

I'm having some trouble with my filter template on a GridDatetimeColumn. It's happenig only when I try the Between or NotBetween function.

The thing is:

I can normally call the method filter() from the table view client object.

I have all  parameters like this example:

1.// columnUnique = 'dateColumn'
2.// value = '01/12/2015 31/12/2015'
3.// cont = 11 (Between function from the Telerik.Web.UI.GridFilterFunction.Between)
4. 
5.tableView.filter(columnUnique, value, cond, true);

When this method is called, it's not fired to the server.

If I change the function to something like EqualsTo (in this case, the 31/12/2015 part is omitted and only the first part is used), the same method works fine.

In the grid setup, I set all date columns to EnableRangeFiltering = true;

 

I also tried the grid without my filter template to check the built-in funtion. That way, the command was fired on the server and the value was just like the example. ('01/12/2015 31/12/2015')

 

I need to use the template because of some requirements and the date column's is the only one that's giving more trouble.

Thanks for the help

Kostadin
Telerik team
 answered on 04 Jan 2016
14 answers
1.3K+ views
Hi,
    I have dynamic grid to export in excel but  i want to show  Header and Footer data like Logo,Text on excel . I don't know how can do this please provide the example or demo.

Regards
Rahul

Viktor Tachev
Telerik team
 answered on 04 Jan 2016
1 answer
222 views

Hello,

 Is there any possibility to work on dates instead numbers for charts?? For e.g I want to show Bar Range Chart from 1st of Jan to 3rd of Jan 

I hope I'm clear enough I was unable to find any demo related to Dates for Range charts 

Danail Vasilev
Telerik team
 answered on 04 Jan 2016
1 answer
188 views

Is there a way to create a Multiline title so that the font size and style is different for the second line?

I want my main title, first line, to be larger while the second line, subtitle, should be smaller and italic. I'm setting all my title attributes currently on the server side.

Thanks

Rodney

Danail Vasilev
Telerik team
 answered on 04 Jan 2016
8 answers
247 views
Hi, 

We're using Q2 2011 SP1 and we're having multiple issue with chrome browser.

1. Changes font size say 32px and start typing. Its not keeping the fontsize
2. pastHTML(text) is not moving cursor after inserted text. same issue with other insert like insert time. e.g. click on Insert time and then again click on insert time. Cursor is not moving after the second insert time.

Also we are having issues with alignment in FF and IE.

FF: Type some text and click on center align or right align. Its not working.
IE: Type some text say "Telerik" hit enter twice and then click on center align. Text "Telerik" is also center aligned.

Thanks,
Anil
Ianko
Telerik team
 answered on 04 Jan 2016
1 answer
527 views

Hello Telerik team,

We are extensively used Rad Controls within our asp.net web based application.The Telerik Version we are currently using within our application is :2014.2.724.45

Recently we noticed one major issue for all RadButtons that are available throughout the application. The issue is,  whenever we set width of Radbutton from markup or code behind then it automatically applies "padding-left:4px" to internal input at the time of rendering. Due to this padding, the text of Button is not appearing exactly at the center.

Whenever we give custom width to the RadButton from Markup or code behind, the <span> tag comes with a specified width , 1st <input> comes with style  "width:100%;padding-left:0;padding-right:0;padding-left:4px;height:28px" ;

As shown above, the main issue is caused by "padding-left:4px". We want to set it 0px after which then the text would appear center align on our end.

Below are the code snippet for our above issue:

.aspx page:

<myTelerik:RadButton Height="28px" ID="btnEdit" Width="90px" EnableEmbeddedSkins="false" Skin="Strong" runat="server" Text="Edit " ValidationGroup="Edit" OnClick="btnEdit_Click" />

Below code renders on Browser

<span id="ctl00_ContentPlaceHolder1_btnEdit" class="RadButton" style="padding:0px !important;display:inline-block;height:28px;width:75px;height:28px;" tabindex="0">
    <input class="rbDecorated" type="button" name="ctl00$ContentPlaceHolder1$btnEdit_input" id="ctl00_ContentPlaceHolder1_btnEdit_input" value="Delete" style="width:100%;padding-left:0;padding-right:0;padding-left:4px;height:28px;" tabindex="-1">
<input id="ctl00_ContentPlaceHolder1_btnEdit_ClientState" name="ctl00_ContentPlaceHolder1_btnEdit_ClientState" type="hidden" autocomplete="off">
</span>

Please provide us workaround how we can remove the "padding-left:4px" for all those RadButtons which having custom width. We need the generic way to resolve this issue so that it requires minimum numbers of files need to be updated.

Please note that this issue is only encounters only when we applies custom width to RadButton. For other RadButtons where custom width is not applied, the text appears at center. We are trying to do the same, but we are not getting expected output.

Thanks,
Riz

Danail Vasilev
Telerik team
 answered on 04 Jan 2016
5 answers
474 views
is there a way to turn off  the week number in raddatepicker?
Iman
Top achievements
Rank 1
 answered on 03 Jan 2016
10 answers
244 views
hi
asyncUpload.UploadedFiles[0].ContentType return null when png file uploaded.
please fix it.

<%@ Page Language="C#" %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    protected void show(object sender, EventArgs e)

    {

        if (asyncUpload.UploadedFiles.Count != 0)

            label.Text = asyncUpload.UploadedFiles[0].ContentType;

    }

</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title></title>

</head>

<body>

    <form id="form" runat="server">

    <div>

        <Telerik:RadScriptManager ID="radScriptManager" runat="server" />

        <Telerik:RadAsyncUpload runat="server" ID="asyncUpload"

            MaxFileInputsCount="1" />

        <asp:Button ID="button" runat="server" Text="show content type" OnClick="show" />

        <br />

        <asp:Label ID="label" runat="server" Text="Label" />

    </div>

    </form>

</body>

</html>

thanks

Plamen
Telerik team
 answered on 01 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?