Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 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
357 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
56 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
143 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
462 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
1 answer
106 views
I would like to show the alt tag / tooltip of the image title when the cursor is hovered over the thumbnail. Any way that can be done?
Rumen
Telerik team
 answered on 18 Feb 2022
1 answer
210 views

I have multiple charts in a dashboard page.  I've attempted using the Java script example in the demo page (see link below), including the function call in the "ClientEvents -Onload" property of each chart. The script works. However, only one of charts resizes properly. I've also attempted modifying the script by adding a function for each chart but the result is the same.

   

https://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/responsive-chart/defaultvb.aspx

Thank you in advance for any help on this issue.

 

Vessy
Telerik team
 answered on 17 Feb 2022
0 answers
65 views

hello

Please answer the questions in the link below.

No reply after two days.

I am waiting for a reply..

Please Help me

https://www.telerik.com/forums/radlistbox-i-want-to-insert-just-below-the-selected-index-in-radlistbox1

 

anna
Top achievements
Rank 1
Bronze
Iron
 asked on 17 Feb 2022
0 answers
79 views

Hello
Attacted File : RadListBox.png, 544016CancelTransferEventAndAddManullyItems.aspx, 544016CancelTransferEventAndAddManullyItems.aspx.cs

Please Check the Attacted File(RadListBox)

Please answer Questions-1 & Questions-2

 

Question - 1 ) If you use AllowTransfer="true"
Is it possible to use InsertAt(It means inserting at the index position of the RadListBox I want) function while using AllowTransfer="true" function?

Can I use [ InsertAt ] function while using  AllowTransfer="true" for RadListBox ?

RadListBox, I want to Insert just below the Selected Index in RadListBox1.



***The goal is to migrate the source code below to RadListBox and AllowTransfer="true"

if (RadListBox2.SelectedIndex >= 0)
{
   for (int i = 0; i < RadListBox2.Items.Count; i++)
   {
       if (RadListBox2.Items[i].Selected)
      {
         arraylist.Add(RadListBox2.Items[i]);
      }
  }

int nSelectIndex = RadListBox1.SelectedIndex + 1;

 for (int j = 0; j < arraylist.Count; j++)
{
     RadListBox1.Items.Insert(nSelectIndex, ((ListItem)arraylist[j]));
     nSelectIndex++;

     RadListBox2.Items.Remove(((ListItem)arraylist[j]));
}
}

 

 

Question - 2 ) If you don't use AllowTransfer="true"
Using a generic RadListBox, Is it possible to migrate the code below to RadListBox?

Does RadListBox have an  <<< InsertAt >>>> function?

if (RadListBox2.SelectedIndex >= 0)
{
   for (int i = 0; i < RadListBox2.Items.Count; i++)
   {
       if (RadListBox2.Items[i].Selected)
      {
         arraylist.Add(RadListBox2.Items[i]);
      }
  }

int nSelectIndex = RadListBox1.SelectedIndex + 1;

 for (int j = 0; j < arraylist.Count; j++)
{
     RadListBox1.Items.Insert(nSelectIndex, ((ListItem)arraylist[j]));
     nSelectIndex++;

     RadListBox2.Items.Remove(((ListItem)arraylist[j]));
}
}

Please Help me. waiting for response.


anna
Top achievements
Rank 1
Bronze
Iron
 updated question on 17 Feb 2022
1 answer
123 views

Hi,

RadSpreadsheet for ASP.NET AJAX
My goal is to type values in the cells (numbers, letters, etc) having a simple background image as background: this can be useful

if the image is a technical drawing and the cells could represent measurements....

more or less:

function OnClientLoad( editor, args) 
    var style = sheet.get_contentArea().style; 
    style.backgroundImage "url(myImage.jpeg)"
</script> 

it's possible in some way?

Thanks for the support.

Vessy
Telerik team
 answered on 16 Feb 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?