Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
320 views
It took me a bit to figure this one out so I'd figured I'd post my solution. If anybody knows of an easier way please update.

I basically just wanted to get the filter text typed into a RadComboBox if the form was posted without a selection being made with the filter text still in the box.

If you grab the client state of the posted RadComboBox, then deserialize the JSON into an object you can grab the text:

  public class comboBoxClientSate {
    public string[] logEntries { get; set; }
    public string value { get; set; }
    public string text { get; set; }
    public bool enabled { get; set; }
    public string[] checkedIndices { get; set; }
    public bool checkedItemsTextOverflows { get; set; }
  }
 
String clientState = Request.Form[(ComboBoxID.ClientID + "_ClientState"];
comboBoxClientSate ComboBoxIDClientState = new JavaScriptSerializer().Deserialize<comboBoxClientSate>(clientState);
 
 //this should be the entered filter text
ComboBoxIDClientState .text


James
Dimitar Terziev
Telerik team
 answered on 30 Apr 2013
5 answers
207 views
In this thread, some sample code was given to have a "show all" option in the page size dropdown. (AllPaging.zip). To reproduce the error:

1. Select "All" from the page size dropdown.
2. Click on either the "Next Page" or "Last Page" button to the left of the page size dropdown.
3. You will get a System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

See attached.

The same issue is happening in our production website where we are using this same code. Please advise.
Daniel
Telerik team
 answered on 30 Apr 2013
3 answers
82 views
Hello

I have a radgrid with 20 identical columns and approximately 100 columns

I resumed  the test " Grid - Customer with Edict Batch Server Update " which works very well,

The fuction $addHandler(cell, "dblclick", Function.createDelegate(cell, ShowColumnEditor)); for each cell take a lot of time



Furthermore I am obliged to pass on every cell  to initialize the combobox

     If TypeOf e.Item Is GridDataItem Then
            Dim dataBoundItem As GridDataItem = e.Item


            Dim dtCIntervention As New DataTable
            dtCIntervention = ViewState("cInterventions")

            Dim PeuID As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("PeuID")
            Dim numCol As Integer
            Dim dt As New DataTable
            dt = ViewState("Intervention")
            Dim ddl As New DropDownList

            For r As Int16 = 1 To 19
                ddl = CType(dataBoundItem.FindControl("ddlcInt" & r), DropDownList)
                ddl.DataTextField = "cIntID"
                ddl.DataValueField = "cIntID"
                ddl.DataSource = dtCIntervention
                ddl.DataBind()
            Next

Is it possible to add the handler at the same time ...

Thank you in advance for your answers

Anne
Angel Petrov
Telerik team
 answered on 30 Apr 2013
3 answers
141 views
Hi, I'm not sure if you're aware, but in IE8 under Windows 7, the "Default button" appears half way down the search input. The issue doesn't exist under IE9/10, Firefox or Webkit. A style override targeting only IE8 does the trick for the "Silk" skin.

.rsbIcon { margin-top: -19px !important; }

You can see it at the demo below. It also affects the search on the left in the green menu.

http://demos.telerik.com/aspnet-ajax/searchbox/examples/propertyexplorer/defaultcs.aspx

Daniel
Eirik H
Top achievements
Rank 2
 answered on 30 Apr 2013
3 answers
134 views
Hi,

I am trying to get monthly wise details from treeview.

1. I can able to bind the Treeview details, 
2. Once the user clicks the month , i need to show the monthly wise details on the Grid. 

I have tried to get the Grid from radtreenode, I failed. Please help me out from this

Please find the below code for your reference.

<telerik:RadTreeView ID="treeViewClientBudget" runat="server" OnNodeClick="treeViewClientBudget_NodeClick">
                        
                        
                        <Nodes>
                            
                            <telerik:RadTreeNode  Text="BudgetNode">
                                
                                <NodeTemplate>
                                    

                                    <telerik:RadGrid ID="grdBudgetDetail" Width="85%" BorderWidth="0" GridLines="None"
                                        runat="server"
                                        AutoGenerateColumns="False">
                                        <ClientSettings>
                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                        </ClientSettings>

                                        <MasterTableView DataKeyNames="Month,Year" HierarchyLoadMode="ServerOnDemand">



                                            <DetailTables>
                                                <telerik:GridTableView runat="server"
                                                    DataKeyNames="Month,Year,ClassificationId" Name="Classification">
                                                    <Columns>
                                                        <telerik:GridBoundColumn DataField="ClassificationName"
                                                            FilterControlAltText="Filter Division column" UniqueName="ClassificationName" HeaderText="Classification Name">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="ActualForecast"
                                                            HeaderText="Actual Forecast"
                                                            UniqueName="ActualForecast">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="BudgedForecast"
                                                            HeaderText="Budged Forecast"
                                                            UniqueName="BudgedForecast">
                                                        </telerik:GridBoundColumn>
                                                    </Columns>
                                                    <DetailTables>

                                                        <telerik:GridTableView runat="server" Name="Vendor"
                                                            DataKeyNames="Month,Year,ClassificationId,VendorId">

                                                            <Columns>

                                                                <telerik:GridBoundColumn DataField="VendorName"
                                                                    FilterControlAltText="Filter Division column" UniqueName="VendorName" HeaderText="Vendor Name">
                                                                </telerik:GridBoundColumn>

                                                                <telerik:GridBoundColumn DataField="ActualForecast"
                                                                    HeaderText="Actual Forecast"
                                                                    UniqueName="ActualForecast">
                                                                </telerik:GridBoundColumn>

                                                                <telerik:GridBoundColumn DataField="BudgedForecast"
                                                                    HeaderText="Budged Forecast"
                                                                    UniqueName="BudgedForecast">
                                                                </telerik:GridBoundColumn>

                                                            </Columns>
                                                        </telerik:GridTableView>
                                                    </DetailTables>
                                                </telerik:GridTableView>

                                            </DetailTables>

                                            <Columns>
                                                <telerik:GridBoundColumn DataField="Month" FilterControlAltText="Filter 

Division column"
                                                    HeaderText="Month">
                                                </telerik:GridBoundColumn>

                                                <telerik:GridBoundColumn DataField="Year" FilterControlAltText="Filter 

Division column"
                                                    HeaderText="Year">
                                                </telerik:GridBoundColumn>

                                                <telerik:GridBoundColumn DataField="ActualForecast" HeaderText="Actual($) "
                                                    UniqueName="ActualForecast">
                                                </telerik:GridBoundColumn>

                                                <telerik:GridBoundColumn DataField="BudgedForecast" HeaderText="Budged ($)"
                                                    UniqueName="BudgedForecast">
                                                </telerik:GridBoundColumn>

                                            </Columns>

                                        </MasterTableView>

                                    </telerik:RadGrid>

                                </NodeTemplate>
                            </telerik:RadTreeNode>
                        </Nodes>
                        
                    </telerik:RadTreeView>


#.CS 

 protected void treeViewClientBudget_NodeClick(object sender, RadTreeNodeEventArgs e)
    {
        for (int i = 0; i < treeViewClientBudget.Nodes.Count; i++)
        {
            if (i==e.Node.Index)
            {
                RadTreeNode budgetNode = treeViewClientBudget.Nodes[i].TreeView.FindNodeByText("BudgetNode");
                   RadGrid grid = (RadGrid)treeViewClientBudget.Nodes[i].FindControl("grdBudgetDetail");
            }
         
          
        }


Regards,
Saravanan M
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2013
3 answers
126 views
Hi,

I would like to know the best way for this scenario.

I have 3 DropDown linked together dd1, dd2 and dd3 (Outside the radGrid). The dd3 DropDown is filtering the content of my RadGrid.

The RadGrid is filled from a SQLDataSource (select storedProc). The insert, delete and update operations are also storedProc in SQL Server.

When I do an insert (add new record), I need to provide the selected value of the dd3 for the insert operation. What's the best way to do that ? Do you guys have some examples or hints or suggestions ?

Thanks

Richard

Princy
Top achievements
Rank 2
 answered on 30 Apr 2013
4 answers
123 views
Hi,

I have a ajaxified RadGrid with custom user control as edit form. Edit mode is set to popup. My site runs on DotNetNuke. When I was using this in DNN 5.X with .net framework v3.5, it was working perfectly. We recently moved to 6.2.6 with .net framework v4.0. Now, when I click on edit button, popup opens up and everything is correctly loaded, but the edit popup is readonly along with the back page. I don't see any javascript errors to attribute this behaviour to it. Could any one please help with what might be causing the popup to be read only.

Thanks,
Ana
Tigger Tag
Top achievements
Rank 1
 answered on 29 Apr 2013
2 answers
89 views
I'm looking at your popup example at http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

I would like to implement a simple popup in this fashion.  As usual I'm not sure I completely understand it.

First of all, is this up to date?  (The link to the knowledge base article is dead and I was wondering about your use of a conventional asp.net DetailsView.)

Second, I'm not sure I understand the code in EditFormcs.aspx.cs.  I'm going to be using LinqToSQL, not a SQL Data Source.  Would putting the update call in the ItemCommand work as well?


Boris
Top achievements
Rank 1
 answered on 29 Apr 2013
1 answer
78 views
We are trying to upgrading to 2013.1.417.35 for many, many GridTableViews.  This is the source HTML for one column in a grid:

<telerik:GridTemplateColumn UniqueName="ShowButton"  HeaderText="" 
      <ItemTemplate>  
  <INPUT type="button" value="watch" name="btnWatch" onClick="window.location='Players/player.aspx?sh=<%# Eval( "ShowNum" ) %>&se=<%# Eval( "SeriesNum" ) %>'" class="smallwatchbutton">
      </ItemTemplate
      <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle"  ></ItemStyle>
</telerik:GridTemplateColumn>

Here is what gets rendered:
<input class="smallwatchbutton" type="button" onclick="window.location='Players/player.aspx?sh=233&se=52" id="btnWatch" value="watch">

It's hard to see, but the second single quote does not come down, and therefore, clicking on the button does nothing.  Tested on previous version of RadGrid and it works fine.  Why does it want to eat my quote.
Angel Petrov
Telerik team
 answered on 29 Apr 2013
2 answers
116 views
Hi,

I've recently had the misfortune to use IE10 (have to still use if on the dev PC).  I've noticed that the scroll bars get converted from the prior attractive ones to ugly (understatement) Metro based bars.  

How do you get the form decorator to override the IE10 bars?

Even better is there a way to disable the IE10 rendering in code?

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 29 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?