Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 views
Sir,

In your demo 'dynamically adding dock'.its saving the entire dock's state.but my requirement is to store only the dock's position and index..and have to keep it in each page_load..

Another prbm is the raddocklayout's registereddocksstate is not clearing..
I used 

StoreLayoutInViewState

="false" EnableViewState="false"
and tried with

 

Dim stateList As List(Of DockState) = DkLayoutDocMain.GetRegisteredDocksState()  
Me.ClearChildControlState()  
Me.ClearChildViewState()  
Me.ClearChildState()  
DkLayoutDocMain.Dispose()  
ViewState.Clear()  
 

plz help me...

 

Slav
Telerik team
 answered on 16 Nov 2011
1 answer
117 views
Hi Telerik Team,

I am using a rad combo box with MarkFirstMatch property.and i used to bind  the rad combobox  with different  countries name using ID="ddlCountry" . I used this same ID="ddlCountry
" in various asp.net pages.
 <telerik:RadComboBox ID="ddlCountry" ExpandDirection="Down" runat="server"
                              MaxHeight="300px" Width="120px" DropDownWidth="150px"
                              AllowCustomText="false"   MarkFirstMatch="true" >
  </telerik:RadComboBox >
But when i start typing in that Rad Combobox,it works fine until i type the second character of country but when i typed the third character the existing values are getting erased and only the third character which i typed comes to first position and its MarkFirstMatch property is not working properly.

first i can try to bind  the rad combobox using code behind methods  with different  countries name and then  i also try to bind it with  the hard coded items values with different  countries name using ID="ddlCountry" .( Which Gives me Same Results)

But this problem is resoved when i simply changed the ID of rad combobox e.g
 <telerik:RadComboBox ID="ddlCountries" ExpandDirection="Down" runat="server"
                              MaxHeight="300px" Width="120px" DropDownWidth="150px"
                              AllowCustomText="false"   MarkFirstMatch="true" >
  </telerik:RadComboBox >
and its MarkFirstMatch property works fine...and it is happening for some specific keywords like ddlCountry, ddlState etc.
I am not sure what's the exact reason behind it??? My current telerik radcontrols version is 2011.1.1.519.35

Please Help.
Ivana
Telerik team
 answered on 16 Nov 2011
1 answer
76 views
Hi all togehter,
is there a way to change the Week-View of the RadScheduler object completely? I know it is possible to swap the days and the hours (i.e. to swap columns and rows of the original Week-View), but my goal is to change the Week-View completely as shown in the attached picture.
I fear this is not possible but thanks in advance for your answer :-).

Greetings,
Richard Huber.
Plamen
Telerik team
 answered on 16 Nov 2011
1 answer
67 views
Hi,
I am Unable to find RadGrid row using $find(rowClientID) for some rows from innermost table, although I can found few rows which are at same level.

I am attaching a screenshot of RowIDs which are collected by traversing though the table , you can see there are six row ids are found , out of them I am only able to get object of first 3 rows, next 3 rows are showing null.

I am using $find(rowID) command to get the row object.

Please let me know if you need more information.

Thanks & Regards

Andrey
Telerik team
 answered on 16 Nov 2011
2 answers
112 views
Hello guys!

I'm hoping this is an easy one. I've configured my radGrid to use a sorted back color by setting the following: SortingSettings-SortedBackColor="Green" and SortingSettings-EnableSkinSortStyles="true/false (tried both)". I've also set ClientSettings-Selecting-AllowRowSelect="true". When a user sorts a solumn (click column head) the column's sorted back color is set correctly (Green). The issue arises when a user then selects a row. When the row is selected the sorted back color stays on top of the selected row style. So, if the selected row color was red the sorted columns cell would still show green. Looking at some of the demos for this control it appears that the sorted back color should actually be overwritten by the selected row style? In any case, I would like the selected row style to overwrite the SortedBackColor style.

I'm using asp.net 4.0, IE 9, VB.NET.

Thanks!
Hunter
Top achievements
Rank 1
 answered on 16 Nov 2011
1 answer
127 views
Hello,
I want to create a grid with data changes as per radiobuttonlist selection.
Then depend on that data there are checkbox control ,cascading dropdoenlist control.but as per 
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx
this link i try to create dropdownlist as per my data but it is not working.
Here is following code: 
qry = "SELECT BudgetName, Budget,GroupName,Budget.GroupId FROM Budget,mGroup " +
                                " where BudgetTypeId=(select BudgetTypeId from BudgetType where BudgetTypeName='" + HiddenField1.Value + "') and " +
                                "Budget.GroupId = mGroup.GroupId ";


                            using (SqlCommand Cmd = new SqlCommand(qry, Conn))
                            {
                                da.SelectCommand = new SqlCommand(qry, Conn);


                                DataSet myDataSet = new DataSet();


                                try
                                {
                                    da.Fill(myDataSet, "BudgetDim");
                                    da.SelectCommand = new SqlCommand("SELECT GroupId, DimensionName FROM [Dimension]", Conn);
                                    da.Fill(myDataSet, "Dimension");
                                }
                                finally
                                {
                                    Conn.Close();
                                }
                               
                                    RadGrid2.DataSource = myDataSet;
                                    RadGrid2.DataBind ();

and also when I try to assign  seperate datatabels to 2 grids but it is not showing data for second grid.
Please help me out.                              
Andrey
Telerik team
 answered on 16 Nov 2011
3 answers
248 views
Hi

I have an issue when using radgrid inside radajaxpanel.
Radgrid is contained in .ascx control, and uses an arraylist as datasource for test purposes.

Initially, grid renders just fine, but when trying to use sorting for example, it dissapears and is not rendered any more.

Also, when I place grid outside of radajaxpanel, it works just fine.


Here is my aspx code (CTRL:UserList contains the grid)

<telerik:RadAjaxLoadingPanel ID="uxRadAjaxLoadingPanel" Skin="Transparent" InitialDelayTime="200" MinDisplayTime="250" runat="server" />
<telerik:RadAjaxPanel Height="100" ID="uxRadAjaxPanel_Content" EnableAJAX="true" LoadingPanelID="uxRadAjaxLoadingPanel" runat="server"><CTRL:UserList ID="UserList1" runat="server" /></telerik:RadAjaxPanel>


Aspx for the grid

<telerik:RadGrid ID="uxRadGrid" Skin="Transparent" AutoGenerateColumns="false" ShowHeader="true" Width="100%"
OnNeedDataSource="uxRadGrid_NeedDataSource"
PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NumericPages" PagerStyle-Position="Bottom" AllowPaging="true" AllowSorting="true"
runat="server">
    <MasterTableView ClientDataKeyNames="user_id" TableLayout="Auto" GridLines="None">
        <Columns>
            <telerik:GridBoundColumn DataField="user_id" HeaderText="Id" />
            <telerik:GridBoundColumn DataField="user_status" HeaderText="Etat" />
            <telerik:GridBoundColumn DataField="user_role" HeaderText="Rôle" />
            <telerik:GridBoundColumn DataField="user_firstname" HeaderText="Prénom" />
            <telerik:GridBoundColumn DataField="user_lastname" HeaderText="Nom" />
            <telerik:GridBoundColumn DataField="user_email" HeaderText="Courriel" />
        </Columns>
    </MasterTableView>
 
    <ClientSettings>
        <ClientEvents OnRowClick="uxRadGrid_RowClick" />
    </ClientSettings>
</telerik:RadGrid>


And code-behind

protected void uxRadGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    ArrayList list = new ArrayList();
 
    list.Add(new TestObject("tYYpcH", "Activé", "Administrateur", "Vedran", "Vlajki", "vedran.vlajki@hotesline.ch"));
    list.Add(new TestObject("zzz333", "Activé", "Administrateur", "Catherine", "Schneider", "catherine@mail.com"));
 
    uxRadGrid.DataSource = list;
}


What is wrong ? Thanks everybody !
Iana Tsolova
Telerik team
 answered on 16 Nov 2011
8 answers
178 views
Hello,
I am dinamically creating all controls on page_init. I have a RadGrid and RadFileExplorer added to its NestedViewTemplate. All works fine until I call Grid.Rebind method. I get the following exception:

Cannot unregister UpdatePanel with ID 'ajaxPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel

I wasn't getting the exception until I defined a RadFileExplorer in the Grid's NestedViewTemplate. Is there any workaround that can enable this scenario?

Thank you in advance,
Vlada
Chi Hong
Top achievements
Rank 1
 answered on 16 Nov 2011
3 answers
165 views
I have a grid in a splitter pane. The splitter has width/height 100%. The grid has height/width set to 100%. The mastertableview has width="100%" and TableLayout="Fixed". In Firefox, everything works fine. The grid occupies 100% of the avalable space (vertically and horizontally and scrollbars are displayed if the grd content is too wide/tall. However, in IE 7, I have noticed the horizontal scrollbar is not shown and the vertical scrollbar is not visible because it is toof far off to the right. I added some code in the page load which checks for IE 7 and sets the grid width to 97% and this seems to work. However, 97% is only appropriate for a given screen size. For smaller screens, 97% would not be small enough to display the scrollbars, I would need to set it to something like 95%. So, its hard to get things to look right across different screen sizes. Is there a way to "resize" the grid on the client in an appropriate fashion when the page loads. I imagine this would include calculatig the width real-time of the splitter pane and setting the grid width accordingly. Can someone help me with this? Remember, I only want to do this if the browser is IE7/8.
Pavlina
Telerik team
 answered on 16 Nov 2011
2 answers
150 views
Hi,
I've deployed my website to a Windows Server 2008 R2 wiht IIS7 . The same website on my machine (windows 7 64bit) run perfectly.
My Web.Config is :

 <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
    </httpHandlers>

<handlers>
      <remove name="ChartImage_axd"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
    </handlers>

I also added the application/x-axd to the mime types of the website just to make sure.
The ApplicationPool is running in integrated mode with the administration user.
After executing my page with a Grid e radajaxmanager i'm still getting an error related to the WebResource :

Webpage error details


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; EasyBits GO v1.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Wed, 9 Nov 2011 06:30:57 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 6
Char: 84093
Code: 0
URI: http://88.81.190.60:8080/WebInfonet/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+
Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c
+Version%3d2011.2.915.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a9799c67b-558a-475d-bf30-a0ccf0dbb8b7%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3a4cacbc31%3aaa288e2d%3ab7778d6c%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3a58366029

Any idea ?
Best Regards 
Alessandro 


Alessandro
Top achievements
Rank 1
 answered on 16 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?