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

Hi, I am using a grid filter - Show/hide button in the <CommandItemTemplate> of RadGrid. I am using this for the filter to show on or off. But this radbutton has a different color than the Grid Header. I want to change its background to whatever color that the Grid has ( I may use different skin). Below is the code. Any way we can set the BackColor property of the button at Clientside itself? 

<MasterTableView CommandItemDisplay="Top" CommandItemStyle-HorizontalAlign="Right" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
                                                <CommandItemTemplate>
                                                    <telerik:RadButton ID="btnFilter" runat="server" ButtonType="SkinnedButton" Font-Size="X-Small" OnClick="btnFilter_Click" Width="30px" Height="20px" Text="filter"></telerik:RadButton>
                                                </CommandItemTemplate>
                                                <Columns>
Doncho
Telerik team
 answered on 22 Feb 2022
3 answers
370 views

I have a web page with a RadGrid in Batch Edit mode.  The number and width of the columns makes the grid wider than the browser window, so it scrolls horizontally.  I followed this example to allow me to TAB from cell to cell in the table and to scroll the grid horizontally as the cursor moves from column to column.  When I get to the last cell in a row, pressing TAB moves me to the next row, but it moves me to the first visible column on the row rather than scrolling the page all the way back to the left edge and moving me to the first column.

Is there a way to reset the horizontal scrolling when I TAB from the last cell so it goes back to the left most column?

Attila Antal
Telerik team
 answered on 22 Feb 2022
2 answers
638 views

Hello, I have a RadPdfViewer in one of my pages but no matter the way I try to load a PDF, it stays hanging in the loading stage indefinitely.

It stays that way even if I try to load a Pdf by simply clicking open.

What can I do to fix this ?

Vessy
Telerik team
 answered on 21 Feb 2022
0 answers
114 views
I have a composite control that has a link button and RadAyncUpload in RadDataForm.
I access the control as follows using Javascript in a  WebForm.

var filelength = find("<%= CompositeControl1.RadAsyncUpload.ClientID %>").getUploadedFiles().length;

I am not sure how to access this control using javascript from RadDataForm.

I tried using the following,

 var container = $(".RadDataForm")[0];
 var uploaded = $telerik.findElement(container, "CompositeControl1");

I am not sure how to access RadAsyncUpload from the above.Any help is appreciated.Thank you.
T
Top achievements
Rank 1
 asked on 21 Feb 2022
0 answers
70 views

Hello

Please Help me.

attacted file : problem1.png, problem2.png, problem3.png

It is automatically displayed like a StatusBar of RadGridin the RadListBox?
If possible, please teach me how.

 

 

 

 

 

 

anna
Top achievements
Rank 1
Bronze
Iron
 asked on 21 Feb 2022
1 answer
119 views

I am working on a timesheet application that tracks a person's hours using a RadGrid.

I have the totals for the day column displayed in the footer. But I want to create a column that sums up all the hours in the row. Is there a way to do that?

Attila Antal
Telerik team
 answered on 21 Feb 2022
2 answers
345 views

Hi,

I want to change the language of the filter in a excel like grid. I try this solutions :

-----------------------------------------------------------------------------------------------

Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");

-----------------------------------------------------------------------------------------------

The culture is fr-FR but the calendar and the labels of the filters are in english.

Can I have some help ? Thank you

Best regards,

Audrey

Attila Antal
Telerik team
 answered on 21 Feb 2022
0 answers
55 views

Hello

Please Help me.

attacted file : problem1.png, problem2.png, problem3.png

It is automatically displayed like a StatusBar of RadGridin the RadListBox?
If possible, please teach me how.

 

 

 

 

 

 


anna
Top achievements
Rank 1
Bronze
Iron
 updated question on 20 Feb 2022
1 answer
129 views

I had to use a custom chart legend but can't seem to figure out how to export the custom legend when exporting to pdf.

html:
<telerik:RadButton RenderMode="Lightweight" runat="server" OnClientClicked="exportChart1" Text="Export to PDF" AutoPostBack="false" UseSubmitBehavior="false"></telerik:RadButton>

Javascript:
function exportChart1() {
var $ = $telerik.$;
var ddlValue = $find("<%= ddlChart1.ClientID %>").get_selectedItem().get_value();
var selectedChart = "." + ddlValue;

/*The selectedChart is found by the CssClass of the chart*/
$find('<%=RadClientExportManager1.ClientID%>').exportPDF($(selectedChart));
}

The custom legend :

<div class="customLegendWrapper">
<div class="customLegend">
<div class="series1">
<div></div>
Series 1
</div>
<div class="series2">
<div></div>
Series 2
</div>
<div class="series3">
<div></div>
Series 3
</div>
</div>
</div>

Vessy
Telerik team
 answered on 18 Feb 2022
1 answer
420 views

I have a Grid with a template column with a MultiSelect as the EditItemTemplate. The MultiSelect displays fine with all of the available values, but I can't figure out how to save the selected items to the database.

When I use a ComboBox, I used SelectedValue='<%# Bind("Team_ADS_Person_IDs") %>' to bind and the selected value is saved in the Team_ADS_Person_ID field correctly, but I'm not sure what to use for the MultiSelect.

<MasterTableView DataKeyNames="Record_ID" EditMode="InPlace" DataSourceID="sql" AutoGenerateColumns="false" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true">
    <Columns>
        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderStyle-Width="110px"></telerik:GridEditCommandColumn>
        <telerik:GridTemplateColumn HeaderText="Team" SortExpression="Team_ADS_Person_IDs" HeaderStyle-Width="275px">
            <ItemTemplate>
                <%# Eval("Team_ADS_Person_IDs")%>
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadMultiSelect ID="selTeam" runat="server" DataSourceID="sqlEmployee" DataTextField="Display_Name" DataValueField="ADS_Person_ID" Filter="Contains" Width="100%" AutoClose="False"></telerik:RadMultiSelect>
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ConfirmText="Are you sure you want to delete this record?" HeaderStyle-Width="50px" UniqueName="DeleteCommandColumn">
        </telerik:GridButtonColumn>
    </Columns>
</MasterTableView>
</telerik:RadGrid>


<asp:SqlDataSource ID="sql" runat="server" ConnectionString="<%$ ConnectionStrings:csCHPServiceDesk %>" SelectCommand="Release.usp_Product" SelectCommandType="StoredProcedure" InsertCommand="Release.usp_Product" InsertCommandType="StoredProcedure" UpdateCommand="Release.usp_Product" UpdateCommandType="StoredProcedure" DeleteCommand="Release.usp_Product" DeleteCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter Name="Action" DefaultValue="Select" Type="String" />
    </SelectParameters>
    <InsertParameters>
        <asp:Parameter Name="Action" DefaultValue="Insert" Type="String" />
        <asp:Parameter Name="Team_ADS_Person_IDs" Type="String" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="Action" DefaultValue="Update" Type="String" />
        <asp:Parameter Name="Record_ID" Type="Int32" />
        <asp:Parameter Name="Team_ADS_Person_IDs" Type="String" />
    </UpdateParameters>
    <DeleteParameters>
        <asp:Parameter Name="Action" DefaultValue="Delete" Type="String" />
        <asp:Parameter Name="Record_ID" Type="Int32" />
    </DeleteParameters>
</asp:SqlDataSource>

<asp:SqlDataSource ID="sqlEmployee" runat="server" ConnectionString="<%$ ConnectionStrings:csCHPServiceDesk %>" SelectCommand="usp_Lookup" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter Name="Action" DefaultValue="Select Employee" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>

Attila Antal
Telerik team
 answered on 18 Feb 2022
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?