Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
81 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
137 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
133 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
117 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
121 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
87 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
77 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
113 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
1 answer
208 views
I am able to save data from the radEditor to my table in SQL but can't load data into the editor from the same table. What am I doing wrong?

Here's my code:

public

 

 

static DataView GetSparcHelpContent(string pagePath)

 

{

 

 

Database db = DatabaseFactory.CreateDatabase();

 

 

 

DataView dv = db.ExecuteDataSet("uspGetSparcHelpContent", pagePath).Tables[0].DefaultView;

 

 

 

return dv;
}

 

<

 

 

asp:ObjectDataSource ID="odsHelpContent" runat="server" TypeName="Wf.Sparc.DAL.DbAccess" SelectMethod="

 

GetSparcHelpContent

 

">

</

 

 

asp:ObjectDataSource>

 

<

 

 

asp:LinkButton ID="PageIns" runat="server" Text="View / Edit Help" Font-Underline="true"

 

 

 

toolTip="View more information related to this page" Visible="true" ></asp:LinkButton>

 

 

 

 

 

 

 

<asp:Panel ID="ModalPanel" runat="server" style="display:none; width:480px; height:530px; background-color:White;

 

 

 

border-width:2px; border-color:Black; border-style:solid; padding:20px;" DataSourceID="odsHelpContent" >

 

 

 

<asp:Button ID="OKButton" runat="server" Text="Close" ForeColor="Black" /> <br /><br />

 

 

 

 

 

 

 

<telerik:RadEditor ID="radBody" ToolbarMode="Default" ToolsFile="~/RadControls/ToolsFile.xml" runat="server"

 

 

 

ContentFilters="RemoveScripts" EditModes="All" Height="450" SkinID="RadEditorSkin" Visible="true"

 

 

 

Width="200" EnableResize="true" Content='<%# Bind("pageContent") %>'/>

 

 

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

 

 

//This script must be below the RadEditor declaration

 

 

 

 

 

 

 

//It displays the custom toolbar icon formatting FAQ

 

 

 

 

 

 

 

//It replaces embedded scripts from a previous version of Telerik RadEditor

 

 

 

 

 

Telerik.Web.UI.Editor.CommandList[

 

"FormattingFAQ"] = function (commandName, editor, args) {

 

 

 

var args = editor.get_html(true) //returns the HTML of the selection.

 

 

 

 

 

editor.showExternalDialog(

 

 

"/RadControls/FormattingFAQ.aspx",

 

args,

350,

250,

 

 

null,

 

 

 

null,

 

 

 

"Formatting FAQ",

 

 

 

true,

 

Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,

 

 

true,

 

 

 

true);

 

};

 

 

</script>

 

 

 

 

 

 

 

<br /><br />

 

 

 

 

 

 

 

<asp:Button ID="SaveButton" runat="server" Text="Save" ForeColor="Black" OnClientClick="needToConfirm = false;" OnClick="btnSave_Click" />

 

 

 

<asp:Button ID="CancelButton" runat="server" Text="Cancel" ForeColor="Black" /> <br /><br /> <br /><br />

 

 

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

 

 

<ajaxToolkit:ModalPopupExtender ID="mpePopup" runat="server" TargetControlId="PageIns" PopupControlID="ModalPanel"

 

 

 

CancelControlID="CancelButton" OkControlID="OKButton" X="1050" Y="50" Drag="true" PopupDragHandleControlID="ModalPanel"/>

 

protected

 

 

void btnSave_Click(object sender, EventArgs e)

 

{

 

 

string pagePath = System.Web.HttpContext.Current.Request.Path.ToString();

 

Wf.Sparc.DAL.

 

DbAccess.UpdSparcHelpContent("ins", pagePath, radBody.Content, int.Parse(Session["userid"].ToString()));

 

}

Rumen
Telerik team
 answered on 29 Apr 2013
1 answer
108 views
I have a support team of 10 members, My users should be able to block an appointment and they need not know who is the support person and how many support persons are there. I mean if any of the 10 members are free the slot should show free and if all the 10 members are booked for the time slot then it should show busy.

1. Can this be achieved in this control
2. In stead of day , weekly or monthly view, can we customize this to 2 weeks view
3. Suppose if I want my users be able to schedule only for 1 month in advance can I restrict it
Plamen
Telerik team
 answered on 29 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?