Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
186 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
401 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
159 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
165 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
146 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
1 answer
124 views
hi i m using rad telerik control i want to remove space in my child menu,the space is left side and right side.i m using skin file outlook.skin and css is menu.css in when child menu is load there  is space in left side and right side both
i want to remove that space how can i remove that.

Mr. Plinko
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
109 views
Hi,

I've a gridclientselct column in radgrid as one column. I need to put a alert message(in js) telling theuser to select atleast one row. I cannot allow the user to save (save button
) without select one row in radgrid. how do i do this. I'm using this in ascx with c#. Kindly let me know how to do this.
Thanks,
ZR
Ayesha
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
78 views
I am using the Q2 2009 version of the controls and want to expand a default menu (Item A) when the mouse moves off of a different top level menu item (Item B). Item B does not have any subitems, so OnClientItemClosing and OnClientItemClosed are not available to me.

I assigned a method to OnClientItemBlur, but this is never triggered. Do I need to do something else to enable this?

I have also tried this:

var menu = $find("<%=RadMenu.ClientID %>");
menu.add_itemBlur(OnClientItemBlurHandler);

but my handler is still not called.
TriZetto
Top achievements
Rank 1
 answered on 21 Jul 2009
0 answers
65 views
We have an app, we have Q2 09 version of controls. Check out: http://earthplat.com/epapp/help.aspx
 in IE, the "Options" Radmenu works like we want woohooo! BUT :-( look at it in FireFox, blaaaa... Any idea? help would be the bomb? thanks!

http://earthplat.com/epapp/help.aspx
Tim
Top achievements
Rank 1
 asked on 21 Jul 2009
3 answers
100 views
How do I get the count of records in code behind (C#) from a radgrid after applying a filter?

Thank you,
Dave
David
Top achievements
Rank 1
 answered on 21 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?