Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
152 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
278 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
112 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
204 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
71 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
430 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
151 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
307 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
3 answers
99 views
hey everyone,

How can i bind the radgrid using Wcf workflow service application.I have a seperate project where i've created wcf service using workflow,
but m not able to get the data from my service to the UI.

Thanks
Amit
Genti
Telerik team
 answered on 26 May 2011
1 answer
37 views
I am getting the 'htmlfile:Unexpected call to method or property access'  error while I select a Treeview node and click on a button on the second attempt. i.e first I select a node and click on the button which opens a Radwindow pop up and then when I close the Radwindow , I make a Ajax request on the parent page to refrsh the Treeview control. Once that is done , when I select some other node and click on the button (to update the information opening a Radwindow) , I get the above error mentioned. I read in several of your threads that It is related to IE 8 and the latest version of RadControls for ASP.NET AJAX resolves this issue. But I have the latest 2011 1Q SP2 version, but still it's not resolved.

Thanks
Madhu
Kate
Telerik team
 answered on 26 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?