Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
Hi, 
My objective is to create a radgrid based on some parameters. 
I am creating the radgrid on page init().
Now the problem for me is to access the values of the controls(say a value of radio button) on the page after a button click in the page_init().

Please help me in this regard.

Thanks in advance.

Regards,
Vijay
Maria Ilieva
Telerik team
 answered on 26 May 2011
1 answer
145 views
Hi, 

I need to apply generic aggregate functions like sum, min, max or average on ChartSeries. 

The Chart data binding is done by assign series, columns and datasource:

Dim vChartSeries = New ChartSeries("Series 1", ChartSeriesType.Bar)
vChartSeries.YAxisType = ChartYAxisType.Primary
Dim vChartSeries2 = New ChartSeries("Series 2", ChartSeriesType.Bar)
vChartSeries2.YAxisType = ChartYAxisType.Secondary
RadChart2.AddChartSeries(vChartSeries)
RadChart2.AddChartSeries(vChartSeries2)
RadChart2.PlotArea.XAxis.AxisLabel.TextBlock.Text =
"AAA"
RadChart2.PlotArea.YAxis.AxisLabel.TextBlock.Text "BBB"
RadChart2.Series(0).DataYColumn = "value_column_left"
RadChart2.Series(1).DataYColumn = "value_column_right"
RadChart2.PlotArea.XAxis.DataLabelsColumn = "groupby_column"
RadChart2.DataSource = getDataSource()
RadChart2.DataBind()



How can I apply such aggregate functions? Or can it be done during DataBinding, ItemDataBound or DataBound events "by hand"?

Many thanks for some help,
Andreas
Evgenia
Telerik team
 answered on 26 May 2011
2 answers
149 views

Hi I have a radlistview that gets random items from the database, each item has two buttons inside add to wishlist, add to cart.
I wanna do a clientside event to a javascript that triggers an event in codebehind without
reloading the webpage. Each button has two arguments that needs to be posted
back to a code behind event.

I cant use ajaxpanel for the radlistview considering it's getting random items, it wont work because the id value of the index wont be the same after postback. didnt even work when I put the buttons directly inside a radajaxpanel.

What I would like to know what is the best way in with RadControls to do this with javascript AJAX event...

A working sample would be appreciated because I have searched all over the web and in teleriks vast resources but havent been
able to find something that works nor figure it out on my own. this will also trigger a external
ajaxpanel to reload and show the result of the button clicked but thats an easy fix when the rest is solved.

Thanks,

Maria Ilieva
Telerik team
 answered on 26 May 2011
1 answer
274 views
I have an odd question.  I have a radgird that I allow edit and insert here is a sample of a column

<telerik:GridTemplateColumn HeaderText="Description" SortExpression="Description" UniqueName="Description"  >                                                       
      <ItemTemplate>                                                        
               <asp:Label runat="server" ID="lbDescription" Text='<%# Eval("Description")%>'></asp:Label>
      </ItemTemplate>
      <EditItemTemplate>                                                        
              <telerik:RadTextBox ID="tbDescription" Width="300px" TextMode="MultiLine" Text='<%# Eval("Description")%>'
                        runat="server" />
      </EditItemTemplate>
</telerik:GridTemplateColumn>
  The problem is the label "Description:" is aligned vertical center on the RadTextBox.  Is there a way to align it Vertical Top?
Vasil
Telerik team
 answered on 26 May 2011
5 answers
107 views
I have to create a grid like this. Its like loading double grid.
The customer data was loaded in a general grid and the aging details should load inside the main grid as shown in the Gird.
$uren
Top achievements
Rank 1
 answered on 26 May 2011
2 answers
200 views
Hi.
How can i remove edit button for a detailtable with in place mode in a hierarchical grid?
I have found a solution for a grid as follows:

   if (e.Item.OwnerTableView.IsItemInserted && e.Item is GridDataInsertItem)
            {
                radGrid.MasterTableView.GetColumn(columnName).Visible = true;
                foreach (GridDataItem dataItem in radGrid.MasterTableView.Items)
                {
                    (dataItem[columnName].Controls[0]).Visible = false;
                }
            }
            else
                radGrid.MasterTableView.GetColumn(columnName).Visible = false;

but can't find out who to hide the edit button for the detailtable when i have a hierarchical grid with on detail table. Anyone?
Cecilie Nordbø
Top achievements
Rank 1
 answered on 26 May 2011
1 answer
67 views
Hi team,
usually the client select column select all the checkboxes in the grid , but what i want is when i click the checkbox in the header of the gird
i want to check only the checkboxes that are enabled in the grids.Please provide the code snippet to acheive this.
Princy
Top achievements
Rank 2
 answered on 26 May 2011
4 answers
413 views
I want to use a window as a means of collecting data, validating when the user presses OK then if all is OK, return to the parent form and save to the database.

Your "Returning Values from a Dialog " sample doesn't actually return to the code behind part, but updates the form using a java script.

I'm not very familiar with scripts and would prefer to do the work in the code behind part of the form.

How can I do this?

Thanks
Jeremy
Marin Bratanov
Telerik team
 answered on 26 May 2011
8 answers
145 views
Hi.

I'm using a RadGrid object and I want to find an item by its keys values.

The dictionary is a Hashtable that is filled with a foreach iteration.

Hashtable d = new Hasthable();
for (int i = 0; i < partK.Length; i++)
{
    d.Add(partK[i], partV[i]);
}
GridDataItem[] gdis = listGrid.MasterTableView.FindItemsByKeyValues(d);

I'm using the following example. Dictionary d is filled with the following values:

-       d   Count = 2   System.Collections.Hashtable
+       ["MVFCodCIA"]   "035"   
+       ["MVFRefXRisk"]   "70000598"   

At the listGrid, if I make the following question at the inspection window I have this:

listGrid.Items[7].KeyValues   "{MVFCodCIA:\"035\",MVFRefXRisk:\"70000598\"}"   string

So the item exists.

When I debug the code, gdis.Length is 0, so the FindItemsByKeyValues doesn't find me the item I'm searching.

Am I doing something wrong?

Thanks.
Jesús
Top achievements
Rank 1
 answered on 26 May 2011
5 answers
300 views
Hello,

Is there a feasible way of determining what the new value will be of an input control inside of a OnKeyPress client-side handler?

- I've seen a lot of postings here showing sender.get_value() + args.get_keyCharacter() - but of course that assumes that the user is typing straight through and the cursor is at the end of the control. Not always the case! ;)
- The reason I'm looking to do this is to implement regex validation in real time (keydown or OnKeyPress), before the control loses focus. OnValueChanged and OnValueChanging occur on blur. (ASP.NET validation on post-back is clumsy and not appropriate for the circumstances we need this).

Ideally, though, Telerik could release a RegEx version of RadTextBox!

Thanks,

- Mike
Tsvetina
Telerik team
 answered on 26 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?