Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
    I'm getting a RadGrid paging js issue when I click on "Next".  It pages for the 1st click but sequently it freezes.  Thanks for the help.  This is the js error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)
Timestamp: Wed, 4 Aug 2010 02:18:42 UTC

Message: Invalid argument.
Line: 6
Char: 36759
Code: 0
URI: http://localhost/testapp/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=testappMaster_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.713.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7302be66-e7a1-4bc1-8280-71f03d66eba0%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3a4cacbc31%3a58366029%3ae330518b%3ac8618e41%3ae4f8f289%3ab7778d6c

Pavel
Telerik team
 answered on 05 Aug 2010
1 answer
69 views
Hello Telerik Support,

I have a problem with a RadPanelItem dynamically created and added to a RadPanelBar created in the design mode, because after postback the RadPanelItem is not in the right placed inside the RadPanelBar. I have attached a screenshot here for you to visualize it.

I have already browsed through your forums but i could not find the same problem I am experiencing right now. I am hoping for your reply soon.

Thanks a lot.

More power to your company.

Kamen Bundev
Telerik team
 answered on 05 Aug 2010
1 answer
142 views
Is there a way of set some "PageSize" property according the number of "Groups" in a RadGrid with grouping?

Regards!
Nikolay Rusev
Telerik team
 answered on 05 Aug 2010
1 answer
112 views
I would like to have the following style as shown in the image attached.How can i do that?And i need the dropdowncombo to have backColor=#526b75
Kamen Bundev
Telerik team
 answered on 05 Aug 2010
5 answers
130 views
Hi,

I have bound five columns to a telerik grid and the last column is in "InPlace" edit mode.
I have also enabled paging (GridPagerMode.NextPrevAndNumeric).
When the grid is loaded for the first time, the last column is displayed in edit mode.
But when I click on 2nd page, last column is also displayed in non-editable mode like other columns.

How can I make sure the last column is always displayed in edit mode (InPlace) ? Please suggest.
Your help is very much appreciated.

//Here is my grid configuration method
private void ConfigureGrid()
    {
  
        OrderTypeRankingGrid.AddNeedDataSourceEventHandler(NeedDataSource); 
        OrderTypeRankingGrid.AddGridCommandEventHandler(DataGrid_ItemCommand); 
         
        OrderTypeRankingGrid.AllowColumnsReorder = false;
           
        OrderTypeRankingGrid.GridHeaderText = "Order Type Ranking"; 
        var masterView = OrderTypeRankingGrid.ConfigureMasterTableView("vDivisionOrderTypeRanking", new string[] { "DivisionOrderTypeRankId","CategoryCode", "PurposeCode", "ReasonCode", "ReasonDescription"});
        masterView.AllowFilteringByColumn = true;
        masterView.AllowSorting = true;
        masterView.FullEditMode = true;
        masterView.EditMode = GridEditMode.InPlace;
        masterView.EnableShowHideColumns = true;
        masterView.SetPaging(GridPagerMode.NextPrevAndNumeric);
        masterView.GridTableView.ShowHeader = true;
        masterView.ShowHeader = true;
        masterView.ShowFooter = true;
        masterView.ShowHeadersWhenNoRecords = true;
        masterView.AllowPaging = true;
          
         
          
        masterView.AddNgmCommandButton(NgmButtonType.Save, "btnSave", null, null, null, Unit.Pixel(50));
        masterView.AddNgmCommandButton(NgmButtonType.Cancel, null, null, null, null, Unit.Pixel(50));
          
        masterView.CommandItemDisplay = GridCommandItemDisplay.Bottom;
  
          
        if (!IsPostBack)  //must check for postback; otherwise, columns will be duplicated
        {
  
  
            masterView.AddBoundColumn("CategoryCode", "Category Code", "CategoryCode", true, false, true, Unit.Percentage(7.0));
            masterView.AddBoundColumn("PurposeCode", "Purpose Code", "PurposeCode", true, false, true, Unit.Percentage(7.0));
            masterView.AddBoundColumn("ReasonCode", "Reason Code", "ReasonCode", true, false, true, Unit.Percentage(7.0));
            masterView.AddBoundColumn("ReasonDescription", "Reason Description", "ReasonDescription", true, false, true, Unit.Percentage(7.0));
            masterView.AddBoundColumn("OrderTypeRank", "Rank", "OrderTypeRank", false, false, true, Unit.Percentage(7.0));
  
        }
  
          
    }
  
//Here is the NeedDataSource method
  
    protected void NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        if (IsPostBack)
        {
  
            if (!e.IsFromDetailTable && (this.productDivision == 1 || this.productDivision == 2))
            {
                 
                IDivisionOrderTypeRankService divisionOrderTypeRankServiceAgent = null;
                divisionOrderTypeRankServiceAgent = (IDivisionOrderTypeRankService)ContextRegistry.GetContext().GetObject("DivisionOrderTypeRankServiceAgent");
                IList<DivisionOrderTypeRankDTO> divisionOrderTypeRankDTOs = divisionOrderTypeRankServiceAgent.GetDivisionOrderTypeRankByDivision(productDivision);
                OrderTypeRankingGrid.DataSource = divisionOrderTypeRankDTOs;
                  
                  
            }
        }
    }
Radoslav
Telerik team
 answered on 05 Aug 2010
3 answers
157 views
Hi Telerik Team,

                       I have used radconfirm in my application. Right now when that confirm box appears the system doesn't produce any alert tones similar to a simple javascript alert or confirm. The end user is very insisting on getting notified when this boxes appear. Can you help in this regards, is there any way?.

i have opened the radconfirm by this script,

radconfirm(confirmString, confirmCallBackFn, 400, 150, "", "Window Title");

Regards,
Saravanan K
Georgi Tunev
Telerik team
 answered on 05 Aug 2010
1 answer
78 views
Hai,
      I Call a rad window on link button, then close it, again calling the Radwindow showing script error says that 

 Two components with the same id 'ctl00_CphMaster_RadPopupWindow_C_rgProduct' can't be added to the application.

please help me its very urgent............
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2010
1 answer
267 views
I've been searching on here for a little bit and haven't been able to find anything to something that seems like it should be very simple.

I have a RadGrid with an edit column. I use a template for the edit form which is just a standard html table with some labels/text boxes in it. When the user clicks the submit button I want to get at the text boxes that the user is currently modifying.

<telerik:RadGrid ID="rgdTemp" runat="server"
        AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" GridLines="None"
        onitemcommand="rgdTemp_ItemCommand"
        onneeddatasource="rgdTemp_NeedDataSource" >
        <MasterTableView>
            <Columns>
                <telerik:GridBoundColumn UniqueName="FirstName" DataField="FirstName" HeaderText="First Name" />
                <telerik:GridBoundColumn UniqueName="LastName" DataField="LastName" HeaderText="Last Name" />
                <telerik:GridEditCommandColumn EditText="Add Second Voucher" ButtonType="PushButton" />
            </Columns>
            <EditFormSettings EditFormType="Template">
                <FormTemplate>
                    <table>
                        <tr>
                            <td>
                                First Name:
                            </td>
                            <td>
                                <asp:TextBox ID="txtFirstName" runat="server" ReadOnly="true" Text='<%# Bind( "FirstName" ) %>'/>                    
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Last Name:
                            </td>
                            <td>
                                <asp:TextBox ID="txtLastName" runat="server" ReadOnly="true" Text='<%# Bind( "LastName" ) %>'/>                  
                            </td>
                        </tr>
                        <tr>
                            <td>
                                R:
                            </td>
                            <td>
                                <asp:TextBox ID="txtR" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                P:
                            </td>
                            <td>
                                <asp:TextBox ID="txtP" runat="server" Text="0" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnSubmit" runat="server" Text='<%# "Insert" %>'
                                        runat="server" CommandName='<%# "PerformInsert" %>'>
                                    </asp:Button>
                            </td>
                            <td>
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
            <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
 
            <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
        </MasterTableView>
    </telerik:RadGrid>


The insert button really could just be a button that points to the code behind normally, just was something I was playing with.

Thanks
Princy
Top achievements
Rank 2
 answered on 05 Aug 2010
3 answers
84 views
Hi Friends,

                    I have a dynamically created RadGrid in Page1.aspx.My problem is when i go to another page Page2.aspx
and then coming back to Page1.aspx ,i loss my dynamically created datas in RadGrid.I  use Page.Redirect method to navigate to an another page.Its possible to store DataTable of RadGrid in Session  ,but i have large amount of datas.So storing in Session is not the correct way i think...Is there any way to store or not lossing datas while redirection.plz help me out.

Regards Titti.
TSM
Top achievements
Rank 1
 answered on 05 Aug 2010
2 answers
235 views
Hi guys,

I have an issue with setting the format of label and datepicker inside grid. I want to set "lblGridCreatedDate" and "lblGridCreatedDate" to have dd/MM/yyyy format in code behind. How can I do that?

Here is my code:
<telerik:GridTemplateColumn DataField="CreatedDate" HeaderText="Date" UniqueName="CreatedDate">
   <ItemTemplate>
       <asp:Label runat="server" ID="lblGridCreatedDate" Text='<%# Eval("CreatedDate") %>'></asp:Label>
   </ItemTemplate>
   <EditItemTemplate> 
       <telerik:RadDatePicker runat="server" ID="dtGridCreatedDate" Text='<%# Eval("CreatedDate") %>'></telerik:RadDatePicker>
    </EditItemTemplate>
</telerik:GridTemplateColumn>

Thank you

AGT
Andy Taslim
Top achievements
Rank 1
 answered on 05 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?