Using CSS and html need the below format like category and sub-categories (Definetly it should be like expanding and collapsing functionality). Could anyone please give me some ideas on aspx side as well as code-behind. That would be great.
I'm getting this error after upgrading my app to the latest version. What am I missing?
"Unable to get property '_events' of undefined or null reference"
"Uncaught TypeError: Cannot read properties of undefined (reading '_events')"
Telerik.Web.UI.WebResource.axd
Hi sir
I use radcomobox in master page after i need get the selected value in child page with button click.
for now i get only first value even i select middle value.
Hi,
I used this follow function to export my grid to Excel format, while my data source(a store procedure) has hyperlink inside.
How can I just export the grid without hyperlink by setting some configurations?
aspx file
<
asp:GridView
ID
=
"ExcelGridView"
runat
=
"server"
BorderStyle
=
"None"
GridLines
=
"Both"
Visible
=
"False"
HeaderStyle-Font-Bold
=
"true"
HeaderStyle-BackColor
=
"LightGray"
OnRowDataBound
=
"ExcelGridView_RowDataBound"
></
asp:GridView
>
cs file
System.Data.DataTable data_table = ADOHelper.GetDataTable(ConfigurationManager.ConnectionStrings["Ligx_4_DB"].ConnectionString, query, null);
ExcelGridView.DataSource = data_table;
ExcelGridView.DataBind();
ExcelGridView.Visible = true;
Response.ClearContent();
string attachment = "attachment; filename=ExcelDownload.xls";
Response.AddHeader("Content-disposition", attachment);
Response.ContentType = "xls";
The RadNumericTextBox is rounding incorrectly after a postback.
I am currently using 5 decimal places with the value of
0.00481487920209807
When the page loads it displays correctly
After I click the Postback button the display value changes
<div class="form-row">
<asp:Button ID="btnCausePostback" Text="Postback" runat="server" OnClick="btnCausePostback_Click" />
<telerik:RadNumericTextBox runat="server" ID="txtUnitCost" NumberFormat-DecimalDigits="5" Value="0.00481487920209807" />
</div>
protected void btnCausePostback_Click(object sender, EventArgs e)
{
}
I am not sure what the round function is doing in this scenario?
I do have a work around which is setting
NumberFormat-AllowRounding="false"
Hello,
I'm using a RadScheduler and I have set it to display the AdvanceEditForm on click on an appointment.
I also have a RadToolTipManager to have a custom tooltip when the mouse pass over an appointment.
The problem I have is that :
- if I click on the appointment before the RadToolTipManager begin to show the tooltip
or
- if I move on another appointment after clicking on one and before the AdvanceEditForm appears
the clientappointmentclick event is cancelled by the tooltip ...
https://www.screencast.com/t/8LlJ3UTqLR
How can I do to avoid this problem ?
Best regards,
Remy Dubois.
hello
I am using a radgrid with a master table view and details table, I can update my master table view with a stored procedure however I cannot update detail table with another stored procedure. The two updates must be done simultaneously with the save button of radgrid in edit mode.
Here is what I did for my master table view, it works and i would like to do the same button on my detail table, Can you help me pls
protected void RadGrid1_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
string pID_OF = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ID_OF"].ToString();
string pNO_WO = (editedItem["NO_OF"].Controls[0] as TextBox).Text;
string pRef = (editedItem["CodeArticle"].Controls[0] as TextBox).Text;
string pQte = (editedItem["QteLancee"].Controls[0] as TextBox).Text;
string pStatut_WO = (editedItem["StatutOF"].Controls[0] as TextBox).Text;
string pDate_WO = (editedItem["DateLancement"].Controls[0] as TextBox).Text;
string pID_Affectation = (editedItem["ID_Affectation"].FindControl("RadCombobox1") as RadComboBox).SelectedValue;
try
{
SqlDSListeOF.UpdateParameters["pID_OF"].DefaultValue = pID_OF;
SqlDSListeOF.UpdateParameters["pNO_WO"].DefaultValue = pNO_WO;
SqlDSListeOF.UpdateParameters["pRef"].DefaultValue = pRef;
SqlDSListeOF.UpdateParameters["pQte"].DefaultValue = pQte;
SqlDSListeOF.UpdateParameters["pStatut_WO"].DefaultValue = pStatut_WO;
SqlDSListeOF.UpdateParameters["pDate_WO"].DefaultValue = pDate_WO;
SqlDSListeOF.UpdateParameters["pID_Affectation"].DefaultValue = pID_Affectation;
SqlDSListeOF.Update();
}
catch (Exception ex)
{
e.Canceled = true;
ErrorAffectation.Text = "Impossible de mettre à jour . " + ex.Message;
}
}
Can you please tell me why RadFilter can not load field names from this RadGrid2 if I chang the FilterContainerID to another Radgrid in the page it work fine
<div style="float:right ; display: flex">
<telerik:RadFilter RenderMode="Lightweight" runat="server" ID="RadFilter1" FilterContainerID="RadGrid2" ShowApplyButton="false" ShowAddGroupExpressionButton="False" UseBetweenValidation="False"></telerik:RadFilter>
</div>
<div class="Demo">
<telerik:RadGrid ID="RadGrid2"
GridLines="None"
runat ="server"
AllowAutomaticDeletes="false"
AllowAutomaticInserts="True"
AllowPaging="True"
AutoGenerateColumns="false"
PageSize="4"
CellSpacing="0"
OnPreRender ="RadGrid2_PreRender"
OnItemCommand ="RadGrid2_ItemCommand"
AllowAutomaticUpdates="True"
AllowMultiRowEdit="true"
AllowMultiRowSelection ="true"
DataSourceID ="SqlDataSource3">
<MasterTableView DataKeyNames="Inv_Id,Id"
CommandItemDisplay="Top"
AutoGenerateColumns="False"
EditMode="InPlace"
HorizontalAlign="NotSet"
IsFilterItemExpanded="false"
RetainExpandStateOnRebind="true"
DataSourceID ="SqlDataSource3"
>
<CommandItemSettings ShowAddNewRecordButton="false" RefreshText="أعادة تنشيط" RefreshImageUrl="../Images/Green%20Icons/RefreshGreen.png" />
<CommandItemTemplate>
<telerik:RadToolBar RenderMode="Lightweight" runat="server" ID="RadToolBar1" AutoPostBack="true">
<Items>
<telerik:RadToolBarButton Text="أعادة تنشيط" CommandName="Rebind" ImageUrl="../Images/Green%20Icons/RefreshGreen.png" ImagePosition="Right"></telerik:RadToolBarButton>
<telerik:RadToolBarButton Text=" تطبيق التصفية" CommandName="FilterRadGrid" ImageUrl="../Images/Filter-List-icon.png" ImagePosition="Right"></telerik:RadToolBarButton>
<telerik:RadToolBarButton Text="حفظ واختيار الجميع" CommandName="UpdateEdited" ImageUrl="../Images/appicons/update.png" ImagePosition="left" OnClick="btnUpdateAll_Click"></telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
</CommandItemTemplate>
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateCheckboxColumn">
<HeaderTemplate>
<telerik:RadCheckBox ID="CheckAllCheckBox" runat="server" AutoPostBack="false" OnClientCheckedChanged="checkAllChanged"></telerik:RadCheckBox>
</HeaderTemplate>
<EditItemTemplate>
<telerik:RadCheckBox ID="RowCheckBox" runat="server" AutoPostBack="false" Checked='<%# Bind("AnimalStat") %>' ></telerik:RadCheckBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn SortExpression="inv_Id" HeaderText="التسلسل" HeaderButtonType="TextButton"
DataField="inv_Id" UniqueName="inv_Id" display="false" AllowFiltering ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Id" HeaderText="التسلسل" HeaderButtonType="TextButton"
DataField="Id" UniqueName="Id" display="false" AllowFiltering ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="AnimalId" HeaderText="رقم الكمبيوتر" HeaderButtonType="TextButton"
DataField="AnimalId" UniqueName="AnimalId" ReadOnly="true" HeaderStyle-Width="150px" AllowFiltering ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="AnimalNo" HeaderText="رقم الحيوان" HeaderButtonType="TextButton"
DataField="AnimalNo" UniqueName="AnimalNo" ReadOnly="true" HeaderStyle-Width="150px" AllowFiltering ="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="curr_wight" HeaderStyle-Width="150px" HeaderText=" الوزن الحالي"
UniqueName="curr_wight" ReadOnly="true" AllowFiltering ="true">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowKeyboardNavigation="true" >
<Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>
</telerik:RadGrid>
I made a sliding panal as your example but with a little deferent that the panel in (OCX) user Control , it work fine but the problem is that it start in an open position , i want it to start closed and be opened when i click the button . my code is :
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<%-- <script src="scripts.js" type="text/javascript"></script>--%>
<%-- /**/--%>
<script type="text/javascript">
Sys.Application.add_load(function() {
demo.rightPanel = $get('<%=RadPanelBar2.ClientID %>');
<%-- demo.rightButton = $get('<%=rightbutton.ClientID %>');--%>
demo.rightButton = document.getElementById("rightbutton");
<%-- demo.rightButton = $find("<%=rightbutton.ClientID %>");--%>
demo.initialize();
});
</script>
</telerik:RadScriptBlock>
<div class="right-pane">
<input type="image" id="rightbutton" class="button" src="../images/ElmosamenIcon.png" />
<%-- <telerik:RadButton RenderMode="Lightweight" ID="rightbutton" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox"
Width="53px" Height="53px" AutoPostBack="false" ForeColor="Black" Checked="true" >
<ToggleStates>
<telerik:RadButtonToggleState ImageUrl="../images/ElmosamenIcon.png" HoveredImageUrl="../images/ElmosamenIcon.png"
Text="Play" Selected="true"></telerik:RadButtonToggleState>
<telerik:RadButtonToggleState ImageUrl="../images/ElmosamenIconclosed.png" HoveredImageUrl="../images/ElmosamenIconclosed.png"
Text="Pause"></telerik:RadButtonToggleState>
</ToggleStates>
</telerik:RadButton>--%>
<div class="sliding-pane">
<telerik:RadPanelBar RenderMode="Lightweight" ID="RadPanelBar2" runat="server" Width="200px" skin="BlackMetroTouch" Height="605px" ExpandMode="FullExpandedItem"
DataSourceID="SqlDataSource1" DataFieldID="id" DataFieldParentID="ParentId" DataTextField="Text" DataNavigateUrlField="HyperLink" ViewStateMode="Enabled">
<DataBindings>
<telerik:RadPanelItemBinding Depth="0" ImageUrl="ImageURL" Expanded="true" />
</DataBindings>
</telerik:RadPanelBar>
</div>
</div>
with a java script code as
(function () {
var demo = window.demo = window.demo || {};
demo.initialize = function () {
var rightPanel = demo.rightPanel;
var rightButton = demo.rightButton;
if (rightPanel) {
SetUpAnimation(rightButton, Telerik.Web.UI.jSlideDirection.left, rightPanel);
}
}
window.SetUpAnimation = function (button, direction, element) {
element.style.position = "relative";
var expanded = true;
var expandAnimation = new Telerik.Web.UI.AnimationSettings({});
var collapseAnimation = new Telerik.Web.UI.AnimationSettings({});
var slide = new Telerik.Web.UI.jSlide(element, expandAnimation, collapseAnimation, false);
slide.initialize();
slide.set_direction(direction);
button.onclick = function () {
element.parentNode.style.visibility = "visible";
element.parentNode.style.display = "block";
if (!expanded) {
slide.expand();
}
else {
slide.collapse();
}
expanded = !expanded;
return false;
}
};
}())
I also try to use a Rad button with type ToggleButton to change the button image when i click the button , it work well but the problem it is appear in the left side of the sliding panel