Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 views
Hi,

I have a set of CSS Styles that I want my users to be able to select from the Apply CSS... Drop Down in the RadEditor Toolbar, I've added them to the CssEditor.css file in the common files...5.2.0.0__1f131a624888eeed... directory so they show up fine, but the problem is that all the CORE.CSS styles are also showing up, is there anyway to get round this?

I also have a second issue in that the toolbar sometimes loads up at the bottom of the page, or way off the bottom off the page when clicking inside an editor window, at the moment I have 3 editor's one at the top of the page one below it and another below that, the top editor loads the toolbar fine, but the other two load it further and further down the page, could this be a CSS styling issue?

Thanks.
George
Telerik team
 answered on 23 Oct 2008
5 answers
194 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
139 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
141 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
320 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
207 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
201 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
145 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
251 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
70 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
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?