Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
174 views
After upgrading to 2010 Q1, I started getting these errors all over the applications, in all pages using the TabStrip control with MultiPage and TabViews:

Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'grPatients_ctl00_ctl27_mpPropertyGroups' can't be added to the application. 

The id varies depending on where the tabstrip is placed. The error comes on postbacks.
Yana
Telerik team
 answered on 12 Mar 2010
1 answer
139 views

I'm having a bit of trouble using the scrollIntoView() function of radtreenode and i think the problem is because the tree lives in a sliderpane.

I've also tried to use the SliderPane.scrollIntoView(object) by crawling up to the parent level (.parentNode.parentNode...), and invoking from there.
but keep getting "Type Mismatch", i think because this method does not accept a radtreenode as the target element.

 

 


I'm not sure what to do next.

Any ideas?

Thanks everyone for your help.

 

 

 

 

 

 

 

 

 

function rtvSurvey_ClientLoad(sender, eventArgs)   
{  
 var selectedNode = sender.get_selectedNode();  
 if (selectedNode)   
 {  
  selectedNode.scrollIntoView();  
 }  
}   
 

 

<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="800px" Width="100%" HeightOffset="3"    
        LiveResize="True">     
         <telerik:RadPane ID="RadPane1" runat="server" Scrolling="X" Width="22" Height="100%">     
            <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" ClickToOpen="false" DockedPaneId="RadSlidingPane1"    
                Height="100%" Width="22">     
                <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" BorderStyle="Solid" BorderWidth="3px"    
                    DockOnOpen="true" EnableEmbeddedBaseStylesheet="False" Height="100%" Title="My Title Goes Here"    
                    Width="300px">     
                    <telerik:RadTreeView ID="RadTreeView1" OnClientLoad="RadTreeView1_ClientLoad" runat="server" EnableDragAndDrop="False" EnableDragAndDropBetweenNodes="False"    
                        EnableViewState="true" OnClientContextMenuItemClicking="onClientContextMenuItemClicking"    
                        OnClientContextMenuShowing="onClientContextMenuShowing" OnClientNodeClicking="ClientNodeClicking"    
                        Visible="true" ShowLineImages="False">   
 

 

Veronica
Telerik team
 answered on 12 Mar 2010
1 answer
97 views
The first time pages load, I create a RadGrid (OnInit) and I set the columns width. When I do a web service request, the following method is executed after that request:

function OnSuccessfullyWebServiceRequest(res){ 
    var grid = GetGrid(); 
    if (res){ 
            var masterTable = grid.get_masterTableView(); 
            var columns = masterTable.get_columns(); 
            for(var i = 0; i<columns.length; i++){ 
                var columnName = columns[i].get_uniqueName(); 
                    if (res.indexOf(columnName) < 0){ 
                        columns[i].set_visible(false); 
                    } 
                    else
                        columns[i].set_visible(true); 
            } 
        } 
            masterTable.dataBind(); 
        } 

The problem is after the masterTable.dataBind(), the columns width are changing. Is there a way to keep the columns settings?

Thanks.

Princy
Top achievements
Rank 2
 answered on 12 Mar 2010
1 answer
84 views
Hi.

I have a panelbar in which I have put a combobox and a textbox. I cannot get my ajaxsettings/updatedcontrols to work when they are in the panelbar it works fine when im outside of the panelbar. Im sure its a simple configuratoin that i am missing

Shinu
Top achievements
Rank 2
 answered on 12 Mar 2010
3 answers
192 views
Hello,

for Firefox, Opera, Safari and Chrome the text color doesn't
change when disabling the component.

Is it possible to leave the text color of the disabled
ListBox unchanged also for Internet Explorer?

Thank you

Alberto 
Veselin Vasilev
Telerik team
 answered on 12 Mar 2010
1 answer
87 views
im wandering why ntext field from sql server isnt shown in bound column of data grid?

any1 know why?

and what should i do to make it visible?
Webster Velasco
Top achievements
Rank 2
 answered on 12 Mar 2010
1 answer
138 views
hello,

how to customize appointment height using css?

thanks
benjamin
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2010
7 answers
497 views
Hi all,

I've been stuck with this for some time now and am at my wits end to be honest. I'll try as best to describe the situation clearly.

I have a radgrid that's populated via pagemethods and ajax and all seems to work fine most of the time. I also use a treeview so that users can select various folders and upon clicking a foldername in the treeview, that in change re-populates the radgrid with items from that folder. This all works fine except for that when the radgrid is repopulated, I call another pagemethod that returns the count of items within the current datasource and updates the virtualcount of the radgrid. This works sporadically. As an example, if there are 4 folders to click on in the treeview, it will work when clicking on folder 2, not work on folder 3, work on folder 4, not work on folder 2 but then work again on folder 3? It's really strange. I've debugged as much as possible and the correct values are always returned by the pagemethid and set using the 'tableView.set_virtualItemCount(result);' function.

This is the update function that's called after every databind,


        function updateVirtualItemCount(result) {

            var tableView = $find("<%= gvWebcasts.ClientID %>").get_masterTableView();
            tableView.set_virtualItemCount(result);
        }


Is there any way to force a refresh of the paging items section of the radgrid? Any help HUGELY appreciated.

Regards,
William
Tsvetoslav
Telerik team
 answered on 12 Mar 2010
2 answers
178 views
Hello,

I want to display nested grid. means on click of master grid row it will display another grid with related master grid.

i dont know where to bind another grid data n how??

i did somthing like tht

<

 

body class="BODY">

 

 

<form runat="server" id="mainForm" method="post">

 

 

<telerik:RadScriptManager runat="server" ID="ScriptManager1">

 

 

</telerik:RadScriptManager>

 

 

<!-- content start -->

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<ajaxsettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</ajaxsettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

 

 

<telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" runat="server" AutoGenerateColumns="False"

 

 

AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5"

 

 

GridLines="None" ShowGroupPanel="true" OnItemCreated="RadGrid1_ItemCreated" OnItemCommand="RadGrid1_ItemCommand">

 

 

<pagerstyle mode="NumericPages"></pagerstyle>

 

 

<mastertableview datakeynames="IssueID" allowmulticolumnsorting="True" grouploadmode="Server">

 

 

<NestedViewTemplate>

 

 

<asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false">

 

 

<telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1"

 

 

SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="ViewIssue" PageViewID="PageView1">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">

 

 

<telerik:RadPageView runat="server" ID="PageView1">

 

 

<telerik:RadGrid runat="server" ID="OrdersGrid" AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5">

 

 

<MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"

 

 

DataKeyNames="OrderID" PageSize="7" HierarchyLoadMode="ServerOnDemand">

 

 

<Columns>

 

 

<telerik:GridNumericColumn SortExpression="Description" HeaderText="Description" HeaderButtonType="TextButton"

 

 

DataField="Description" UniqueName="Description">

 

 

</telerik:GridNumericColumn>

 

 

<telerik:GridBoundColumn SortExpression="CSTComments" HeaderText="CSTComments" HeaderButtonType="TextButton"

 

 

DataField="CSTComments" UniqueName="CSTComments" Aggregate="Count">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridDateTimeColumn SortExpression="AnalystComments" HeaderText="AnalystComments" HeaderButtonType="TextButton"

 

 

DataField="AnalystComments" UniqueName="AnalystComments" >

 

 

</telerik:GridDateTimeColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

</asp:Panel>

 

 

</NestedViewTemplate>

 

 

<Columns>

 

 

<telerik:GridBoundColumn SortExpression="CoName" HeaderText="CoName" HeaderButtonType="TextButton"

 

 

DataField="CoName" UniqueName="CoName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="ScenarioName" HeaderText="ScenarioName" HeaderButtonType="TextButton"

 

 

DataField="ScenarioName" UniqueName="ScenarioName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="Subject" HeaderText="Subject" HeaderButtonType="TextButton"

 

 

DataField="Subject" UniqueName="Subject">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="IssueDate"

 

 

HeaderText="IssueDate" HeaderButtonType="TextButton" DataField="IssueDate" UniqueName="IssueDate">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</mastertableview>

 

 

<clientsettings allowdragtogroup="true" />

 

 

</telerik:RadGrid>

 

 

</form>

 

</

 

body>

--------------------------------------------code behind ---------------------------------------------------------------------------

 

 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

//dsViewIssueData = moIssueTrackBL.GetViewIssueDetails(iIssueID);

 

 

if (e.CommandName == RadGrid.ExpandCollapseCommandName)

 

{

((

GridDataItem)e.Item).ChildItem.FindControl("InnerContainer").Visible =

 

!e.Item.Expanded;

 

GridDataItem item=(GridDataItem)e.Item;

 

iIssueID =

Convert.ToInt32(item.OwnerTableView.DataKeyValues[item.ItemIndex]["IssueID"].ToString());

 

dsViewIssueData = moIssueTrackBL.GetViewIssueDetails(iIssueID);

 

GridDataItem editedItem = (GridDataItem)e.Item.OwnerTableView.Items[e.Item.ItemIndex];

 

 

RadGrid grid2 = (RadGrid)editedItem.EditFormItem.FindControl("OrdersGrid");

 

grid2.DataSource = dsViewIssueData.Tables[0];

grid2.DataBind();
}
}

but its not working :(

can any one help me please

Mugdha Aditya
Top achievements
Rank 1
 answered on 12 Mar 2010
4 answers
329 views
We currently using the numeric textbox to allow users to enter some values.  The problem we are experiencing is when they decide that they no longer need to enter a value in the field and when they delete it and then the information is posted back the previous value is still in the field.

Is there any way to set the value to empty on the numeric textbox?  I have tried doing it on an onblur method and using both the element.set_value("") and element._textBoxElement.value = "" but this does not seem to work?

Thanks in advance for any help
c0x3y
Top achievements
Rank 1
 answered on 12 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?