Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
47 views
Hi Telerik Support,

I am trying to Bind RadGrid TextBox to a RadToolTipManager's targetcontrols collection as per the demo in the Grid's ItemDataBound handler.  I also want the Grid to default to edit mode as per the other demo in the Grid's pre-render event.  The problem that I am having is that the DataBind/Rebind which is necessary to put the Grid into edit mode is calling the Databound event - its a bit chicken and egg - is there anyway around this?  also could you give me a pointer to activating the tooltip on entering and leaving the textbox using the tab-key ie onkeydown.

Kind regards,

Ashley
Iana Tsolova
Telerik team
 answered on 14 May 2010
3 answers
161 views

The problem is that we can’t set the Page Size greater than the Items Count.

We want to be able to set the page size 10 even if there is 4 items in the source list.

 

Steps to reproduce: bind to the grid the source with 4 items, try to enter 10 to the Page Size texbox, press Change button.

Actual result: the value of the textbox is turned back to previous value.

Expected result: the page size is changed to 10

 

The aspx code :

 

<telerik:RadGrid ID="dgdTransList" runat="server" AutoGenerateColumns="True"

    GridLines="None" EnableAJAX="true" PageSize="5" ShowFooter="true"

    AllowPaging="true" 

> 

  

    <PagerStyle

        Visible="true"

        Mode="NextPrevNumericAndAdvanced"

        AlwaysVisible="true"

       

        />

       

</telerik:RadGrid>

 

The cs code :

 

        void dgdTransList_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

        {

 

            ArrayList list = new ArrayList(new object[] { "one", "two", "three", "four" });

 

            dgdTransList.DataSource = list;

        }

 

Can you please tell us is there any workaround?

Pavlina
Telerik team
 answered on 14 May 2010
2 answers
121 views
I have a panel bar which is divided into sections.  Within each subsection there are RadPanelItems that are links to other pages.  One of the things I do is to put a number such as (59) next to the item text to indicate how many items will be listed when the user clicks on the link. 

With the aid of RadAjaxManager I am updating the links via an Ajax call when the section is expanded. i.e.I am hooking into the ItemOnclick event and updating the links in the expanded section.  However, an Ajax postback occurs when I contract the section as well - it is this postback that I want to avoid. 

Any suggestions on how to do this?

Thanks.
Sphengle
Top achievements
Rank 1
 answered on 14 May 2010
2 answers
140 views
Hi,
i have a gridattachmentcolumn, when i set the imageurl at runtime i can't see the image
post some code:

     <telerik:GridAttachmentColumn UniqueName ="colTPdf" FileNameTextField="ORT.OTCLIE" AttachmentKeyFields="ORT.OTNUOR" Text="Scarica ordine" ImageUrl="~/images/icoGear.png" > 
            </telerik:GridAttachmentColumn> 

thank you
Matteo Beretta
Top achievements
Rank 1
 answered on 14 May 2010
12 answers
162 views
Hi! RadWindow is a great component. However, the skins look terribly outdated nowadays. Does Telerik have any plans to add more trendy styles? E.g. border shadows, a close button stretching beyond the main window area, etc? And: Why can't we get the simple (and great) style of a Tooltip into a RadWindow.
Thanks, Stephan

PS: We use tooltips and modal dialogs heavily and in many cases either one can do the same stuff. These two components should simply be merged together. My opinion.



sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 14 May 2010
1 answer
67 views
I'm adding a treenode like this;

    function AddNode(parentNode) { 
      var tree = $find("<%= tvCategory.ClientID %>"); 
      tree.trackChanges(); 
      var node = new Telerik.Web.UI.RadTreeNode(); 
 
      node.set_text("New Node"); 
      node.set_imageUrl("<%= NodeImageURL %>"); 
 
      if (parentNode == null) { 
        tree.get_nodes().add(node); 
      } 
      else { 
        parentNode.get_nodes().add(node); 
        parentNode.expand(); 
      } 
 
      tree.commitChanges(); 
 
      node.BeginEdit(); 
    } 

I'd like to be able to initiate the editing of the newly added node in order for the user to easily change the node text; "New Node"

Is it possible, can you provide the js code?
Gordon
Top achievements
Rank 1
 answered on 14 May 2010
6 answers
381 views
I am trying to associate a label with radcombobox like in this example.
http://www.telerik.com/help/aspnet-ajax/combo-associate-label.html

it's working but when i change the selected item it doesn't change in the radcombobx, the first item is always shown as the selected.
i tried this example also in an empty project and it doesn't work.


<asp:Label ID="Label1" runat="server"
   
Text="Select a country"
   
AssociatedControlID="RadComboBox1_Input">
</
asp:Label>
<
input type="hidden" id="RadComboBox1_Input"
   
runat="server"
   
style="display:none" />
<telerik:RadComboBox ID="RadComboBox1" runat="server">
   
<Items>
       
<telerik:RadComboBoxItem Text="USA" />
       
<telerik:RadComboBoxItem Text="Germany" />
       
<telerik:RadComboBoxItem Text="Canada" />
   
</Items>
</
telerik:RadComboBox>

The problem i think is the <input /> field

Thank you.
Simon
Telerik team
 answered on 14 May 2010
1 answer
132 views
Hi I have a hierarchy grid of 3 level depth. All the three details table consists of Date time column. I want set the sort expression of Date Time in descending order by default. If i set like below column is not getting sorted in descending order.

Dim

 

 

sortExpr As New GridSortExpression

 

sortExpr.FieldName =

 

PresentationConstants.DATE_LBL

 

sortExpr.SortOrder =

 

GridSortOrder.Descending

 

radgrdPatChronology.MasterTableView.DetailTables(0).SortExpressions.AddSortExpression(sortExpr)

In Design for Date Time column i have set the DatetimeFormat property.
DataFormatString="{0:MM/dd/yyyy}"

Where am I going wrong?
Please help me in sorting the Date Time column in hierarchy grid.

 

Pavlina
Telerik team
 answered on 14 May 2010
1 answer
117 views
hi,

 can u Please me for DeleteAll in Hierarchical Grid when its in Linq based Automatic operation ( add,edit,delete ) ..

this is the error  I face..

Could not find a row that matches the given keys in the original values stored in ViewState.  Ensure that the 'keys' dictionary contains unique key values that correspond to a row returned from the previous Select operation.


below is my code for your Reference ..

  <script type="text/javascript">
         function RowContextMenu(sender, eventArgs) {
             var menu = $find("<%=RadMenu1.ClientID %>");
             menu.show(eventArgs.get_domEvent());

             document.getElementById("radGridClickedRowIndex").value = eventArgs.get_itemIndexHierarchical();
             var ownerTable = eventArgs.get_tableView();

             document.getElementById("radGridClickedTableId").value = ownerTable._data.UniqueID;
         }
                </script>     


  ------------------------------------------------------------------------------------------------------------------------

   int radGridClickedRowIndex;
        string UId;

        string[] indices = Request.Form["radGridClickedRowIndex"].Split('_');
        radGridClickedRowIndex = Convert.ToInt32(indices[indices.Length - 1]);
        UId = Request.Form["radGridClickedTableId"]; 


if (Convert.ToInt32(RadGrid2.SelectedItems.Count) > 1)
                {
                     
                    tableView = this.Page.FindControl(UId) as GridTableView;

                    foreach (GridDataItem item in tableView.GetSelectedItems())
                    {
                    (tableView as GridTableView as GridTableView).PerformDelete(item,true);

                    }

                    RadGrid2.MasterTableView.Rebind();

                }
Pavlina
Telerik team
 answered on 14 May 2010
2 answers
73 views
Is there any telerik control able to do some clientside JSON binding under asp.net 4.0?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 14 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?