Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
169 views
Hi Telerik Team,


Good Morning.

I use two dropdownlists,multiple checkboxes are included in each dropdownlist, and second dropdownlist check box data must be changed accordingly to the selection of first dropdownlist check box data.


When I click frist dropdownlist and nothing do changes but second drop downlist selected data is missing although its checkboxes are still selected.


Please check my attached powerpoint.

Regards,
Aewin.



Hristo Valyavicharski
Telerik team
 answered on 30 Apr 2013
3 answers
210 views
Hi Peter,

One more for you to add to the list.  In the RadCombo there is a OnItemDataBound parameter.  Please add a OnNodeDataBound parameter to the DropDownTree control.

I'm going to be using these in a formview and as such the control isn't setup prior to runtime so for now I'm having to use AddHandler in the formview data bound event.

Many Thanks,

Jon
Jon
Top achievements
Rank 1
 answered on 30 Apr 2013
3 answers
105 views
I am experiencing a problem with RadGrids after exporting the grid information to Excel.  The problem is that after the export has taken place, the GridEditCommandColumn does not behave correctly.  I have placed a break in the code-behind for the grid in the OnItemCommand event, and I can see that when clicking the export button I see that the command name is ExportToExcel.  The export works correctly and the spreadsheet opens.  When I click edit in the GridEditCommandColumn, however, the command name in the OnItemCommand event is stil ExportToExcel.

Is there a step that I am missing?
Daniel
Telerik team
 answered on 30 Apr 2013
1 answer
338 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
227 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
94 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
152 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
141 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
139 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
133 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?