Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views
I am trying to update a list box on the parent when a radwindow closes.  The listbox is populated from a database in code behind.  Actuallly happens on a dropdown_selected index change event.  Just want to load the listobx with the new data when the user closes the radwindow.

One more think I have an update panel and when I tried to ues a RadAjaxManager they clashed.
Eric Klein
Top achievements
Rank 1
 answered on 15 Mar 2010
1 answer
147 views

H! there

I wanted to know some details about telerik controls with respect to telerki Salesdshaboard.

I have seen two salesdashboard one made using ASP.NET, AJAX Rad Controls, Silverlight Rad Controls and OpenAccessORM.
and other using Silverlight Rad Controls only. I Have gont through both telerik salesboard.

The salesdashboard made in ASP.NET, AJAX Rad Controls, Silverlight Rad Controls and OpenAccessORMhas more appealing and detailed UI compare to one made in Silverlight. 

I want to know can i achieve the same level of customization using SilverlighRadControls only.

What is the difference in two salesboard? does that give more performance combining all three  ASP.NET, AJAX Rad Controls, Silverlight Rad Controls and OpenAccessORM.

what is the role of OpenAccessORM?  Can i achive the same UI using silverlight rad controls instead of combining all three. The salesboard made in silverlight was not so appealing compare to the one made in using ASP.NET, AJAX Rad Controls, Silverlight Rad Controls and OpenAccessORM.


Please do reoply me mentioning all details asap.

Thank you

Regards
Vijay Gaur
Tihomir Petkov
Telerik team
 answered on 15 Mar 2010
3 answers
189 views
The radEditor has a clientside api called setFocus, thats supposed to set focus to the control. I'm not much of a javascript programer, so I would like to make a function from serverside code with a parameter for the actuall radEditor control to set focus to this control.

On the serverside we could set the function by something like:

ClientScript.RegisterStartupScript(Me.GetType, "Key", sb.ToString)

Where the actual function is buildt with stringbuilder.

In the masterpage we have this function:

 

<script type="text/javascript" language ="javascript" > 
    function SetEditorFocus(id) {  
        var editor = document.getElementById(id);  
        editor.setFocus();  
        return true;  
    }  
</script> 
 

Is this function ok?

If it's ok, what to put into the stringbuilder to get this to work from serverside?

 

 

 

 

Rumen
Telerik team
 answered on 15 Mar 2010
1 answer
108 views
I have a radcombox and a span next to each other.  I want to set the style.display = "none" of sBtns when a certain item is selected in the combo box.  How do I access the span object in client side script?

                <telerik:radcombobox id="cboPortfolioView" runat="server" tabindex="1"   
                    onclientselectedindexchanged="SectorAcctTypeDisplay">  
                            </telerik:radcombobox> 
                <span id="sBtns" runat="server">  
                    <asp:RadioButton ID="radAll" runat="server" Checked="True" GroupName="SectorAcctType" 
                        Text="All" /> 
                    <asp:RadioButton ID="radAfs" GroupName="SectorAcctType" Text="AFS" runat="server" /> 
                    <asp:RadioButton ID="radHtm" GroupName="SectorAcctType" Text="HTM" runat="server" /> 
                </span> 

<script language="javascript" type="text/javascript">  
<!--  
    function SectorAcctTypeDisplay(sender, eventArgs) {  
        var item = eventArgs.get_item();  
        var val = item.get_value();  
        alert("val: " + val);  
 
        if (val == "0") {  
            sBtns.style.display = "none";  
        }  
    }  
-->  
</script> 


Thanks in advance.
Simon
Telerik team
 answered on 15 Mar 2010
3 answers
78 views
Hi,

I am facing a problem in paging. In my application , i have some dropdown controls and 1 command button. When i click on command button, it will search the records according to dropdown value  and display the result in radgrid. My problem is that suppose when i am on 3rd page index and then i click on search button, it dont go to first page index but it keeps the page index as 3 eventhough there are no records on 3rd page . i am setting the current page index of radgrid  as 0, but its not working at all. I am really stuck with this. Can you please help me ASAP.

Thanks,
Neha
Tsvetoslav
Telerik team
 answered on 15 Mar 2010
1 answer
134 views
I am using LoadOnDemand from a web service to populate a treeview. I am trying to provide functionality so the user can right-click a node and get a context menu to choose Add, Copy, Cut and Delete functionality to edit the tree. In a previous thread:

http://www.telerik.com/community/forums/aspnet-ajax/treeview/how-to-refresh-tree-when-node-is-added-using-webservice-method.aspx

Veronica was kind enough to point me to the technique of collapsing a node, clearing its children, setting its expand mode like this "Telerik.Web.UI.TreeNodeExpandMode.WebService", and then committing the change.

That is great. But, what event can I key on to run this code? All the events provided in the client side API happen BEFORE the edits are made (before the trip to the database) so, how can I wait until AFTER the node is pasted, deleted, or added (after the changes to the database) and THEN update the treeview to reflect the change.

I have been searching the documentation but, I haven't found any way of capturing the return from the server.

Thanks for whatever advice you can offer.

UPDATE: After further research...should I do my operation in reverse? Should I do all the edits on the client side (in the OnClientContextMenuItemClicked event, etc) and then have the server use the ClientOperations property to handle the edits that have just been made, and update the database? For some reason I feel more comfortable editing the database and then making sure the treeview in the browser updates to reflect the changes, in stead of visa versa but, I guess it is all the same in the end. [what if the database update fails for some reason? Then the client will be out of synch with the data.]
Roger
Top achievements
Rank 1
 answered on 15 Mar 2010
5 answers
596 views
I get the error "Cannot find column [their_qty]" when I added a GridCalculatedColumn to my grid.

Here is the stack trace shown:
 
[EvaluateException: Cannot find column [their_qty].]  
   System.Data.NameNode.Bind(DataTable table, List`1 list) +1188205  
   System.Data.DataExpression.Bind(DataTable table) +59  
   System.Data.DataColumn.SetTable(DataTable table) +4828348  
   System.Data.DataColumnCollection.BaseAdd(DataColumn column) +272  
   System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column) +78  
   System.Data.DataColumnCollection.Add(DataColumn column) +8  
   Telerik.Web.UI.GridDataTableFromEnumerable.GetColumnsToUse() +2004  
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1028  
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +55  
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +40  
   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31  
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +222  
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +155  
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +556  
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +219  
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73  
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57  
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114  
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31  
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142  
   Telerik.Web.UI.GridTableView.PerformSelect() +28  
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73  
   Telerik.Web.UI.GridTableView.DataBind() +354  
   Telerik.Web.UI.RadGrid.DataBind() +165  
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +3855  
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +175  
   System.Web.UI.Control.LoadRecursive() +50  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627  
   

If I can use a GridNumericColumn for the same data field without a problem, but the presence of this particular column in a calculation is objectionable.

Here is an extract of the RadGrid declaration:
      <telerik:RadGrid ID="rgrdReport" runat="server" GridLines="Vertical" Skin="Office2007" 
        AutoGenerateColumns="False" PageSize="25" EnableLinqExpressions="false">  
        <MasterTableView CommandItemSettings-ShowExportToWordButton="True" CommandItemSettings-ShowExportToPdfButton="True" 
          CommandItemSettings-ShowExportToExcelButton="True">  
          <CommandItemSettings ShowExportToExcelButton="True"   
            ShowExportToPdfButton="True" ShowExportToWordButton="True" /> 
          <Columns> 
            <telerik:GridNumericColumn UniqueName="column" HeaderText="Our Quantity" DataField="our_qty" DataFormatString="{0:N}" DataType="System.Decimal">  
                  <ItemStyle Width="80px" HorizontalAlign="Right" /> 
            </telerik:GridNumericColumn> 
            <telerik:GridNumericColumn UniqueName="column1" HeaderText="Our $" DataField="our_amount" DataFormatString="{0:C}" DataType="System.Decimal">  
                  <ItemStyle Width="80px" HorizontalAlign="Right" /> 
            </telerik:GridNumericColumn> 
            <telerik:GridNumericColumn UniqueName="column2" HeaderText="Their Quantity" DataField="their_qty" DataFormatString="{0:N}" DataType="System.Decimal">  
                  <ItemStyle Width="80px" HorizontalAlign="Right" /> 
            </telerik:GridNumericColumn> 
            <telerik:GridNumericColumn UniqueName="column3" HeaderText="Their $" DataField="their_amount" DataFormatString="{0:C}" DataType="System.Decimal">  
                  <ItemStyle Width="80px" HorizontalAlign="Right" /> 
            </telerik:GridNumericColumn> 
            <telerik:GridCalculatedColumn UniqueName="column4" HeaderText="Quantity Variance" DataFields="our_qty, their_qty" Expression="{1}-{0}">  
                  <ItemStyle Width="80px" HorizontalAlign="Right" /> 
            </telerik:GridCalculatedColumn> 
            <telerik:GridCalculatedColumn UniqueName="column5" HeaderText="$ Variance" DataFields="our_amount, their_amount" Expression="{1}-{0}">  
                  <ItemStyle Width="80px" HorizontalAlign="Right" /> 
            </telerik:GridCalculatedColumn> 
          </Columns> 
        </MasterTableView> 
        <ClientSettings AllowDragToGroup="False">  
          <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
        </ClientSettings> 
      </telerik:RadGrid> 
 

Remove "column4" and the grid displays fine.  How can [their_qty] be ok in column2 but not column4?
This is the second error I received with this grid, but a search of the forum and adding EnableLinqExpressions="false" to the defenition fixed the earlier error "DataBinding: 'System.Data.Common.DataRecordInternal' does not contain a property with the name 'column4Result'."

Thanks.
Tsvetoslav
Telerik team
 answered on 15 Mar 2010
2 answers
151 views
Hi

I have a user control Page which has insert form, all the controls are working fine except the radcontrols.
am i doing something wrong? or do i have to do extra work for it.

here is the code for RadControl on the userControl Page(ascx):
<telerik:RadComboBox ID="RadComboBox1" Runat="server"
                DataSourceID="SqlDataSource1"
                Text='<%# DataBinder.Eval( Container, "DataItem.CategoryName" ) %>' DataTextField="CategoryName"
                DataValueField="CategoryID" Width="160px" Skin="Sunset">
            </telerik:RadComboBox>

The Rad Control above populate the data correctly but does not bind it when update or insert.

Another Control which works fine:
<asp:TextBox id="TextBox3" runat="server"
Text='<%# DataBinder.Eval( Container, "DataItem.FullCode" ) %>' Width="200px"></asp:textbox>


i followed this example which is good, but i think Telerik should include ComboBox on it to show us how to do it;
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
grand lorie
Top achievements
Rank 1
 answered on 15 Mar 2010
1 answer
85 views
Are polygon shapes not recognized by the image map editor?

BR,
Marc
Rumen
Telerik team
 answered on 15 Mar 2010
2 answers
105 views
We have a page that has a RadGrid and an AjaxManager linked to it so that it looks seamless when they attempt to edit, add and delete rows in it. The grid loads with one row in it that has 2 time picker columns and 1 date picker column. When the user clicks edit to edit the row, the loading panel spins briefly, then freezes and IE starts using 100% of the thread. We've duplicated this in both IE 6 and 7, but haven't really tried any others yet.

Does anyone have any ideas as to what might be causing this?

Thanks,
Adam
Adam
Top achievements
Rank 1
 answered on 15 Mar 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?