Hi,
If you have a radgrid with a button column that fires a command when pressed like so:
<telerik:GridButtonColumn UniqueName="btnCol" HeaderText="Script" CommandName="BtnPressed" Text="Show">
</telerik:GridButtonColumn>
Then in the c# event function for the radgrid:
protected void RadGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "BtnPressed")
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
string cellVal = Convert.ToString(item["cellOne"].Text);
Everything works fine, if you click on row 0, cellVal will equal the value of [row 1, cell 1], if you click row 3, cellVal will equal the value of [row 3, cell 1], etc.
Adding this to the radgrid:
<ClientSettings>
<ClientEvents OnCommand="OnCommand" />
</ClientSettings>
And then this javascript:
function OnCommand(sender, args) {
// Empty function
}
This will completely break the rad grid button column. Now if you click a button on any row in the grid, you will always receive data from the first row in the RadGrid_ItemCommand function. E.g if you click on the button in row 6 you will receive the data from [row 1, cell 1].
Hello,
I am trying to implement related dropdownlist following this demo.
But My dropdownlists are in a RadGrid and I get an error message related to the ControlParameter. It is unable to find the master Dropdownlist. (the ControlId)
Anyone would have a solution to this problem?
Thanks in advance.
Hello Everyone,
I Am new to posting to these forums, but have been using Telerik for a few months now at my job. I've ran into a problem that I need some help with. So I have a rad grid bound to a datasource that is returned in code. A problem is coming up where one submissionID can have different costcenters (hope variables wont be an issue), what I want to do is nest each return record inside the initially returned record. So for submission ID #1 that has 2 costcenters, I want to see the first record that comes back under that submission ID then any other record that has that submission ID be nested inside of that row in the Grid. Any help would be appreciated and Please let me know if any additional information would be useful.
Thanks for your time
Hello Everyone,
I need set "Resize=Vertical" for all RadTextBox on my site. Site is very large and manual fix each control is not good solution ))). I used a MasterPage with ContentPlaceHolder for each pages on my site.
Thanks,
Gray
var SoldCounty = $find('<%= ddlSoldCounty.ClientID %>');
var sCounty = SoldCounty.get_value();
Then i can do something with the value.
var SoldCounty = $find('<%= ddlSoldCounty.ClientID %>').get_value();
Or this
var SoldCounty = $find('<%= ddlSoldCounty.ClientID %>').get_SelectedValue();
i am using two user control . one has radio button and another one has radtreeview.
i want to raise the checked event whenever the radio button selection changed.
Please reply ASAP.. thanks in advance
Swarna
We got this htmlChart with navigator. all seems to be ok on first load. but when the navigator change selection, the values from the when it first load still remains on the plotarea. can't seem to find what's causing this. any help appreciated.
Cheers!
Francis
Hi!
I'm trying to gain insight into why my radial gauge looks fine in IE8 and above, but in IE7 I'm seeing the whole thing flipped upside down and misaligned. Everything I'm using to style the gauge seems very simple. Can anyone help?
<
div
class
=
"gauge-container"
>
<
div
id
=
"needGauge"
></
div
>
</
div
>
<
style
scoped>
#needGauge, #riskGauge {
width: 75%;
height: 65%;
margin: -60px auto;
clear: both;
}
.gauge-container {
width: 100%;
max-width: 220px;
text-align: center;
margin: 0 auto;
}
</
style
>
i am having serious issue.
when a user tries to modify the dates, they have to first modify the End Date so it falls after the Start Datet, otherwise if they try and modify the Start Date, and it is after the current date, a warning message will display and they cannot modify the Start Date until the End Date is modified to be after the Start Date. To work around this a user must enter the End Date first and then they can modify the Start Date. When this is done, after the both the End and Start Dates are entered, the End Date changes to some arbitrary date and the End Date has to be reentered.
please help. how can i fix it.