Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views

I have built a RadEditor .cs class that i drop onto pages that require the editor tool.
Following is a part of the class where i create a custom button.
How do I add an icon/image to the button within the cs class. 
Icon currently default to a question mark.
is the only way to do tihs within CSS.

public class Editor: RadEditor
{
 public Editor()
 {
  EditorToolGroup etg = new EditorToolGroup();
   EditorTool
 Custom = new EditorTool();
   etg.Tools.Add(Custom);
 }
}

 

 

 

 

Martin
Telerik team
 answered on 22 Jul 2009
1 answer
176 views
I am using RadEditor. Problem is that in Preview Mode it shows background colour as black . I have not specified background color in either aspx or in aspx.cs. Even if I try to specify some background color for editor it shows it but only in edit mode not in preview mode. I am using Skin="WebBlue".
Martin
Telerik team
 answered on 22 Jul 2009
2 answers
94 views
Dear sir,
How can give custom tooltip of Custom command when Dock is dynamically created?

plz reply fast
thanks & Regards
Golu
Top achievements
Rank 1
 answered on 22 Jul 2009
2 answers
169 views

Hi,
I just noticed that when clicking on the OK button, the dialog form height shrinks a little.
You can see this behavior on the example provided at:

http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx

1.       Click on "radalert dialog" button. The radalert is displayed.

2.       Click "OK" on the dialog, but do not release the mouse button. You'll observe the behavior.

3.       If you release the mouse button outside the "OK" button and repeat the steps, it does not keep shrinking.

 

Thanks,

Teo

 

Teodorico
Top achievements
Rank 1
 answered on 22 Jul 2009
2 answers
123 views

Hi,

I am having issues when a user clicks outside the RadWindow and then presses ESC. This closes the window and it is happening on IE 7/ IE 8 and FF 3.5.

I found this post: http://www.telerik.com/community/forums/aspnet-ajax/window/radwindow-issues-in-firefox-3-0-5.aspx

Which kind of help me but it does not work on FF since there is no access to window.event:

  

 

<script type="text/javascript">  
    TelerikTelerik.Web.UI.RadWindow.prototype.old_close = Telerik.Web.UI.RadWindow.prototype.close; // Store the original function  
    Telerik.Web.UI.RadWindow.prototype.close = function(e)  
    {  
        //Override close  
        var ESC = 27; // ESC Key code is 27  
        if (window.event && window.event.keyCode == ESC)  
        {  
            return true;  
        }  
        else this.old_close(); // Call original function  
    }  
</script> 
 


Should there be a property allowing to configure this behavior?
Any help would be appreciated.

 

Thanks.

Teodorico
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
192 views
Is there a way to remove some of the buttons on the title bar of a radWindow?  The only button I want is the Close button.  I have a small modal window and the title is getting cut off because of the extra buttons (Pin-on, Reload, Minimize and Maximize) are there.

Thanks.

Steve
Steven Black
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
410 views
Hi,

I have a RadPanelBar on the MasterPage of my web application.  The PanelBar is used as the menu bar. When the user clicks on one of the items, they are redirected to another web page.  Three of these links point to the same page, but different labels etc should be displayed, depending on which PanelBar item was clicked.

My problem is that I need to be able to determine which item was selected in order to properly set the labels.  I have tried using the RadPanelBar.SelectedItem property, but it is null. 

Any ideas?
Mel Lysyk
Top achievements
Rank 1
 answered on 21 Jul 2009
6 answers
162 views

Hi,

I have got a parent page with a radgrid being updated using AJAX from a radwindow - as per the demo and advice here:

http://www.telerik.com/community/forums/aspnet-ajax/window/update-radgrid.aspx

However, although I can get this working fine with raw pages, it does not work when using Master Pages - this seems to be the case because ajaxmanagerproxy does not have ajaxRequest as one of its properties.

My master pages have the ajaxmanager in them and content pages then use the proxy. How should I get a radgrid to update from a radwindow using ajax when using masterpages (at least for the parent page)?
 
Many thanks,
Matt

p.s. I think there should definately be a proper demo example for this scenario as "real" projects will use master pages - if there is already, I couldn't find it.

Adam Hubble
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
171 views

I need to add the number of records selected for deletion to the confirm dialogue box.

I have a RadGrid with a programmatically added GridClientSelectColumn (for the checkboxes for each row in the grid) and GridCommandItem that is a linkbutton with text = "Delete Selected". What I like to be able to do is have a confirmation dialog box appear with the number of records the client as has selected to delete.

protected

 

void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)

 

{

    if

 

(e.Item is GridCommandItem)

 

    {

 

        LinkButton Delete = e.Item.FindControl("btnDeleteSelected") as LinkButton;

 

 

        string js = null;

 

        js =

"javascript:return confirm('Do you want to DELETE ";

 

        js = js + RadGrid1.SelectedIndexes.Count +

" record(s)?')";

 

        Delete.Attributes[

"onclick"] = js;

 

    }

}

I have tried the above in the code behind but the RadGrid1.SelectedIndexes.Count is always 0.

I realize this maybe because the ItemCreated event is triggered before the SelectedIndexChanged event.

On server selection from Select/Deselect GridButtonColumn/Auto Postback on row click:

 

For each Item in grid:

 

    ItemCreated 

 

Page.Load

 

ItemCommand

 

SelectedIndexChanged

 

Other postback events

 

Page.PreRender

 

So, is there anyway I can get the count of the selected records and pass it to the confirm javascript when I click on my Delet Selected link button??

Thanks in advance for your advice,

cathy

Cathy
Top achievements
Rank 1
 answered on 21 Jul 2009
1 answer
151 views
Hi all,

I am stuck with an issue from a couple of days. any help will be highly appreciated. I am using Telerik 2009 Ajax Version and facing 2 issues with that. let me explain One by One

1) my first problem is that i am binding  the Radgrid with a direct datasource and have not taken any databound column. in that Grid i have a sub grid(Group panel) and a further group panel. let me make it more clear. I am binding a grid that have Call Details like(Select * from Call Table) and putting this in a Dataset and passed that dataset to the Radgrid. In that Grid if a user clicks on a particular call the   corresponding tasks are binded and that is done with the same databinding. and on selecting the task, the actions will be shown in the task. I am Binding the Call Grid and the task Grid on the page load only and i have taken Bound Columns for Task Grid.. this can be made clear from the following HTML:

 <telerik:RadGrid ID="GrdAddSerach" runat="server" AllowPaging="True" Font-Names="Verdana"
EnableEmbeddedSkins="false" BorderColor="Silver" BorderStyle="None" Skin=""
BorderWidth="1px" GridLines="Both" EnableTheming="true"
AllowSorting="True" PageSize="14" AllowFilteringByColumn="true" AutoGenerateColumns="false"
GroupPanel-Height="20px" GroupPanel-Font-Bold="false" Width="100%"
ShowGroupPanel="True">

<MasterTableView DataKeyNames="CALLNO,COMPID" HierarchyLoadMode="Client">
<telerik:GridTableView DataMember="Tasks" DataKeyNames="TM_NU9_Call_No_FK,TM_NU9_Comp_ID_FK,TM_NU9_Task_no_PK"
                                                                                NoDetailRecordsText="No Tasks available for this call" ShowHeadersWhenNoRecords="false" AllowFilteringByColumn="false" AutoGenerateColumns="false" HierarchyLoadMode="ServerOnDemand" AllowPaging="true" PageSize="10" CellPadding="0" CellSpacing="0" BorderStyle="Solid" BorderWidth="1" BorderColor="#8FADD5">


  <DetailTables>
                                                                                    <telerik:GridTableView DataMember="TaskActions" DataKeyNames="AM_NU9_Comp_ID_FK,AM_NU9_Call_Number,AM_NU9_Task_Number,AM_NU9_Action_Number"
                                                                                       AutoGenerateColumns="false" AllowFilteringByColumn="false" ShowHeadersWhenNoRecords="false"
                                                                                        NoDetailRecordsText="No Actions available for this Task" AllowPaging="true" PageSize="10" BorderWidth="1" BorderColor="#8FADD5">
                                                                                        <CommandItemSettings AddNewRecordImageUrl="AddRecord.gif"
                                                                                            RefreshImageUrl="Refresh.gif" />
                                                                                        <Columns>
                                                                                            <telerik:GridBoundColumn DataField="AM_NU9_Action_Number" DataType="System.Int32"
                                                                                                HeaderText="Action No" ReadOnly="True" SortExpression="AM_NU9_Action_Number"
                                                                                                UniqueName="AM_NU9_Action_Number" FilterListOptions="VaryByDataType" AutoPostBackOnFilter="true"
                                                                                                CurrentFilterFunction="EqualTo">
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="AM_VC_2000_Description" DataType="System.String"
                                                                                                HeaderText="Description" ReadOnly="True" SortExpression="AM_VC_2000_Description"
                                                                                                UniqueName="AM_VC_2000_Description" AllowFiltering="true" CurrentFilterFunction="Contains" ItemStyle-Width="150">
                                                                                                <ItemStyle Width="150px" />
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="UM_VC50_UserID" DataType="System.Int32" HeaderText="ActionOwner"
                                                                                                ReadOnly="True" SortExpression="UM_VC50_UserID" UniqueName="UM_VC50_UserID" AutoPostBackOnFilter="true"
                                                                                                CurrentFilterFunction="Contains">
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="AM_DT8_Action_Date" DataType="System.DateTime"
                                                                                                HeaderText="Action Date" ReadOnly="True" SortExpression="AM_DT8_Action_Date"
                                                                                                UniqueName="AM_DT8_Action_Date">
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="AM_FL8_Used_Hr" DataType="System.DateTime" HeaderText="Action hrs"
                                                                                                ReadOnly="True" SortExpression="AM_FL8_Used_Hr" UniqueName="AM_FL8_Used_Hr">
                                                                                            </telerik:GridBoundColumn>
                                                                                        </Columns>
                                                                                        <EditFormSettings>
                                                                                            <PopUpSettings ScrollBars="None"></PopUpSettings>
                                                                                            <%--<EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif"
                                                                                                InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">
                                                                                            </EditColumn>--%><EditColumn CancelImageUrl="Cancel.gif"
                                                                                                EditImageUrl="Edit.gif" FilterImageUrl="Filter.gif" InsertImageUrl="Update.gif"
                                                                                                SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"
                                                                                                UpdateImageUrl="Update.gif">
                                                                                            </EditColumn>
                                                                                        </EditFormSettings>
                                                                                        <%--<PagerStyle FirstPageImageUrl="PagingFirst.gif"
                                                                                            LastPageImageUrl="PagingLast.gif" NextPageImageUrl="PagingNext.gif"
                                                                                            PrevPageImageUrl="PagingPrev.gif" />--%>
                                                                                    </telerik:GridTableView>
                                                                                </DetailTables>
                                                                                <Columns>
                                                                                    <telerik:GridBoundColumn DataField="TM_NU9_Call_No_FK" DataType="System.Int32" HeaderText="Call No"
                                                                                        Visible="false" ReadOnly="True" SortExpression="TM_NU9_Call_No_FK" UniqueName="TM_NU9_Call_No_FK"
                                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo"
                                                                                        FilterListOptions="VaryByDataType" >
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridBoundColumn DataField="TM_NU9_Comp_ID_FK" DataType="System.Decimal"
                                                                                        HeaderText="Comp Id" ReadOnly="True" SortExpression="TM_NU9_Comp_ID_FK" UniqueName="TM_NU9_Comp_ID_FK"
                                                                                        Visible="false" FilterListOptions="VaryByDataType">
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridBoundColumn DataField="TM_NU9_Task_no_PK" DataType="System.String" HeaderText="TaskNo"
                                                                                        ReadOnly="True" SortExpression="TM_NU9_Task_no_PK" UniqueName="TM_NU9_Task_no_PK"
                                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" FilterListOptions="VaryByDataType" ItemStyle-Width="20px">
                                                                                        <ItemStyle Width="20px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                   
                                                                                    <telerik:GridBoundColumn DataField="UM_VC50_UserID" DataType="System.Int32" HeaderText="TaskOwner"
                                                                                        ReadOnly="True" SortExpression="UM_VC50_UserID" UniqueName="UM_VC50_UserID" AutoPostBackOnFilter="true"
                                                                                        CurrentFilterFunction="Contains" FilterListOptions="VaryByDataType" ItemStyle-Width="70">
                                                                                        <ItemStyle Width="70px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridBoundColumn DataField="TM_VC50_Deve_status" DataType="System.Int32"
                                                                                        HeaderText="TaskStatus" ReadOnly="True" SortExpression="TM_VC50_Deve_status"
                                                                                        UniqueName="TM_VC50_Deve_status" ItemStyle-Wrap="true" FilterListOptions="VaryByDataType"  ItemStyle-Width="60">
                                                                                        <ItemStyle Width="60px" Wrap="True" />
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridBoundColumn DataField="TM_VC1000_Subtsk_Desc" DataType="System.Int32"
                                                                                        HeaderText="TaskDesc" ReadOnly="True" SortExpression="TM_VC1000_Subtsk_Desc"
                                                                                        UniqueName="TM_VC1000_Subtsk_Desc" FilterListOptions="VaryByDataType" CurrentFilterFunction="Contains"  ItemStyle-Width="190">
                                                                                        <ItemStyle Width="190px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridBoundColumn DataField="TM_VC8_task_type" DataType="System.Int32" HeaderText="TType"
                                                                                        ReadOnly="True" SortExpression="TM_VC8_task_type" UniqueName="TM_VC8_task_type"  ItemStyle-Width="60">
                                                                                        <ItemStyle Width="60px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                     <telerik:GridBoundColumn DataField="EST_HOURS" DataType="System.Int32" HeaderText="EST_HOURS"
                                                                                        ReadOnly="True" SortExpression="EST_HOURS" UniqueName="EST_HOURS"  ItemStyle-Width="60">
                                                                                         <ItemStyle Width="60px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                     <telerik:GridBoundColumn DataField="ACTUAL_HOURS" DataType="System.Int32" HeaderText="ACTUAL_HOURS"
                                                                                        ReadOnly="True" SortExpression="ACTUAL_HOURS" UniqueName="ACTUAL_HOURS"  ItemStyle-Width="60">
                                                                                         <ItemStyle Width="60px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                     <telerik:GridBoundColumn DataField="EST_CLOSE_DATE" DataType="System.DateTime" HeaderText="EST CLOSE DATE"
                                                                                        ReadOnly="True" SortExpression="EST_CLOSE_DATE" UniqueName="EST_CLOSE_DATE"  ItemStyle-Width="75">
                                                                                         <ItemStyle Width="75px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                     <telerik:GridBoundColumn DataField="ACT_CLOSE_DATE" DataType="System.DateTime" HeaderText="ACT CLOSE DATE"
                                                                                        ReadOnly="True" SortExpression="ACT_CLOSE_DATE" UniqueName="ACT_CLOSE_DATE"  ItemStyle-Width="75">
                                                                                         <ItemStyle Width="75px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                     <telerik:GridBoundColumn DataField="CALCULATE_HOURS" DataType="System.Int32" HeaderText="% HOURS Completed"
                                                                                        ReadOnly="True" SortExpression="CALCULATE_HOURS" UniqueName="CALCULATE_HOURS"  ItemStyle-Width="60">
                                                                                         <ItemStyle Width="60px" />
                                                                                    </telerik:GridBoundColumn>
                                                                                </Columns>
                                                                                <CommandItemSettings AddNewRecordImageUrl="AddRecord.gif"
                                                                                    RefreshImageUrl="Refresh.gif" />
                                                                                <ExpandCollapseColumn Visible="true" Resizable="False">
                                                                                    <HeaderStyle Width="20px"></HeaderStyle>
                                                                                </ExpandCollapseColumn>
                                                                                <EditFormSettings>
                                                                                    <PopUpSettings ScrollBars="None"></PopUpSettings>
                                                                                   <%-- <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif"
                                                                                        InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">
                                                                                    </EditColumn>--%><EditColumn CancelImageUrl="Cancel.gif"
                                                                                        EditImageUrl="Edit.gif" FilterImageUrl="Filter.gif" InsertImageUrl="Update.gif"
                                                                                        SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"
                                                                                        UpdateImageUrl="Update.gif">
                                                                                    </EditColumn>
                                                                                </EditFormSettings>
                                                                               <%-- <PagerStyle FirstPageImageUrl="PagingFirst.gif"
                                                                                    LastPageImageUrl="PagingLast.gif" NextPageImageUrl="PagingNext.gif"
                                                                                    PrevPageImageUrl="PagingPrev.gif" />--%>
                                                                            </telerik:GridTableView>
                                                                        </DetailTables>
                                                                        <Columns>

 </MasterTableView>
</telerik:RadGrid>
 
The problem is i want to find the Rows of the task Grid table and want to change the rows color on specific conditions,how can i find it. i am not getting the row count. Please help me...



2) I dont want the filter Icon with the Filter Buttons, i have made the allowfilteringby column as true but the issue is i am binding the grid with dataset Directly not with Databound Columns therefore i am not able to add condition "ShowFilteringColumn" as False.. Please help me Regarding this issue also.. I will be really thankful to you..

THere is one more issue. i am not using any skin file and taking skin="" but in the filterMenu i am using the skins and i have made the necessary conditions to true but now the skin is not being loaded. Please Help me in either way ie either hiding the filter button or showing the skin with filter menu

Pavlina
Telerik team
 answered on 21 Jul 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?