Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
Is there any way for me to pull data from lower level nodes. LIke I have a root  node populating the parent nodes nd that populates the child nodes.. and so on and so forth. But im making a folder system and if a user added a new folder i have no way without hardcoding it to do what i need it too.. and i dont want to limit the folder numbers.. heres some code to show you waht im attempting. I want to do the foreach loops when the lower level nodes contain nodes.. anyway to do this not hardcoded
foreach (RadTreeNode node in rtvFiles.Nodes)
            {
                foreach (RadTreeNode parentNode in node.Nodes)
                {
                    foreach (RadTreeNode childNode in parentNode.Nodes)
                    {
                        //if (parentNode.Text == "share")
                        //{
 
                        if (childNode.Checked)
                        {
                            FilesCOL file = FilesDAL.SelectByName(childNode.Text, int.Parse(childNode.Attributes["FileID"]));
                            c = file.FilePath;
                            b = childNode.Text;
                            d = file.FileID.ToString();
                        }
                        else
                        { if(childNode.Checkable==false)
                            foreach (RadTreeNode babyNode in childNode.Nodes)
                            {
                                 
                                if (babyNode.Checked)
                                {
                                    FilesCOL file = FilesDAL.SelectByName(babyNode.Text, int.Parse(babyNode.Attributes["FileID"]));
                                    c = file.FilePath;
                                    b = babyNode.Text;
                                    d = file.FileID.ToString();
                                }
}
}
ome code to show you waht im attempting
Bozhidar
Telerik team
 answered on 16 Mar 2012
1 answer
92 views
All

I have created a page that uses a control that will generate radgrids (up to 5 grids)  - each grid has "allowmultirowedit" = true - so that each gridRow can be modified.  The "parent" page contains the "Save" button ...  I need to tie the Save button action to each of the radgrids ...  like the GridView "SaveButtonId" property - any ideas?
Tsvetina
Telerik team
 answered on 16 Mar 2012
2 answers
200 views
Hallo,

I know the topic has already been mentioned in the forum and the help, but the threads did not work for me.

I'm trying to set the default font that's used when I create a new item. Changing the default font of the browser works fine, but I'd like to have a server based setting.

I have a css-file in the layouts folder, that contains a proper defintion for 'body'. How can I redirect the RadEditor control to use this file to render the default font?

I'd appreciate your help,
Philip Thomé
Philip
Top achievements
Rank 1
 answered on 16 Mar 2012
1 answer
241 views
Edit - Nevermind - the below does work with RadButton - just had a typo in my code.  Would be nice to add this to the documention here:

http://www.telerik.com/help/aspnet-ajax/button-client-side-basics.html 

--------

I can't seem to find anything on this - but it seems like a pretty simple task.  I would like to dynamically change the tooltip on a RadButton in Javascript.  I see there is a .get_toolTip(), but no mention of a .set_toolTip()?

I was hoping I could do something simple like this:

$find('<%= RadButton1.ClientID %>').set_toolTip('New tooltip');
Slav
Telerik team
 answered on 16 Mar 2012
4 answers
201 views
I'm using Edit Form to insert/edit items. The problem I'm running into is when I try to edit a row, it's using the same form and some of the controls are not set to what data item for that grid item actually has. When in the life cycle can I set selected values for my RadComboBoxes and RadNumericTextBoxes, any code examples?
Antonio Stoilkov
Telerik team
 answered on 16 Mar 2012
1 answer
170 views
Hi

I have a Page A where on button click, I display another page B using radwindow dialog. When button save is clicked on page B, some data is  processing, Page B is closed and then page is redirected to Page A.
In this scenario, i refresh page A with radajaxmanager sometimes it takes considerable amount of time and user may not know if the processing is going on.

I wan to display a loading panel on Page A once the Dialog of page B is closed, I am using DefaultLoadingPanelID in my radajaxmanager but the loading panel is not displaying. I dont know why :(

Maria Ilieva
Telerik team
 answered on 16 Mar 2012
1 answer
125 views
Hi,

I have a treelist control loaded dynamically inside RadDock. When the dock is expanded the controls are loaded but the styles are not rendered. I also checked the site and found the EnableAjaxSkinRendering property of RadDock and set tat to true.
Even tat didn't work. This problem exists only in Internet Explorer. Please refer the image attached below.

Thanks,
Karthik
Tsvetina
Telerik team
 answered on 16 Mar 2012
1 answer
3.1K+ views

Hello,

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
with reference with above link...
i need to use grid with inline edit mode.
My column will be date,report type , description.

After clicking on edit it will convert as dattimepicker, dropdownlist, textbox.

my dropdown will be bind with datatable.

After clik of edit button it will covert in to update and cancel button. i dnt want that. after cllick of edit image it wiill alow data to be edit. and save changes button will be @ botton..

Can you please give me code for above...

Thanks,
Mugdha

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Mar 2012
3 answers
522 views
I wanna add a new record, and edit the records on grid, with button outside the grid. How could i do that?
Thats my asp code
<telerik:RadGrid ID="RadGrid2" runat="server" AllowMultiRowSelection="true" Width="300px"OnNeedDataSource="RadGrid2_NeedDataSource">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="codigo" EditMode="InPlace">
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:CheckBox runat="server" ID="CheckBox1" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn HeaderText="Código" DataField="codigo" UniqueName="codigo"
                            ReadOnly="True" Display="true" ColumnEditorID="GridTextBoxColumnEditor1" />
                        <telerik:GridBoundColumn HeaderText="Descrição" DataField="descricao" UniqueName="descricao"
                            ColumnEditorID="GridTextBoxColumnEditor1" />
                        <telerik:GridEditCommandColumn ButtonType="ImageButton">
                        </telerik:GridEditCommandColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <ClientEvents OnRowDblClick="RowDblClick" />
                </ClientSettings>
            </telerik:RadGrid>
            <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="180px" />
        <asp:Button ID="btnDeletar" runat="server" Text="Deletar Items" OnClick="btnDeletar_Click" />
        <asp:Button ID="btnInserir" runat="server" Text="Inserir Items" OnClick="btnInserir_Click" />
        <asp:Button ID="btnEditar" runat="server" Text="Editar Items" OnClick="btnEditar_Click" />
        <telerik:RadWindowManager ID="Window" runat="server" EnableShadow="true" />
and thats my c# code
protected void RadGrid2_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    // Atribui dados a grid.
    RadGrid2.DataSource = this.GridSource;
    this.GridSource.PrimaryKey = new DataColumn[] { this.GridSource.Columns["codigo"] };
}
/// <summary>
/// Obtem a source do grid.
/// </summary>
private DataTable GridSource
{
    get
    {
        object obj = ViewState["GRID"];
        if ((!(obj == null)))
        {
            return ((DataTable)(obj));
        }
        DataTable myDataTable = new DataTable();
 
        myDataTable = Preenche();
        ViewState["GRID"] = myDataTable;
 
        return myDataTable;
    }
}
/// <summary>
/// Obtem data table com dados para grid.
/// </summary>
/// <returns>Retorna datatable</returns>
public DataTable Preenche()
{
    C001 c001 = new C001();
    DataTable dt = new DataTable();
 
    dt = c001.ObterDados();
    return dt;
}
Shinu
Top achievements
Rank 2
 answered on 16 Mar 2012
0 answers
127 views
Hi
I have a modal popup on .ascx control & I wish to place radtreeview control on this modal popup.I have done all the coding & datasource property of radtreeview gets populated correctly but When I call DATABIND() method of this control I am not able to see the radtreeview control on modal popup.
Please suggest.
kdyeqb
Top achievements
Rank 1
 asked on 16 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?