Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 views
Hi All

I have used linqDataSource and a RadGrid.

I have fetched the data from the table and every thing is done.

The peimary key is ProductID.

So in Edit mode it is the first field. And it is Editable.

It must not be editable. What to do?

My Code is:

<

body 

 

<form id="form1" runat="server">  

 

<div 

 

<asp:ScriptManager ID="ScriptManager1" runat="server"/>  

 

<asp:LinqDataSource runat="server" ID="LinqDataSource1" ContextTypeName="AntoClassesDataContext"  

 

TableName="M_Product" EnableDelete="True" EnableInsert="True" EnableUpdate="true">  

 

</asp:LinqDataSource 

 

<telerik:RadGrid Skin="WebBlue" AutoGenerateDeleteColumn="true" AutoGenerateEditColumn="true" GroupingEnabled="true" ShowGroupPanel="true" runat="server" DataSourceID="LinqDataSource1" AllowAutomaticDeletes="true" AllowAutomaticInserts="true"

 

 

AllowAutomaticUpdates="true" AllowPaging="true" PageSize="8" AllowSorting="true"  

 

 

AllowFilteringByColumn="true" ID="RadGrid1">  

 

<MasterTableView DataKeyNames="ProductID" CommandItemDisplay="Top"> 

 

</MasterTableView 

 

<ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true">  

 

</ClientSettings 

 

</telerik:RadGrid> 

 

</div 

 

</form>
</
body>

 

 

 

 


Thank you for your help.

-Anto

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 26 Mar 2009
0 answers
72 views
Hi All

I have done a app with a schedular and a tree.

If I drag and leave the product in the tree into he schedular it will assign for the time i have dropped.

now I have to validate it.

If I drag one more product and drop it at the top of the old one an message should appear.

That is i have a call a java script.

My Code:

int

TotalApp = Slot.Appointments.Count;

 

 

if (TotalApp == 0)

 

{

Set of Statements;
}
else
{

lblAlert.Text =

"<script type='text/javascript'>NodeAlert()</" + "script>";

 

 

//Anto for testing

 

BtnAlert_Click(sender,e);

}

Now it does not execute the java script. so i kept a button and while clicking the button the java script is executing.

So I made the button to be clicked through coding.

But even at this time it is not executing.


This is the coding for button:

 

protected

void BtnAlert_Click(object sender, EventArgs e)

 

{

lblAlert.Text =

"<script type='text/javascript'>NodeAlert()</" + "script>";

 

}

 


This is java script:

function
NodeAlert()

 

{

 

alert(

"Hi");

 

 

return false;

 

}

 

Note: If I click the button those two lines are executing.

Thanks

-Anto

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 asked on 26 Mar 2009
1 answer
143 views
Hi
    I want to create a custom drop down for RadEditor, and in drop down i need to papulate a tree.
    If i click on a perticlular node of that tree...i need to navigate an url. i.e nodes of tree are anchors for some url

    How can i do this....Can you please help me with a sample.

   Thanks in advance
   Srikanth Gunnala
    
Rumen
Telerik team
 answered on 26 Mar 2009
1 answer
107 views
i change the text in column grid in grid databound
the data field from the column [1,2,3] but i am change this value to [a1,b1,c1]  in grid data bound but when i enter the a1 in the text filter and search to this character the grid return empty search and  when i enter 1 the search work but i want to filter the text  a1   is show in the grid
please help me 
Yavor
Telerik team
 answered on 26 Mar 2009
1 answer
122 views
sir
On need datasource i have added a column to the dataset dynamically.but when i click export,that column data are not coming
RadGridSCType_DetailTableDataBind()  
Dim dsaddedDoc As New DataSet  
dsaddedDoc = objSC_documentsBAL.SelectAllDocumentsofSC()  
'Revision Prefix  
Dim revisionwithprefix As New DataColumn  
dsaddedDoc.Tables(0).Columns.Add(revisionwithprefix)  
dsaddedDoc.Tables(0).Columns("column1").ColumnName = "revisionwithprefix" 
If dsaddedDoc.Tables(0).Rows.Count > 0 Then  
Dim prefix As String = GetRevisionPrefix()  
Dim row As DataRow  
For Each row In dsaddedDoc.Tables(0).Rows  
 If row("Rev_No_Detail").ToString <> "" Then  
    row("revisionwithprefix") = prefix + row("Rev_No_Detail").ToString  
  End If  
Next  
 End If  
e.DetailTableView.DataSource = dsaddedDoc 
RadGridSCType_ItemCommand () 
If e.CommandName = "Export" Then  
RadGridSCType.MasterTableView.HierarchyDefaultExpanded = True 
                     RadGridSCType.Rebind()  
                    RadGridSCType.ExportSettings.OpenInNewWindow = True 
                    RadGridSCType.ExportSettings.ExportOnlyData = True 
                    RadGridSCType.ExportSettings.IgnorePaging = True 
                    RadGridSCType.MasterTableView.ExportToExcel() 
revisionwithprefix data is not coming..only the data coming directly from the database is displaying..
Yavor
Telerik team
 answered on 26 Mar 2009
1 answer
494 views
I have added resizable columns to my RadGrid control, however I haven't figured out a way of setting the maximum width you can stretch the entire grid to.  Does anyone know of a way to do this?
Princy
Top achievements
Rank 2
 answered on 26 Mar 2009
1 answer
82 views
Hi,
I have a grid and a checkbox column in it.

it the grid is not having any records it says there are no records and the Header text box is checked by default.
i tried to make checked = false in databound and itemcreated events but it didnt work.

any ideas how to make it checked = false

Thanks
-Krishna
Princy
Top achievements
Rank 2
 answered on 26 Mar 2009
1 answer
110 views
Hi,

I just wonder how to check a checkbox of clicked node in Treeview (CheckBoxes="true")?

<telerik:RadTreeView ID="ObjectiveSelector"
                                            runat="server"
                             Height="400"
                             Width="300"  
                             CheckChildNodes="true"
                             TriStateCheckBoxes="true"
                             OnClientNodeChecking="onNodeChecking"
                                OnClientNodeClicking="nodeClicking" CheckBoxes="true">
                                        </telerik:RadTreeView>

function nodeClicking(sender, args) {
            alert("OnClientNodeChecking: " + args.get_node().get_text());
        }

Thanks in advance,

Toby
taeho
Top achievements
Rank 1
 answered on 26 Mar 2009
2 answers
96 views
Hi -

I'm getting a consistent error in Firebug working on a site that I've upgraded to Q1 2009 controls.  The script manager is in the master page, so the error shows up on every site page as follows:

[Exception... "Component is not available"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js :: sss_saveState :: line 1909"  data: no]
http://localhost:59982/grandslamgaragesales_com/ScriptResource.axd?d=saTaKBkf9cEi1BzROZoVvrIUGMSdDpfwXF_Ysx7rJ4Ql1fmta8FkMKWPLSWFQ2L_2i4VkdF6jbUZ7Ndwe23gzj8roTEI_FGI8MSkvjR7iQk1&t=fffffffff6b56ba2
Line 6391

Is this an issue that you are familiar with?  I have not yet tried the new controls on another test site - thought I would check here first.  The pages work, and I have no other problems with the controls, just the persistent error on each page.

Thanks,

Rod




Rod
Top achievements
Rank 1
 answered on 26 Mar 2009
3 answers
65 views
Hello,

Is there some sample on having a grid field permanently in 'edit' mode to avoid having to cycle between normal/edit/update/normal mode of grid which necessitate many mouse clicks and callbacks ?
I am using the grid in an order form and I want users to be able to enter quantities using a RadInput and press recalculate without having to pilotate the edit mode.

Thanks
CS
Princy
Top achievements
Rank 2
 answered on 26 Mar 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?