Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views
I want to make Organization Chart  with asp.net that Gets It's Data from sql database
is there any Telerik control can do this
thanks
michel
Top achievements
Rank 1
 answered on 16 Sep 2011
1 answer
402 views
I have a RadGrid with multiple select enabled:

<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false" AllowMultiRowSelection="true">
    <MasterTableView TableLayout="Fixed">
        <Columns>
            <telerik:GridBoundColumn DataField="Dialog" HeaderText="Dialog" DataType="System.String" />
        </Columns>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowSelected="RowSelected"/>
    </ClientSettings>
</telerik:RadGrid>

And the OnRowSelected event triggers for each row selected. When selecting 10 rows, the event gets fired 10 times. Simple enough.

My question is what event can I listen to to know when all the rows that are going to be selected are selected (as a result of the multiple selection)? I need to make a post request with the ids of the selected rows and I don't think it's a good idea to let 10 post request be made. I can query the grid to get the selected rows, I just need to know when to do it; ideally something that doesn't involve timeouts. There must an event for this that I'm overlooking.

Levi
Top achievements
Rank 1
 answered on 16 Sep 2011
2 answers
146 views
Hi,

I've looked thru the forums, and can't seem to find an answer to my question so here goes:

I have a Spell Check button on my web page, but my clients are complaining that the fonts are too small.  How is the easiest way to enlarge the fonts for the spell check find and replace dialog box?  Below is the code I use to implement:


In the vb.net we set the fields to check spelling...
        Dim aar As Array = Split(ss, ",")
        RadSpellCheck.ControlsToCheck = aar


In the asp.net
 <script type="text/javascript">
   function OnClientLoadx(spell)
   {
      spell.set_useClassicDialogs(true);
   }   
</script>   
<telerik:RadSpell ID="RadSpellCheck" runat="server" AllowAddCustom="False" OnClientLoad="OnClientLoadx"/>

Thanks in advance for your assistance on this!!
ChuckRock
Top achievements
Rank 1
 answered on 16 Sep 2011
6 answers
248 views
Hello,

How
do I set the column order in C #. Net by code
so:

Column1
, column2, column3
to
Column2, column1, column3
Stefan
Telerik team
 answered on 16 Sep 2011
3 answers
89 views
I would like for our users to be able to click on the text of the node and cause the box to be checked.  Is this possible?  If not, is there a way to prevent the selected node from changing colors to avoid a scenario where users believe they have 'checked' the node?

Thanks!
Plamen
Telerik team
 answered on 16 Sep 2011
1 answer
158 views
Hi Guys,

I have a RadGrid and I need to place a hyperlink in the ItemTemplate. If I hard code the NavigateURL to "Supplier.aspx?ID=1079" everything works well. However, I want to replace the "1079" with the supplier id for this particular record and I just can not get the syntax correct. How do I get Eval("suplid") into the NavigateURL?

<asp:HyperLink ID="HyperLink11" runat="server" NavigateUrl='Supplier.aspx?Supplier=1079'><%# Eval("suplnm")%></asp:HyperLink>

William
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Sep 2011
3 answers
104 views
Hi all :)


I have a grid that contain date, time, user ID and other columns 

I don't want to update date, time, ID manually, can I make the system using some code inter the system date and time ?

and take the ID from a session ?

please help me with this 



thank you all :)
Hamza
Top achievements
Rank 1
 answered on 16 Sep 2011
2 answers
600 views
Hi all,

I'm trying to set both the background color and image of a TreeView node by binding to fields that are returned in my datasource.

In the sample code beneath, the CssClass is correctly bound and my background color is set as required. However, the treenode image is NOT correctly displayed.

<telerik:RadTreeView ID="RadTreeView3" runat="server" DataSourceID="dsTreeSQL" DataFieldID="UniqueId"
    DataFieldParentID="parentid" DataTextField="NodeText" >
    <ContextMenus>
    </ContextMenus>                   
    <DataBindings>                       
        <telerik:RadTreeNodeBinding CssClassField="CssClass" />
        <telerik:RadTreeNodeBinding ImageUrlField="ImageURL" />
    </DataBindings>
</telerik:RadTreeView>

If I reverse the data bindings so that they look like this, the treenode image is correctly applied but the CSS class is not applied.

<DataBindings>                       
    <telerik:RadTreeNodeBinding ImageUrlField="ImageURL" />
    <telerik:RadTreeNodeBinding CssClassField="CssClass" />
</DataBindings>

Is there anything that I can do to apply both a treenode image and CSS class?

The important thing for me is to be able to apply a treenode *background color* and image so any suggestions of how to work around this (perhaps by not using a CSS class) would be appreciated.

Many thanks,
Tim
Tim
Top achievements
Rank 1
 answered on 16 Sep 2011
7 answers
213 views
Hello,

When user right click on RadTree node this node is highlighted.
When then user move mouse pointer to context menu the node is not highlighted.
After clicking to any context menu option there is no selected node.
In a code there still possible to find which one node triggered event and work with it.
Here is solution to fix lost node:
ASP.NET:
<telerik:RadTreeView OnContextMenuItemClick="nodeContextServerItemClicked"
 ID="treeView1" Runat="server" ></telerik:RadTreeView>
C#:
protected void nodeContextServerItemClicked(object sender, Telerik.Web.UI.RadTreeViewContextMenuEventArgs e)
{
 if(treeView1.SelectedNodes.Count < 1) e.Node.Selected = true;
}

It needs to check if the number of selected nodes less than 1 because if user selected at least one node then need really lose right clicked node.
This looks like a bug that need to be fixed from Telerik.

Sincerelly,
Ildar Sadykov
Plamen
Telerik team
 answered on 16 Sep 2011
1 answer
232 views
That's right, an ASP.NET Ajax control in MVC. I know I know, there are Telerik MVC controls but the Telerik MVC grid doesn't have everything I need so I'm dead set on using the ASP.NET Ajax control.

Anyways, I have the RadGrid up and running great. The problem occurs when I enable all the bells and whistles such as paging, sorting, filtering etc. It looks like it puts the group by/filter/sort data in an eventargument post variable:

__EVENTARGUMENT  FireCommand:2$RadGrid1$ctl00;GroupByColumn;Dialog

In my case, when the page reloads, nothing changes. Is there something I should enable for this to work in MVC? I have followed the instructions at http://www.telerik.com/help/aspnet-ajax/mvc-getting-started.html but this doesn't come up. The example in the previous url doesn't have all the bells and whistles, so I'm assuming there are additional steps I need to take to get this to work.

Thanks!
Levi
Top achievements
Rank 1
 answered on 16 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?