I am using RadGrid (2018.3.910.40) with the EnableHeaderContextMenu="true" to allow user to show/hide any columns of the grid. Due to the number of columns being displayed in the grid vertical scrolling is needed. On first load the grid displays 5 columns, if I right-click on any of these columns I can select the option "Select Columns" and a list of all the columns appear and each one is checked. Now if I scroll to display the next 5 columns and right-click to select columns, the columns 2-4 are shown but are not checked anymore. if I scroll again to display the next five, then columns 2-10 are no longer checked and this continue. If I scroll to show the previous columns then those columns are shown as checked. This happens on all browsers.
Any ideas?
Is it possible to drag lines similar to following example?
https://bl.ocks.org/denisemauldin/538bfab8378ac9c3a32187b4d7aed2c2
Thank you
Hello,
I'm trying to use ImageEditor in one of our projects.
I would need to draw a line (or rectangle) over an existing image but without the mouse. The user will have to specify the coordinates in an input box and then a line is drawn.
So far, I've been able from client side to change the tool to pencil : radImageEditor1.editImageOnServer("Pencil", commandText, customArgument, callbackFunction);
But I can't found a way to draw from the client code.
Could you please tell me if this is possible or drawing is only allowed by using the mouse?
Regards,
Sabine
I have a wizard that will step users through an application and we allow users to leave the application process and return later. We obviously don't want them to lose any progress they made previously so we store the data in the database. What I am looking to do is if data exists for step 1, load it, Save data on clicking "Next", then load step 2 (if data exists), save on "Next", etc.. through the process. I have the code to save the data but not sure of what RadWizard Function I should be referencing to load current step data. Here is what I have for when they click "Next"
Private
Sub
RadWizard1_ActiveStepChanged(sender
As
Object
, e
As
EventArgs)
Handles
RadWizard1.ActiveStepChanged
Dim
activeStepIndex
As
Integer
= TryCast(sender, RadWizard).ActiveStep.Index
If
activeStepIndex = 1
Then
SaveStep1()
ElseIf
activeStepIndex = 2
Then
SaveStep2()
ElseIf
activeStepIndex = 3
Then
'UploadFiles()
End
If
End
Sub
I have an autoCompleteBox fed with values from an XML file that I want to display all possible options when a user clicks into it (i.e. without them typing any letters in there)
<
telerik:RadAutoCompleteBox
RenderMode
=
"Lightweight"
ID
=
"racbUserAccessList"
runat
=
"server"
Width
=
"300"
DropDownHeight
=
"150"
EmptyMessage
=
"Select User Access"
DataTextField
=
"Text"
DataSourceID
=
"XmlDataSource1"
AllowCustomEntry
=
"False"
>
</
telerik:RadAutoCompleteBox
>
<
asp:XmlDataSource
runat
=
"server"
ID
=
"XmlDataSource1"
DataFile
=
"accessList.xml"
></
asp:XmlDataSource
>
How to do that?
First page load: | |
Page.Load | |
Grid_Instance.NeedDataSource | |
Foreach Item in Grid_Instance: | |
ItemCreated | |
ItemDataBound | |
Page.PreRender |
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
alert("1");
var masterTable = $find('<%=rdgrd_Rassegna.ClientID%>').get_masterTableView();
alert("2");
</
script
>
</
telerik:RadScriptBlock
>
I am using a RadGrid and have some controls in columns. A DropDownList is in ItemTemplate (see code below). For example, when the grid was first bind with a dataset, "HI" was selected. I changed the selection to "AZ" and click another control in another column to call the Javascript function "showCityList" (see code below). Then I use Google F12 to step into the function. I have two questions.
1. I can see the var cell that has all states in the dropdownlist and "HI" is selected. <option selected="selected" value="HI">HI</option>. I changed the selection to "AZ". Why the initial state was still be selected?
2. How do I get the selected state? Please provide the syntax.
I CANNOT use OnSelectedIndexChanged and it is a long story to explain.
<telerik:GridTemplateColumn HeaderText=" State" SortExpression="State_Code" UniqueName="State_Code">
<ItemTemplate>
<asp:DropDownList ID="cboState" Width="105px" CssClass="State_Code" runat="server" ></asp:DropDownList>
</ItemTemplate>
</telerik:GridTemplateColumn>
function showCityList() {
var row = Telerik.Web.UI.Grid.GetFirstParentByTagName(button, "tr");
var rowIndex = row.id.split("__")[1];
debugger;
var MasterTable = $find("<%=gridSites.ClientID%>").get_masterTableView();
var selectedRows = MasterTable.get_dataItems();
if (selectedRows != null)
{
var row = selectedRows[rowIndex];
var cell = MasterTable.getCellByColumnUniqueName(row, "State_Code")
}
return false;
}
Thanks.