Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
165 views
I have a scenario where I want to select a "State" from listbox A and have it dynamically update listbox B with related "Counties".  My datasource would be SQL Server tables.  What would be the most efficient way to program this using Ajax?
Stephen
Top achievements
Rank 1
 answered on 20 Aug 2009
5 answers
746 views
Is there something like a full-screen mode for the grid?

the editor has a fullscreen-mode!

Or is there a way to achieve this?
Dimo
Telerik team
 answered on 20 Aug 2009
3 answers
172 views
I have a RadGrid and one of my columns is Resource, which is a GridTemplateColumn which holds a RadComboBox utilizing LoadOnDemand.  I can get it to partially work.  If I insert a new record, the LoadOnDemand works fine and it saves the value of the ComboBox in my DB.  However, if I then Edit that line, I always get 'Selection out of Range.'  I'm guessing that this is because the ComboBox has no values in it yet.  So, in my ItemDataBound event, I add a new ComboBoxItem containing the Text and Values of the selected Resource.  My problem is that I get the error before it hits this event.  What am I missing?

Here's my ComboBox code:

<

 

telerik:GridTemplateColumn UniqueName="Resource" HeaderText="Resource" DataField="Name">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblResourceName" runat="server" Text='<%# Eval("ResourceName")%>' ></asp:Label>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="Resource" AllowCustomText="true" runat="server" Text='<%# Bind("Resource") %>'

 

 

Height="100px" EmptyMessage="Search..." SelectedValue='<%# Bind("Resource") %>'

 

 

EnableVirtualScrolling="true" DataTextField="Name" DataValueField="Resource"

 

 

EnableLoadOnDemand="true" OnItemsRequested="Resource_ItemsRequested" AppendDataBoundItems="true"

 

 

>

 

 

</telerik:RadComboBox>

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

And here's my ItemDataBound event:

 

If

 

(TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then

 

 

'Populates the Resource DDL with the selected Resource

 

 

 

 

 

Dim ResourceDDL As RadComboBox = CType(GridItem("Resource").FindControl("Resource"), RadComboBox)

 

 

Dim objBNF As New PBBRL.EntityClass.xBudgetNodeFees

 

objBNF.FetchUsingPK(BudgetNodeFeesID)

 

Dim ResourceID As String = objBNF.Resource

 

 

Dim ResourceItem As New RadComboBoxItem

 

ResourceItem.Text = ResourceID

ResourceItem.Value = ResourceID

ResourceItem.Selected =

True

 

 

 

 

ResourceDDL.Items.Add(ResourceItem)
End If

TPerry
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
92 views
I have noticed a bug or atleast an extended need on the cklient side script
          
 function toggleSelectedNode()  
        {  
           var treeView = $find("<%=RadTreeView1.ClientID%>")  
           var selectedNode = treeView.get_selectedNode();  
           selectedNode.toggle();  
             
        } 

If you try the page http://localhost:8301/radcontrols_aspnetajax/treeview/examples/programming/clientsideapi/defaultcs.aspx
and click on the Search Folders icon to open that item. select the large mail and then click on the icon to close the Searchfolder item.
Then click on the button "Toggle selected node" the Search folder don't get toggled...

It would be great with an extended version like toogleSelectedodeWithParents or something.
Anybody that knows a script that does the trick? ;)
Schlurk
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
75 views
Hi,

I am using NextPrevNumericAndAdvanceed pager mode and when pagesize is set equal to total number of records then Paging gets disabled. How can i keep this visible always?

Regards
Devanand Jha
Daniel
Telerik team
 answered on 20 Aug 2009
1 answer
57 views

Hi,

 I'm using mossradeditor control in sharepoint list.Text in that column in edit mode is looking fine. But in  item display mode,space between paragraphs are differ with actual space.

Help me..
Stanimir
Telerik team
 answered on 20 Aug 2009
3 answers
590 views
Hello!

I am unsure of when to use each of these (and what their individual benefits are).

I have tried reading through documentation, but I still don't get it.

Any help?

Thanks in advance.
Mira
Telerik team
 answered on 20 Aug 2009
2 answers
118 views
Hello,
Is there a way to update an SqlDataSource automatically when editing another row?
I am looking in a very specific way of handling a grid update and giving users the opportunity to double-click on a row to edit a cell and when double-clicking on another row, updating the SqlDataSource with the actual value of the cell (without having to click on the "update" button anymore)...
Is there a setting on the grid control to enable this behavior?
regards,
David
David
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
92 views
hello,

we use the RadGrid from RadControls for ASP.NET AJAX Q2 2009.
In our Application we have the following Scenario:

Several UserControls (ASCX) encapsulate one or more RadGrids, partially with hierachy and/or NestedViewTemplate.
We have several ASP.NET-Pages, which are dynamically generated:
the UserControls are added to the Page and the RadGrids are filled with Data.

The requirement is to export the "content" of the UserControls (the RadGrid(s)) to one PDF-File from a button (or something like that)
inside the ASP.NET-Page.
Our first idea:
Is it possible to add the UserControls with the RadGrids to an additional RadGrid (maybe in a NestedViewTemplate?), and then
exporting that RadGrid?

We have tried out the following solution:
http://www.telerik.com/community/forums/aspnet-ajax/grid/export-multiple-grids-to-same-excel-file.aspx
But that does not work for us, because we need to add UserControls with encapsulated RadGrids and there is no way for us to do that in a declarative way.

Kind regards
Iana Tsolova
Telerik team
 answered on 20 Aug 2009
2 answers
201 views
Hi All,

I am facing some issues:

1) I have a databound combobox which gets data from sql source from codebehind file. The combobox fills fine, but when Im trying to select an item, the items gets marked, but the box doesnt close. I have a masterpage with RadScriptManager and RadAjaxManager.

Thats how the combobox part of the aspx file looks like

<telerik:RadComboBox ID="rcbPLZ" Runat="server"
                AppendDataBoundItems="True" EnableLoadOnDemand="True"
                onclientselectedindexchanged="OnClientSelectedIndexChanged"
                onclientselectedindexchanging="LoadOrt"
                onitemsrequested="rcbPLZ_ItemsRequested" AllowCustomText="True"
                ShowDropDownOnTextboxClick="False">
  </telerik:RadComboBox>

the javascript function is

function  OnClientSelectedIndexChanged(combo, eventArgs)
{  
     // alert("OnClientSelectedIndexChanged");
      OrtCombo.set_text("");
      var PLZstring = combo.get_text();
      combo.set_text(PLZstring.substring(0,5));
      OrtCombo.set_text(PLZstring.substring(6,PLZstring.length-1)); //
      LoadStrasse(combo, eventArgs);
}


Also, and that the second issue, at onload I want to set certain strings for two comboboxes and it has worked, but it is not and Im not sure what I did wrong:

<script language="javascript" type="text/javascript" >
    
var PLZCombo;
var OrtCombo;
var StrassenCombo;

function onload()
{  
   PLZCombo =$find("<%= rcbPLZ.ClientID %>");
   OrtCombo =$find("<%= rcbOrt.ClientID %>");
   StrassenCombo =$find("<%= rcbStrasse.ClientID %>");
   StrassenCombo.set_text("a");
   PLZCombo.set_text("b");
}

Maybe Im putting the javascript into the wrong place, I just put it below a table...

Any hints are very much appreciated..

Best wishes

iandi
Andreas
Top achievements
Rank 1
 answered on 20 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?