I want to call Radgrid Events manually Server side.
SaveButton.ascx
protected void SaveFormButton_Click(object sender, EventArgs e)
{
}
GridBatchEdit.ascx
protected void GridListBatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
{
}
SaveButton.ascx and GridBatchEdit.ascx are in one page and need to trigger GridListBatchEditCommand when SaveForm button is clicked in Server Side not Client Side.
Is there such a way to do this scenario ?
Thanks
Hi Team,
I am using a radgrid control in my asp.net web page which is dynamically created and added to the page. Columns added to the grid are also dynamic. Sort expression is being used to prioritize sort for 3 default columns which are also dynamic. I am changing the masterview header text due to the business requirement.
Now, the problem is, if i am changing the mastertableview header text, sorting is getting disabled to all number based columns . It is working only for all other string and date based columns. If i don't change mastertableview header text, sorting is enabled for all columns as expected. I tried placing the code to change mastertableview header text in databound and prerender but still no luck. I tried rebind also but not working.
Any sort of help is appreciated.
Thanks in advance.
Hi,
from Chrome version 78, when you group a column in the RadGrid, the grouping item displays the "X" button on a second row, making the item too high. Is there any fix for this? Attaching a screenshot below.
Hi
I'm having trouble adding bold version of Calibri font to client export manager pdf setting. Here's what I'm using :
RadClientExportManager1.PdfSettings.Fonts.Add("Calibri", "Styles/Fonts/Calibri.ttf");
RadClientExportManager1.PdfSettings.Fonts.Add("Calibri Bold", "Styles/Fonts/CalibriBold.ttf");
When I export my element to pdf, parts of text that are not bold look fine, but bold parts fonts is changed to something else. What can I do to add Calibri Bold to pdf setting?
Thanks
Greetings,
I have the following situation which I hope you can help me with.
I have created a RadListBox control that shows icons only - no text. The purpose of this is to act like a menu. I am loading it manually by navigating through a dataset and creating RadListBoxItems, and then adding them to the RadListBox control (e.g.lstMenu.Items.Add(lbItem) ). This works just fine.
I now want to add a RadToolTip to each RadListBoxItem, but cannot seem to get it to work.
I have tried the following:
Dim item As New RadListBoxItem
item.Value = dt.Rows(r).Item("MainMenuID")
item.ImageUrl = String.Format("~/Images/{0}.png", iconName)
item.Height = New Unit(32, UnitType.Pixel)
item.Attributes.Add("tt", name)
lstMenu.Items.Add(item)
Dim tt As New RadToolTip
tt.Text = name
tt.TargetControlID = item.ClientID
tt.IsClientID = True
tt.Position = ToolTipPosition.MiddleRight
tt.Animation = ToolTipAnimation.Fade
tt.RelativeTo = ToolTipRelativeDisplay.Element
tt.RenderInPageRoot = True
tt.ShowEvent = ToolTipShowEvent.OnMouseOver
tt.HideEvent = ToolTipHideEvent.LeaveTargetAndToolTip
tt.AutoCloseDelay = 0
tt.VisibleOnPageLoad = False
... but no tool tips appear over the list item.
I also tried the following using a RadToolTipManager control:
.aspx page:
<telerik:RadToolTipManager runat="server" ID="ttMgr" Position="MiddleRight" Animation="Fade" RelativeTo="Element" RenderInPageRoot="true" ShowEvent="OnMouseOver" HideEvent="LeaveTargetAndToolTip" AutoCloseDelay="0" ShowCallout="true" VisibleOnPageLoad="false" />
code behind
Dim item As New RadListBoxItem
item.Value = dt.Rows(r).Item("MainMenuID")
item.ImageUrl = String.Format("~/Images/{0}.png", iconName)
item.Height = New Unit(32, UnitType.Pixel)
item.Attributes.Add("tt", name)
lstMenu.Items.Add(item)
Private Sub lstMenu_ItemCreated(sender As Object, e As RadListBoxItemEventArgs) Handles lstMenu.ItemCreated
ttMgr.TargetControls.Add(e.Item.ClientID, e.Item.Attributes.Item("tt"), True)
End Sub
... but again no tooltip.
Can anyone please help me as to where I'm going wrong?
We have a page in our application that allows user to upload CSV data to our database. The actual import portion (not the upload) can be quite lengthy depending on the number of records so I am trying to use a RadProgressArea to show progress. However, when I added the RadProgressArea and RadProgressManager to my page, the FileUpload codebehind no longer runs. The dialog box opens for the user to select a file, but then the Upload() method in the code behind no longer runs:
<
button
type
=
"button"
class
=
"btn btn-alt3"
id
=
"btnOpen"
visible
=
"true"
onclick
=
"javascript:OpenFileDialog();"
> <
i
class
=
"icon s7-upload"
></
i
> Upload</
button
>
<
button
type
=
"button"
runat
=
"server"
class
=
"btn btn-alt3"
id
=
"btnUpload"
onclick
=
"javascript:ShowLoadingPanel();"
onserverclick
=
"Upload"
style
=
"visibility:hidden"
></
button
>
<
asp:FileUpload
id
=
"FileUpload1"
runat
=
"server"
style
=
"visibility:hidden"
/>
<
asp:HiddenField
runat
=
"server"
ID
=
"importType"
ClientIDMode
=
"Static"
/>
<
telerik:RadProgressManager
ID
=
"RadProgressManager1"
runat
=
"server"
/>
<
telerik:RadProgressArea
RenderMode
=
"Lightweight"
ID
=
"RadProgressArea1"
runat
=
"server"
Width
=
"500px"
/>
</
asp:Content
>
<
asp:Content
ID
=
"Content6"
ContentPlaceHolderID
=
"PageScripts_Footer"
runat
=
"server"
>
<
script
>
$(document).ready(function () {
var grid = $find("<%= grdImportData.ClientID %>");
var columns = grid.get_masterTableView().get_columns();
for (var i = 0; i <
columns.length
; i++) {
columns[i].resizeToFit();
}
});
function OpenFileDialog(fileUpload) {
document.getElementById('<%=FileUpload1.ClientID%>').click();
}
function UploadFile(fileUpload) {
if (fileUpload.value != '') {
document.getElementById("<%=btnUpload.ClientID %>").click();
}
}
It its the btnUpload.Client click call, but it never runs the code behind. If I remove the RadProgressArea and the RadProgressManager, the Upload code runs as expected.
Hey guys,
I'm currently trying to achieve to have a specific year selected on initialize in the code behind. I try to select the current year by default and fill some years into the box. As soon as I switch the year and reload the page the radgrid takes the correct value but it gets displayed the old value (for example 2015) . Anyone has an Idea how to fix that? I already tried to clear all items before setting the datasource.
Thanks in advance,
Daniel