Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views
I'm using a linkbutton delete column on a master/detail grid.  On linkbutton click, I want to call a stored procedure via SQL datasource that looks for and identifier in the details table.  If it exists, it returns a code and an error will display.  If not, it deletes the record from the master grid.  I'm having trouble finding an example of how to do this.  Could you please point me in the right direction? 
Veli
Telerik team
 answered on 18 Jun 2009
1 answer
139 views
Is there a way to capture the OnBlur event for a calendar? I see a clientevents node but OnBlur is not listed. 

I basically have a pop-up div that has two calendars and the onblur event would check to see if they clicked outside of the div. The problem is once the calendar is clicked, it receives focus and I don't have a way to detect the onblur anymore.

Thanks,
Levi
Veli
Telerik team
 answered on 18 Jun 2009
4 answers
341 views
Hello,

I am new to Telerik and have downloaded the asp.net for evaluation. I have a simple RadGrid with 2 columns defined as

 

<telerik:RadGrid ID="RadGrid1" runat="server" onneeddatasource="NeedData" AutoGenerateColumns="False">

 

 

    <MasterTableView ClientDataKeyNames="NewCol1" Width="100%">

 

 

        <Columns>

 

 

            <telerik:GridBoundColumn DataField="rowId" HeaderText="rowId" Visible="false" UniqueName="rowId">
          
</telerik:GridBoundColumn>

 

 

            <telerik:GridBoundColumn DataField="NewCol1" HeaderText="NewCol1" ReadOnly="False" UniqueName="NewCol1">

 

 

            </telerik:GridBoundColumn>

 

 

        </Columns>

 

 

    </MasterTableView>
    <
ClientSettings>

 

 

        <Selecting AllowRowSelect="True"/>

 

 

        <ClientEvents OnRowDblClick="OnRowSelected" />

 

 

        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="200px"/>

 

 

    </ClientSettings>

 

 

</telerik:RadGrid>

 

A DataTable is used as the data source on the server side. In the RadGrid, when you double click a row, a RadWindow is used to popup a window to edit the selected row's data. The popup window in turn calls my local js method to update the row with the new values. All is well and the examples I have followed work as expected. When I finally hit a save button on the page (which posts back to the server), I believe .Net is loading the view state of the RadGrid without the changes I have made to the grid. I kind of expected this given that .Net rebuilds the controls in the Init event. So I have two questions,

1) How do I get the changes I have made to the grid on the client side to the server, and/or
2) The RadWindow used to make the changes calls the js function BrowserWindow.myUpdateMethod which is all client side. If I cannot easily get the client side changes, how can I force the RadWindow to post back instead of calling my js function? In the past, we have used CodeSummit WebModalControls which does precisely that, which allows us to change the data client side and rebind.

Thanks for your help.

Paul

 


 

 

 

 

Georgi Krustev
Telerik team
 answered on 18 Jun 2009
2 answers
164 views
Hi

I am using cleint delte column in my grid.
<telerik:GridClientDeleteColumn  CommandName="Delete"  ImageUrl="../../Resources/Images/Common/icon_delete.gif"   ButtonType="ImageButton" ConfirmText="Are you sure you want to delete?"/>

It delets the row. But in next postback. I found these rows in grid.Items collection. I also want to remove deleted from item collection.

How can i do this.

Thanks in advance.
B.Sethi
Bhushan
Top achievements
Rank 1
 answered on 18 Jun 2009
1 answer
107 views
I am looking to create a script to toggle the enable/disable flag of a few toolbar items when they are/aren't selected.  I keep getting null back from get_masterTableView - it looks correct to me though - am I missing something?

function Grid1_OnRowSelected(sender, eventArgs) 
{ 
    var MasterTable = sender.get_masterTableView(); 
    var selectedRows = MasterTable.get_selectedItems(); 
 
    var gridToolbar = GetRegisteredServerElement("Grid1Toolbar"); 
 
    if (selectedRows.get_Count() > 0) 
    { 
        gridToolbar.findItemByAttribute("CommandName", "Copy").enable(); 
        gridToolbar.findItemByAttribute("CommandName", "Move").enable(); 
        gridToolbar.findItemByAttribute("CommandName", "ToggleStatus").enable(); 
        // Enable copy/move command items 
         
    } 
    else 
    { 
        gridToolbar.findItemByAttribute("CommandName", "Copy").disable(); 
        gridToolbar.findItemByAttribute("CommandName", "Move").disable(); 
        gridToolbar.findItemByAttribute("CommandName", "ToggleStatus").disable(); 
        // Disable copy/move command items 
    } 

Veli
Telerik team
 answered on 18 Jun 2009
1 answer
177 views
hi

i am using Telerik Editor  version (Q1 2007). there is a inbuild font size drop down. it contains font sizes 1 to 7. i want these font sizes to be overridden by size in "px" e.g  8px, 10 px. etc. how do i add this sizes in dropdown.? I tried to set the font sizes through ASP.Net code as well as using Toolsfile.xml but nothing is working out.

give me the solutions ASAP

Rahul

Rumen
Telerik team
 answered on 18 Jun 2009
3 answers
135 views

When setting the GroupByExpression property for a template column I would like to declaratively assign the field alias to a resource so that it is localized.
My current expression is: 

 

 

<telerik:GridTemplateColumn   
    GroupByExpression="FieldName AliasName Group By FieldName asc"   
 

 

 

How can I replace 'AliasName' so that it uses <%$ Resources:Grid, AliasName%> ?

I don't want an initial grouping state so have not set the GroupByExpressions property for the MasterTableView.

Daniel
Telerik team
 answered on 18 Jun 2009
1 answer
75 views


Hi Team,

I have an issur in the rad scheduler.

I want to block the appointment insertion pop up window which appears on the double click of the date cell in the scheduler, but at the same time i want to fire the server side event (samplescheduler_FormCreating) while clicking on the cell. if i keep the property AllowInsert ="false" i am not able to get the server side event while clicking on the cell.

When double click on the date cell of the scheduler i want to get a server side event without any appointment Insertion popup.




Thanks & Regards,
Sushanth Mathew
Peter
Telerik team
 answered on 18 Jun 2009
5 answers
85 views

Hi,

Right now i am using telerik 2009 - 1.402.20 version.

I am trying to used RadwindowManager with MansterPage in asp.net 2.0,It's gives me some javascript error.
but without master page it's work fine.

please help me out if anybody have solution related this issued.


Thanking You,

Minesh
Top achievements
Rank 1
 answered on 18 Jun 2009
1 answer
162 views
Hello,

I know usual command item actions such as add new, edit, delete, refresh are built in with Rad grid. These can be performed on multiple row selection as well with some twists in the aspx and code behind files.

But, I want to acheive a customized command item for multiple row selection such as changing status of the row by selecting multiple rows and click on "Change status" button. I can include this button in the CommandItemTemplate. I can perform basic marching thru selected Items also. How do I convert my selected rows back into DTO - data transfer objections?

Thanks a lot in advance.

 

 

 
   
protected void BuildingItemList_ItemCommand(object source, GridCommandEventArgs e)     
{   
    if (e.CommandName.ToUpper() == "CHANGESTATUS")    
    {   
        foreach (GridDataItem dataItem in BuildingItemList.SelectedItems)   
         {   
            // Todo - something like below to convert selected items into an object.  
            // MyDTO dto = (MyDTO) dataItem.DataItem;   
         }  
    }   
}  
 
 
 

 

Veli
Telerik team
 answered on 18 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?