Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
196 views
There are several filter options in the drop down list.(eg. no filter, contains) Can these options being called in server side code to filter the grid data instead of using the drop down list? Thanks.
Pavel
Telerik team
 answered on 23 Oct 2008
1 answer
143 views
I am successfully setting focus in grids that are not Master/Detail using:

function focusDelivery(item) { 
    document.getElementById(item).focus(); 
    document.getElementById(item).scrollIntoView(); 
} 

and in the ItemDataBound event

If (TypeOf (e.Item) Is GridEditFormItem) AndAlso e.Item.IsInEditMode Then  
    Dim box As TextBox = e.Item.FindControl("ContactName") 
    grdDelivery.ClientSettings.ClientEvents.OnRowCreated = String.Format("focusDelivery('{0}')", box.ClientID) 
End If 
                    

My problem is that in a Master/Detail grid the databinding is in grid_DetailTableDataBind and I can't figure out how to get the e.Item values in order to check if it is an EditForm and IsInEditMode in order to set focus.

If (TypeOf (e.Item) Is GridEditFormItem) AndAlso e.Item.IsInEditMode Then 

Any help appreciated, thanks,

Declan
Declan
Top achievements
Rank 2
 answered on 23 Oct 2008
2 answers
143 views
Hi,

I found an example in your documentation that would hide the context menu when you move the mouse out of the context menu. I can't get it to work though... It hides whenever the mouse is moved outside a single item even if it still is within the context menu.

The example I used is as follows:

function OnClientMouseOutHandler(sender, eventArgs)
{
   var destinationElement = eventArgs.get_domEvent().rawEvent.toElement || eventArgs.get_domEvent().rawEvent.relatedTarget;
   var menuDiv
= $get("<%= RadContextMenu1.ClientID %>");
   
   
while(destinationElement && destinationElement != menuDiv)
   {
       
destinationElement = destinationElement.parentNode;
   }
   
if (destinationElement == menuDiv)
   {
       
//mouse is within the menu       
       
return;
   }   
   
//mouse is out of the menu
   
sender.hide();        


/Janni
Veselin Vasilev
Telerik team
 answered on 23 Oct 2008
7 answers
327 views
I am using the RadWindowManager and creating a Window in it's properties:

<telerik:RadWindowManager ID="winmanParolee" runat="server" ReloadOnShow="false" VisibleOnPageLoad="true" KeepInScreenBounds="true"> 
    <Windows> 
        <telerik:RadWindow ID="winPopup" runat="server" OpenerElementID="btnTest" ShowContentDuringLoad="true" KeepInScreenBounds="true" Modal="true"> 
            <div>My dialog content here...</div> 
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 

I am trying to open the window on buttonclick, using an asp:button. If I have the window visible on load then it shows, but when hidden and the button is clicked it dows not appear.

I am loading this from a user control that is loaded on click of a tab in a tabstrip.

Any help is greatly appreciated.
Andy
Top achievements
Rank 1
 answered on 23 Oct 2008
4 answers
212 views
How can I check the ClientSelectColumn checked state in the header from CodeBehind on the ItemCommand event?
codispdp
Top achievements
Rank 1
 answered on 23 Oct 2008
1 answer
215 views
I have a RadGrid which is connected to a single SQL Server table that contains only three fields. One field in this table (UserID) is the Primary Key.

I can successfully edit values in the regular two fields but cannot change the value of the Primary Key field. When I click at the "Update" button after changing the value in the PK field, it returns the same old value. Here is my "UpdateCommand". Apparently it does not save it in the table.

UpdateCommand
="UPDATE TestEmp SET UserID = @UserID, UserName = @UserName, Department = @Department WHERE (UserID = @UserID)">

Thank you.

Tariq

Yavor
Telerik team
 answered on 23 Oct 2008
1 answer
149 views
Hello,

I have an AjaxManager I have added a user control that contains a grid in it's settings.

Everything works as expected when I want to refresh the grid.  But Now I have a problem.  The grid and it's buttons are now ajaxified that's not really a bad thing but I would need a way to know when the AjaxRequest starts and ends for it's buttons.  It does not use the one from the AjaxManager.

Is there a way to do that?

(more specificaly in that case it's the delete button in a grid)
<telerik:GridButtonColumn CommandName="Delete" Text="~Delete" UniqueName="DeleteColumn" ItemStyle-Width="10px" ConfirmText="" ButtonType="ImageButton" HeaderButtonType="PushButton" meta:resourcekey="GridButtonColumn">
            </telerik:GridButtonColumn>

Thank you.
Iana Tsolova
Telerik team
 answered on 23 Oct 2008
8 answers
259 views
In my current development, I have completed several pages using the RadGrid control. Recently I got a request to add 20 more fields into one of the pages to allow more detailed description of each grid entry. In-Line editing, which I have been using all this while, is now out of the question with the issue of space constraints.

With the goal of keeping the interface design standard through all the pages, I like to inquire if its possible to have both "InPlace" editing with "EditForms" mods in that particular RadGrid (at least the grid having two seperate edit modes accessed through seperate buttons)?

Thanks for your help.
Benjamin
Top achievements
Rank 1
 answered on 23 Oct 2008
1 answer
71 views
Hello,

I am using the online demo below to insert data in the table Employees
http://demos.telerik.com/aspnet/prometheus/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultCS.aspx

I have added a column Created_By to the table. I want to populate the Created_By colum with the ASP.net userid who is logged in the session and who is inserting that record in the table. Please help.

Regards
Sheo Jha
sheojha@gmail.com
Iana Tsolova
Telerik team
 answered on 23 Oct 2008
10 answers
225 views
Will the RadControls for ASP.NET AJAX work in Microsoft's new MVC Framework? Although that is really a blanket question, it came up at my last .NET community meeting. I am sure that some features on most of your controls will probably work (like the RadTabStrip), but I am not sure about the controls that require post back features (since there is no post back in MVC).

What information can you provide me with so I can field these sort of questions? Any information would be helpful.

The most asked questions:
Will there be a control set for the MVC framework?
If so, will they require a separate developer license?

Thanks!

John
Ivo
Telerik team
 answered on 23 Oct 2008
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?