Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
Hello,
i have a problem: in my ASP page i have a RadGrid with ID="RGDati", i want to read the data into RadGrid cells via javascript;
I'm using this method:

    function readData(){
        var grid = window["<%# RGDati.ClientID %>"];
        alert(grid); // output: "undefined"
        for (var i = 0; i < grid.MasterTableView.SelectedRows.length; i++)  
        {  
            var row = grid.MasterTableView.SelectedRows[i];  
            var cellID = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.SelectedRows[i], "EmployeeID");    
            alert(cellID.innerText);  
        }
    }


but it crash because grid is "undefined"!
If I use this statement
var grid = window["<%= RGDati.ClientID %>"];
i have this error message:

Error Message:The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Stack Trace: at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated)

Please, can you help me?
Schlurk
Top achievements
Rank 2
 answered on 08 Jan 2010
1 answer
142 views
My requirement is as follows:
My page opens in a RadWindow with RadSplitter in 2 Radpanes. both RadPanes have 2 different pages. In the second RadPane, I want to have a RadEditor which will have only one custom button which will open another page in a Radwindow. The new page will have a grid with some values, the data from the selected grid rows has to be inserted in the RadEditor on a button click event. The value from the grid has to be inserted in the editor where the cursor was before the customized button is clicked. Can that be done using RadEditor?

Thanks.
Rumen
Telerik team
 answered on 08 Jan 2010
3 answers
63 views
When the dropdown of my combobox comes down it drops way too far down


Simon
Telerik team
 answered on 08 Jan 2010
1 answer
165 views
Hi,
In my pie chart ,I don't want to display the name of series, just use chart title to tell what the chart is about.
How can I do this?

thanks
-Qing-
Schlurk
Top achievements
Rank 2
 answered on 08 Jan 2010
4 answers
214 views
Hi there,

can you please give me a hint (or better some code example *g*) how to remove elements like the foldertree, the url-field and the button to create new folders (as you can see on the screenshot I attached)?

I know how to remove those elements from the FileExplorer but the ImageManager seems to be another component than the FileExplorer but with a similar look.

Thank you very much!

Greetings from Germany.
Ricky Mattischeck
Ricky Mattischeck
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
114 views
Hi,

I have a treeview menu which implements a context menu.

When this is initially loaded the context menu works fine and executes the contextmenuclick event just fine, this then reloads the page as expected - however once reloaded the context menu no longer fires the event?  Should I look at rebinding this to the client side event or is there a quick fix?

This page is implemented in DNN without an ajax manager.

Thanks,
Lee
Dimitar Milushev
Telerik team
 answered on 08 Jan 2010
1 answer
196 views

Hello,

We are using Latest Telerik dll version "2009.3.1103.35".

We have Radgrid and use Cleint side inline Row deleting functionality.

We have set "OnRowDeleting" and "OnRowDeleted" Attributes to fire respective methods.It was working fine in previous versions ,but not now.

I have read somewhere that "RowDeleted" and "RowDeleting" events are replaced by "RowChanged" and "RowChanging" events,is that true?

And if Yes, Kindly provide us demo code / Project to achive above functionality...


Code :

 

 

 

<telerik:RadGrid ID="radGridSupplierDetails" Height="250px" runat="server" GridLines="None"

 

 

 

 

 

 

PageSize="200" AutoGenerateColumns="False" EnableEmbeddedSkins="False" EnableViewState="False">

 

 

 

 

 

 

<ClientSettings EnableRowHoverStyle="true" >

 

 

 

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

 

 

 

<ClientEvents OnCommand="radGridSupplierDetails_Command" OnRowClick="RowSupplierDblClick"

 

 

 

 

 

 

OnRowDeleting="SupplierRowDeleting" OnRowDeleted="RowDeletedSupplier" OnRowMouseOver="OnRowMouseOver_radGridSupplierDetails"/>

 

 

 

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="false">

 

 

 

 

 

 

</Scrolling>

 

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

 

<FilterMenu EnableEmbeddedSkins="False">

 

 

 

 

 

 

</FilterMenu>

 

 

 

 

 

 

<SortingSettings SortedBackColor="BurlyWood" />

 

 

 

 

 

 

<HeaderContextMenu EnableEmbeddedSkins="False">

 

 

 

 

 

 

</HeaderContextMenu>

 

 

 

 

 

 

<MasterTableView ClientDataKeyNames="No" CssClass="RadGrid_Web20" EditMode="InPlace"

 

 

 

 

 

 

TableLayout="Fixed" Width="95%">

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Serial_Number" Display="false" HeaderStyle-HorizontalAlign="Center"

 

 

 

 

 

 

HeaderText="SrNo" ItemStyle-HorizontalAlign="Center" SortExpression="Serial_Number"

 

 

 

 

 

 

UniqueName="Serial_Number">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="SupplierId" HeaderStyle-HorizontalAlign="Right"

 

 

 

 

 

 

HeaderStyle-Width="80px" HeaderText="SupplierId" ItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

Display="false" SortExpression="SupplierId">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="100px" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="SupplierName" HeaderStyle-HorizontalAlign="Right"

 

 

 

 

 

 

HeaderStyle-Width="80px" HeaderText="Supplier" ItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

SortExpression="SupplierName">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="80px" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="ContactName" HeaderStyle-HorizontalAlign="Right"

 

 

 

 

 

 

HeaderStyle-Width="50px" HeaderText="Contact" ItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

SortExpression="ContactName">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="75px" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Email" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="0px"

 

 

 

 

 

 

HeaderText="Email" ItemStyle-HorizontalAlign="Right" SortExpression="Email">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="75px" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Address" HeaderStyle-HorizontalAlign="Right"

 

 

 

 

 

 

HeaderStyle-Width="80px" HeaderText="Address" ItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

SortExpression="Address">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="80px" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="CommentToSupplier" HeaderStyle-HorizontalAlign="Left"

 

 

 

 

 

 

HeaderText="Comment" ItemStyle-HorizontalAlign="Left" SortExpression="CommentToSupplier">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Notes" Display="True" HeaderStyle-HorizontalAlign="Left"

 

 

 

 

 

 

HeaderText="Note" ItemStyle-HorizontalAlign="Left" SortExpression="Notes">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="80px"/>

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridClientDeleteColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow"

 

 

 

 

 

 

ConfirmText="Are you sure you want to delete this row?" HeaderStyle-Width="25"

 

 

 

 

 

 

ImageUrl="../../Images/Delete.gif" ItemStyle-Width="25">

 

 

 

 

 

 

<HeaderStyle Width="25px" />

 

 

 

 

 

 

<ItemStyle Width="25px" />

 

 

 

 

 

 

</telerik:GridClientDeleteColumn>

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

<EditFormSettings>

 

 

 

 

 

 

<EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif" InsertImageUrl="Update.gif"

 

 

 

 

 

 

UpdateImageUrl="Update.gif">

 

 

 

 

 

 

</EditColumn>

 

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

</telerik:RadGrid>


Functions :

 

 

 

 

// event fires after Row Deleted - Supplier Grid

 

 

 

 

 

 

function RowDeletedSupplier(sender, args) {

 

 

 

 

 

//this function is empty but its compulsory as this is a bug from telrik

 

 

 

 

 

 

//Known issue the Grid will miss a row after delete a row if this function is not defined.

 

 

 

 

 

}

 


 

 

//Delete row from grid. - Supplier Grid

 

 

 

 

 

function SupplierRowDeleting(sender, args) {

 

 

 

 

 

var editedRow = args.get_itemIndexHierarchical();

 

 

var item = args.get_gridDataItem();

 

 

var strSupplierId = "";

 

 

var objArrParts = JSON.parse(jsonStringSupplier);

 

 

var objArrPartsDeleted = ""; //To store the element which needs to be deleted.

 

 

 

 

 

 

if (item != null) {

 

strSupplierId = sender.get_masterTableView().getCellByColumnUniqueName(item,

"Serial_Number").innerHTML;

 

document.getElementById(

"<%= hdnLabelSupplierSerialNumber.ClientID%>").innerHTML = sender.get_masterTableView().getCellByColumnUniqueName(item, "Serial_Number").innerHTML;

 

}

 

for (var i = 0; i < objArrParts.length; i++) {

 

 

if ((objArrParts[i].Serial_Number) == strSupplierId) {

 

objArrPartsDeleted = objArrParts[i];

objArrParts.splice(i, 1);

}

}

jsonStringSupplier =

"";

 

jsonStringSupplier = JSON.stringify(objArrParts);

setSupplierDelete();

}


any help will be highly appreciated..

 

 

 

 

 


Thanks,
Ajay Khedekar 

 

Pavel
Telerik team
 answered on 08 Jan 2010
1 answer
166 views
Hi,
I am using Panelbar for left menu. and using web20 latest skin. I have bullets in the items of the panelbwr (screenshot attached). I have large space between the bullet image  and the ietm text. I need to reduce it and also i need to reduce the space between the left barder and the bullet. I have overwritten the css and finally my UI looks like attached screenshot. i tried the follg but not worked for me.

RadPanelBar_Web20.rpText
{
    padding-left:0px !important;
    padding-right:0px !important;
}
Thanks,
Jeevitha
Yana
Telerik team
 answered on 08 Jan 2010
1 answer
175 views
If I write OnNodeCheck="lstBisogno_NodeCheck" when I check start postback.
I don't try AutoPostBack property.

It's possible associate function on OnNodeCheck (OnNodeCheck="lstBisogno_NodeCheck") but not have a automatic PostBack ?

Thanx
Schlurk
Top achievements
Rank 2
 answered on 08 Jan 2010
1 answer
116 views
Hey I'm trying to make the Editor upload a selected file to two different places on the server.
So the file will exsist in two different places on the server, the two directories will be the same at all times.

For example, I already have the ImageManager.UploadPaths set in the codebehind but I need to set this to two directories instead of just one.
Can someone help with this please???
Thanks!
Rumen
Telerik team
 answered on 08 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?