Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
hello,
i have one case where i need to display single header for 3 column. currently i have created it using table in HeaderTemplate and ItemTemplate. but it not looking proper means gird border not continuous and it is not according to skin.

i need layout is like this:
_________________________________________
|                                  Main Header1                        |      
-----------------------------------------------------------------
| Sub Header1     | Sub Header1      | Sub Header1  |
-----------------------------------------------------------------
| Data 1               | Data 2                | Data 3             |
-----------------------------------------------------------------
| Data 1               | Data 2                | Data 3             |
-----------------------------------------------------------------

this is in one single Template column. "Main Header" and "sub Headers" are created in Header template using table.
and there are some other simple column in grid.

can anybody suggest better suggestion.
thanks
Paresh
Top achievements
Rank 1
 answered on 29 Jan 2009
3 answers
124 views
The title is suppose to be "Splitter *not* working in FF?"

Everything works and looks great in IE, but splitter does not show up in FireFox when loading in a MasterPage.

The splitter along with its four containers: <div id="container">, form, body, html are all set to height:100%.  I'm using release 2008.3.1125.35

Here's a link to my source: http://rapidshare.com/files/171274593/Sample.zip.html

Could you please tell me what I'm doing wrong?

Thanks,
Joshua
Svetlina Anati
Telerik team
 answered on 29 Jan 2009
4 answers
248 views
Hi !

I try to insert a radmenu in an html table.

i set on the <td> align right, but the radmenu doesn't align at right.

Somebody knows why ?

Thanks,

Sabrina

Example :

<table style="width: 772px" visible="false">                                  
                <tr>                  
                    <td align="right">  
                        <telerik:RadMenu ID="RadMenu1" runat="server" EnableEmbeddedSkins="false">  
                            <Items> 
                                <telerik:RadMenuItem Text="CashFlow">  
                                    <Items> 
                                        <telerik:RadMenuItem Text="toto" /> 
                                        <telerik:RadMenuItem Text="tata" /> 
                                    </Items> 
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenu> 
                        <asp:Button CssClass="green_button" ID="Btn1" runat="server" Text="Btn 1" UseSubmitBehavior="false" /> 
                        <asp:Button CssClass="green_button" ID="Btn2" runat="server" Text="Btn 2" 
                            UseSubmitBehavior="false"/>                                                  
                    </td>                  
                </tr> 
            </table> 
Sabrina
Top achievements
Rank 1
 answered on 29 Jan 2009
2 answers
155 views
Hello, I've got a lot of issues with RadGrid. I suppose I don't use it in a standard way ?
Well, I have first a simple question:
I have some dataset created on the fly, and I link a radGrid to it. (to its first table)
One of the columns is a classic "Id" auto-inc primary key, which is set to ReadOnly

So when the user edits one row, I would like the "id" column ot be "not editable"
BUT the IsEditable property is a "get" property, which returns true ...

Relevant Code:
<telerik:RadGrid ID="RadGrid1" runat="server"   
            AllowSorting="True"   
               
            AutoGenerateDeleteColumn="True"   
            AutoGenerateEditColumn="True"             oncolumncreated="RadGrid1_ColumnCreated"   
            ondatabound="RadGrid1_DataBound"   
            onneeddatasource="RadGrid1_NeedDataSource"   
               
            onitemupdated="RadGrid1_ItemUpdated" onrowdrop="RadGrid1_RowDrop"   
            onupdatecommand="RadGrid1_UpdateCommand"   
            AllowMultiRowEdit="True"    
              
            > 
 
<MasterTableView DataKeyNames ="cID" EditMode="InPlace">  
... 
 if (mydt.PrimaryKey == null || mydt.PrimaryKey.Length<1)  
        { // if there is no primary  
            DataColumn col = new DataColumn("cID"typeof(int));  
            col.AutoIncrement = true;  
              
            mydt.Columns.Add(col);  
            int rc = 0;  
            foreach (DataRow drw in mydt.Rows){ rc++; drw["cID"] = rc;}//fill for existing rows  
            mydt.PrimaryKey = new DataColumn[] { mydt.Columns["cID"] };  
              
        }  
        
        nDS.Tables[0].Columns["cID"].ReadOnly = true;  
              
        RadGrid1.DataSource = nDS.Tables[0];  
        RadGrid1.AutoGenerateColumns = false;  
 
        GridBoundColumn boundColumn;  
        boundColumn = new GridBoundColumn();  
        RadGrid1.MasterTableView.Columns.Add(boundColumn);  
        boundColumn.DataField = "cID";  
        boundColumn.HeaderText= "id";  
 
        bool ised = boundColumn.IsEditable; //RETURNS TRUE ! 


bool
ised = boundColumn.IsEditable; // RETURNS TRUE !! and the corresponding field is shown while editing.

How to set the radGrid column to "not editable" so that no entry textbox is generated ?

Thank you!

 

 

 

 

seriallabs
Top achievements
Rank 1
 answered on 29 Jan 2009
1 answer
177 views

This may be a beginner’s issue, but I am having trouble with a situation that I need help with.  One set of data that is stored in an ArrayList and another that is stored in the DB (results from a stored procedure).

 

I need to have a RadGrid with two columns (right now the RadGrid is on the .aspx page, but the datasource is binded in the code-behind).  The first column’s cell’s will all have different values, but the second column should have a dropdown list populated with the same data in each cell (e.g. product list).  Essentially the data in column 1 will not be editable, but the value in each cell/drop down for column 2 needs to be selectable.  The data is column 1 is not stored in the DB (it is from an ArrayList that is built from reading data from a file the user just uploaded), while the data that would be in the drop downs in column 2 is from the results of a stored procedure in the DB.  It is a mapping exercise where the user must match an item from the array list to an item from the drop down list then save the changes for each row or the RadGrid as a whole.

 

ArrayList Column          DropDownListColumn (Each row should have a dropdown list with the same choices, populated from the same stored procedure call)

ArrayListString(i)          DropDownList

 

 

Does something like a datatable/dataset need to be built programatically in the background?  Could you please show me how to do this?

Yavor
Telerik team
 answered on 29 Jan 2009
6 answers
228 views
I want to save all the values from a grid.
I have 100 records in a grid.
The page count is 10.
Each row has radio buttons in it.
I want to save all the changes in one button click.
How to achieve it.
kollam2003
Top achievements
Rank 1
 answered on 29 Jan 2009
1 answer
77 views
Hi,

I am dynamically creating docks and loading user controls in them (similar to your portal)

I am also adding custom commands dynamically like:

 

DockCommand editCmd = new DockCommand();  
 
editCmd.Name = "Edit";  
editCmd.Text = "Edit";  
editCmd.CssClass = "rdCustom";  
dock.Commands.Insert(0, editCmd); 


Problem is the command appears at the end of all commands,
I want it to appear in order "edit","min-max","close"

Please suggest syntax.

 

 

 

 

Thanks.
Sameer
Top achievements
Rank 1
 answered on 29 Jan 2009
1 answer
126 views
hi, i need to use relative link with rad editor to put into html link such as: "/examplelibrary/nameoftheimage.ext" from the image manager and not put the entire url "www.mysite.com/examplelibrary/nameoftheimage.ext". is there a way to make it possible?

 thanks!
Stanimir
Telerik team
 answered on 29 Jan 2009
1 answer
105 views
Hi,

i have downloaded and installed rad editor lite on a moss server. I don't see the feature " Use rad editor to edit html fields" , but I see the other two features "use rad editor to edit list items " and "use rad editor to edit list items in internet explorer as well" .




Stanimir
Telerik team
 answered on 29 Jan 2009
1 answer
106 views
I have a grid that queries about 10 columns from a few different SQL tables using joins, however when a user clicks edit or insert I want to launch a new popup template which will contain all of the columns from the tables.  I have always queried all of the columns I wanted to edit and then just hide the ones I don't want in the grid, but to maintain performance (querying over 100 columns and 10,000 records) I want a way to be able to initiate a new datasource when in Edit or Insert mode.
<EditFormSettings CaptionFormatString="Edit Application Record: {0}"  
        CaptionDataField="advertisor_site" EditFormType="Template"
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
<FormTemplate> 
<asp:Label ID="GridRecEdit" runat="server" Visible="false"  
                Text='<%# Eval("record") %>' /> 
<asp:SqlDataSource ID="sqlds_AppEditor" runat="server"  
    ConnectionString="<%$ ConnectionStrings:Company_Master_ConnectionString %>"  
    SelectCommand="sp_Select_Admin_Application_Details"  
    SelectCommandType="StoredProcedure"
    <SelectParameters> 
        <asp:ControlParameter ControlID="GridRecEdit" PropertyName="Text" Type="Int32" Name="Record" /> 
    </SelectParameters> 
</asp:SqlDataSource> 
 
<table> 
ALL OF MY ROWS & COLUMNS HERE 
... 
 <tr> 
                <td> 
                    Name:</td> 
                <td> 
                    <asp:TextBox ID="last_name" runat="server" Text='<%# Bind("last_name") %>'  
                        CssClass="FormBox" MaxLength="40"/> 
                    , 
                    <asp:TextBox ID="first_name" runat="server"  
                        Text='<%# Bind("first_name") %>' CssClass="FormBox" MaxLength="30"/> 
                </td></tr
... 
</table> 
 
</FormTemplate> 
<PopUpSettings ScrollBars="None" Width="85%"></PopUpSettings> 
</EditFormSettings> 

Is there a way to do that?
Shinu
Top achievements
Rank 2
 answered on 29 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?