Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views

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].

Konstantin Dikov
Telerik team
 answered on 26 May 2015
1 answer
94 views

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.

Ivan Danchev
Telerik team
 answered on 26 May 2015
1 answer
97 views

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

Viktor Tachev
Telerik team
 answered on 26 May 2015
3 answers
154 views

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

Maria Ilieva
Telerik team
 answered on 26 May 2015
3 answers
2.7K+ views
I have figured out the long way to get the Dropdown Selected value of the combobox, but is there a shorter way than all this code

So my current method is as follows
var SoldCounty = $find('<%= ddlSoldCounty.ClientID %>');
var sCounty = SoldCounty.get_value();
           
Then i can do something with the value.

However why does this not work

var SoldCounty = $find('<%= ddlSoldCounty.ClientID %>').get_value();
 
Or this
 
var SoldCounty = $find('<%= ddlSoldCounty.ClientID %>').get_SelectedValue();























Aneliya Petkova
Telerik team
 answered on 26 May 2015
1 answer
224 views

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

Nencho
Telerik team
 answered on 26 May 2015
1 answer
39 views
How do I disable the animations for RadFilter? I want the menus to open and close with no animation. I tried ContextMenu-ExpandDelay="0" ContextMenu-CollapseDelay="0" but they had no effect.
Angel Petrov
Telerik team
 answered on 26 May 2015
2 answers
94 views

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

 

Danail Vasilev
Telerik team
 answered on 26 May 2015
1 answer
59 views

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>

Danail Vasilev
Telerik team
 answered on 26 May 2015
8 answers
239 views

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.

Ivan Danchev
Telerik team
 answered on 26 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?