Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
81 views
Hey, I need the following functionality, but I have no idea if it is possible on "legal" telerik way.

After clicking once on the row of the grid the row is in edit mode. I want to navigate through all editable fields which works fine out of the box. But after pressing tab in the last column I want to switch in the next row and setting the prior row in display again (but this isn't the problem). I tried the silverlight grid and there this functionaliy is implemented yet.
After some research I found out, that this might be a real challenge because I needs to override the browser tab-event.

Is there any "easy" approach?

Thanks and
Best regards 
Maria Ilieva
Telerik team
 answered on 23 Feb 2012
2 answers
199 views
Hi,
I want to open Radwindow on OnClientItemClicking event of Radmenu which works perfect for me, only issue is that i do not want to open every url on Radwindow on link that falls under Reports (Main Menu) should open in radwindow rest should is normal redirect.. i do not know how to achive this, i have attached sample code below, for your info i am binding Radmenu at runtime through code.

My menu structure is

Home     Reports           Admin
Report1
                Report2
                Report3
i want to open only report1/report2/report3 etc in radwindow.

function onClicking(sender, eventArgs) {
            var item = eventArgs.get_item();
            var navigateUrl = item.get_navigateUrl();
               if (navigateUrl && navigateUrl != "#") {
               radopen(null, "RadWindow1");
               eventArgs.set_cancel(true);
            }
             
        }
<telerik:RadMenu ID="RadMenu1" runat="server" Style="z-index: 4" EnableRoundedCorners="true"
                        EnableShadows="true" Skin="WebBlue" OnClientItemClicking="onClicking" />
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" >
                        <Windows>
                            <telerik:RadWindow ID="UserListDialog" runat="server" Title="Delivery details" Height="400px"
                                Width="600px" Left="400px" ReloadOnShow="true"  ShowContentDuringLoad="false"
                                Modal="true"/>
                        </Windows>
</telerik:RadWindowManager>


Abhishek
Top achievements
Rank 2
 answered on 23 Feb 2012
9 answers
151 views
Hi,

I am using radsheduler. and customizing advancedinsertTemplate and advancedEditTemplate. but the edit form creating it takes long time. i am using ajax. but when clikcing edit button the page has loaded. and masterpage loaded. after that form created. so it will take more than 12 seconds. but i want improve the performance. please let me know how to avoid masterpage load when form created.


Thanks in Advance.
Dhamu
Dhamodharan
Top achievements
Rank 1
 answered on 23 Feb 2012
0 answers
95 views
Hi,

I have a RadComboBox and 2 RadGrids - RadGrid1 and RadGrid2.
I have the following path of execution for populating RadGrid1 :
OnPreRender of RadComboBox -> If this is not a PostBoack, Do
[ Populate RadComboBox  -> Set a default value in it -> Pass that value to execute a stored procedure -> Equate the returned DataTable to RadGrid1.DataSource and call RadGrid1.Rebind() ]
In this way, I get the populated RadGrid1.

RadGrid2 gets populated by the following flow :
OnSelectIndexChanged on RadGrid1 -> [Get some DataKeyValue -> Pass it to an SP and execute it -> Equate the returned DataTable to RadGrid2.DataSource and call RadGrid2.Rebind() ]

Note, I haven't set any OnNeedDataSource event handler function for the above two grids. Alogwith this, I have customized my RadGrid1's filter menu items as described in one of the telerik demos. I have used OnFilterMenuShowing and OnClientShowing events of the RadGrid1 to do this. Also, I have a Default Filter set on RadGrid1 which only displays the records that are having blank as the column value.

Now the problem arises, when I try to select No Filter for the same column in RadGrid1, a postback happens and the grid doesnot populates. Its probably because, when the above OnPreRender of ComboBox is called, RadGrid1 cannot get rebind because the logic is enclosed within a check for IsPostback flag. And also, I am not having the OnNeedDataSource event handler for the same. Reason for this is, everytime there is a postback, RadGrid1 is getting rebinded and as a large number(1000+) of records are being returned from the stored procedure, it slows down the application.

Is there a way to achieve this? Can we check the control id that has raised the PostBack event?
Please help.

Regards,
Anup
Anup
Top achievements
Rank 1
 asked on 23 Feb 2012
7 answers
272 views
The RadGrid FilterTemplate RadCombo SelectedIndexChanged not firing in the code below. Am I missing something?


<telerik:RadGrid ID="gridVers" runat="server"
AutoGenerateColumns="False"
OnItemDataBound="GridVers_ItemDataBound"
Width="960px" AllowSorting="True" 
 OnItemCommand="GridVers_ItemCommand" OnNeedDataSource="GridVers_NeedDataSource" EnableViewState="true" AllowFilteringByColumn="true" OnItemCreated="gridVers_OnItemCreated" OnSortCommand="GridVers_SortCommand"   GridLines="None" >
   <MasterTableView DataKeyNames="VerbatimId" TableLayout="Fixed" UseAllDataFields="true">
            <Columns>
            <telerik:GridBoundColumn UniqueName="VerbatimMarked" AllowFiltering="true" DataField="IsMarkedDisplay" HeaderText="Marked">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="50px" HorizontalAlign="Center" Font-Underline="true" />
                <FilterTemplate>
                <telerik:RadComboBox runat="server" Width="50px" ID="rcbFilterMarked"></telerik:RadComboBox>
                </FilterTemplate>
            </telerik:GridBoundColumn>
             
             <telerik:GridTemplateColumn  UniqueName="VerbatimId" AllowFiltering="true"  SortExpression="VerbatimId" HeaderStyle-Width="75px" HeaderText="ID" DataField="VerbatimId">      
             
                                <FilterTemplate>
                                <telerik:RadComboBox runat="server" Width="75px" ID="rcbFilterLinkId"></telerik:RadComboBox>
                                </FilterTemplate>
                                <ItemTemplate>
                                <asp:LinkButton ID="lnkVerbatim" style="text-decoration: underline;"  CommandName="DetailVerbatim" runat="server" Text='<%# Eval("VerbatimId")%>'>
                                </asp:LinkButton>
                                </ItemTemplate>
             </telerik:GridTemplateColumn
             <telerik:GridBoundColumn UniqueName="VerbatimText" AllowFiltering="true"
                    DataField="VerbatimText" HeaderText="Verbatim"
                    DataType="System.String" >
               <FilterTemplate>
                <asp:TextBox runat="server" ID="txtFilterText"></asp:TextBox>
               </FilterTemplate>    
                      
                </telerik:GridBoundColumn>
             <telerik:GridBoundColumn  UniqueName="Specialty" AllowFiltering="true"
                    HeaderStyle-Width="60px" DataField="Specialty" HeaderText="Spec"
                    DataType="System.String" >
                    <FilterTemplate>
                        <telerik:RadComboBox runat="server" Width="60px" ID="rcbFilterSpec"></telerik:RadComboBox>
                    </FilterTemplate>
                </telerik:GridBoundColumn>
             <telerik:GridBoundColumn  UniqueName="ContactDate" AllowFiltering="true"
                    HeaderStyle-Width="80px" DataField="ContactDate" HeaderText="DT"
                    DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" >
                    <FilterTemplate>
                        <telerik:RadComboBox runat="server" Width="80px" ID="rcbFilterContact"></telerik:RadComboBox>
                    </FilterTemplate>
                </telerik:GridBoundColumn>
                 
                 
             <telerik:GridBoundColumn  UniqueName="State" AllowFiltering="true"
                    HeaderStyle-Width="30px" DataField="State" HeaderText="State"
                    DataType="System.String"  >
                       <FilterTemplate>
                        <telerik:RadComboBox runat="server" Width="30px" ID="rcbFilterState" AutoPostBack="true"  OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged"></telerik:RadComboBox>
                    </FilterTemplate>
                      
                </telerik:GridBoundColumn>
            </Columns>
   </MasterTableView>        
    <ClientSettings EnableRowHoverStyle="true" >
        <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="True" />
        <ClientEvents OnGridCreated="GridCreated" />
         
    </ClientSettings>
   </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
3 answers
124 views
Hi Support ,

I'm using a rad grid in one of my business application , I can successfully show data in UI page (yes , I'm using simple asp.net application, no mvc/mvp pattern). In my certain Header column (for e.g. student name column, student address column etc......) I used Filter by using AllowFilteringByColumn="True"
1. now my first requirement is can I show in filter in textbox a default value like "--No Filter---" or "--Choose Filter ---" for user better understanding what they need to do with these filtering textboxes .

This is my First question , Hope can I able to explain , pl help me give your reply
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
4 answers
487 views
Hello All,
I have a RadGrid with a GridDropDownColumn. I want it contain a few item. this is my code:
code design:
            <Columns>

<telerik:GridDropDownColumn DataField="TinhTrang" UniqueName="clTinhTrang" HeaderText="Tình trạng">
                 </telerik:GridDropDownColumn>

   </Columns>
code behind: 
 ?????
 thanks all.
Tan
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
1 answer
137 views


Hi have included export to excel button in telerik grid. with below code export to excel is not working.. couldn't figure out whats the error
is..Help me out.
below is my code.  
<div>
        <telerik:RadGrid ID="rdGrdBudgetAssignment" runat="server" AllowPaging="true" AutoGenerateColumns="false"
            PageSize="15" GridLines="None" CssClass="radgrid" AllowFilteringByColumn="true"
            Width="100%" Skin="Office2007" OnPageIndexChanged="rdGrdBudgetAssignment_PageIndexChanged"
            OnItemCommand="rdGrdBudgetAssignment_ItemCommand">
            <clientsettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </clientsettings>
            <pagerstyle mode="NextPrevAndNumeric" />
            <exportsettings exportonlydata="false" ignorepaging="true" openinnewwindow="true"
                hidestructurecolumns="true">
            </exportsettings>
            <mastertableview allowpaging="true" allowfilteringbycolumn="true" commanditemdisplay="Top"
                width="100%">
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                <CommandItemSettings ExportToExcelText="Export To Excel" ShowExportToExcelButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false" />
               <%-- <CommandItemSettings ExportToExcelText="Export To Excel" ShowExportToExcelButton="true"
                    ShowAddNewRecordButton="false" ShowRefreshButton="false" /> --%>                 
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="Budget ID" UniqueName="BudgetID" DataField="budhdrtky"
                        Visible="true" ReadOnly="true">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkBtnBudgetId" runat="server" Text='<%#Eval("budhdrtky")%>'></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="130px" />
                        <ItemStyle Width="130px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn HeaderText="Product Level" DataField="prdlvldsc" UniqueName="ProductLevelDesc">
                        <HeaderStyle Width="140px" />
                        <ItemStyle Width="140px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Product" DataField="prdgrpcoddsc" UniqueName="Product">
                        <HeaderStyle Width="170px" />
                        <ItemStyle Width="170px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn Visible="true" UniqueName="imgbtnFirst">
                        <ItemTemplate>
                            <asp:ImageButton ID="imgbtnFirst" runat="server" OnClick="btnFirstOnClick" Width="15px"
                                Height="15px" ImageUrl='<%# Eval("stsflg").ToString() =="S" ? "../IMages/MoveDown.gif" :"../IMages/Cancel.gif"%>'
                                ToolTip='<%# Eval("stsflg").ToString() =="S" ? "Reject" :"Cancel"%>' />
                        </ItemTemplate>
                        <HeaderStyle Width="105px" />
                        <ItemStyle Width="105px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn Visible="true">
                       <ItemTemplate>
                            <asp:ImageButton ID="imgbtnSecond" runat="server" OnClick="btnSecondOnClick" Width="15px"
                                Height="15px" ImageUrl='<%# Eval("stsflg").ToString() =="S" ? "../IMages/MoveUp.gif" :"../IMages/Submit.gif"%>'
                                ToolTip='<%# Eval("stsflg").ToString() =="S" ? "Approve" :"Submit for Approval"%>' />
                        </ItemTemplate>
                        <HeaderStyle Width="105px" />
                        <ItemStyle Width="105px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn HeaderText="Year Sales" DataField="totsal" ItemStyle-HorizontalAlign="Right">
                        <HeaderStyle Width="140px" />
                        <ItemStyle Width="140px" />
                    </telerik:GridBoundColumn>
                </Columns>
            </mastertableview>
            <clientsettings allowcolumnsreorder="true" reordercolumnsonclient="true">
                <Resizing EnableRealTimeResize="true" AllowColumnResize="true" />
            </clientsettings>
        </telerik:RadGrid>
    </div>

Regards,
Akki
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
1 answer
151 views
Hello,

I am curious to know if I can have a "Delete" button in my <EditFormSettings> tag. Currently it is being displayed in the same line as my record. I am interested to have it displayed inside of the Edit panel, next to the Update and Cancel buttons. Attached is a screen shot of what I have...

Any direction on how I can achieve this is so appreciate it. I already spend a few days researchign for this in the web...

Thanks!!
Mariella.
 
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
3 answers
116 views
Hi,

Base on this post ; i able to draw the Base line like figure 1.0 below

Figure 1.0

Problem (Sale and SalesTarget In one column show like below figure: 1.1)

How can i integrate the saleAmount and the SaleTarget show like example below

Figure 1.1

Or Dynamic Draw the MarkZone in each column as SaleTarget like Figure 1.2 below

Figure 1.2

Regarding,
Tan
Tan
Top achievements
Rank 1
 answered on 23 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?