Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
239 views
Hello

Can some one tell me how to show the detail grid in expanded mode always and what are the settings in aspx and code behind, i tried setting "HierarchyDefaultExpanded = true" 
but it didnt helped me

Thank in advance
Bala

 

Princy
Top achievements
Rank 2
 answered on 15 Dec 2009
4 answers
187 views
i am using radrotator for banner rotating .how i can count impression of each banner ?
Fiko
Telerik team
 answered on 15 Dec 2009
3 answers
1.1K+ views
Dear sir,
I am using telerik dock serialized/Deserialized concept.

but when upload on server it shows an error, it works good at local mechine, but on server shows an following error :

in web.conf.

<

 

sessionState timeout="500"/>

 



Server Error in '/Test' Application.

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SerializationException: Type 'Telerik.Web.UI.DockState' in Assembly 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable.]
   System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +7733643
   System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +258
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +111
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +283
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +45
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo) +178
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +7631288
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +461
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +134
   System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1577

[HttpException (0x80004005): Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.]
   System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1662
   System.Web.SessionState.SessionStateItemCollection.WriteValueToStreamWithAssert(Object value, BinaryWriter writer) +34
   System.Web.SessionState.SessionStateItemCollection.Serialize(BinaryWriter writer) +606
   System.Web.SessionState.SessionStateUtility.Serialize(SessionStateStoreData item, Stream stream) +239
   System.Web.SessionState.SessionStateUtility.SerializeStoreData(SessionStateStoreData item, Int32 initialStreamSize, Byte[]& buf, Int32& length) +72
   System.Web.SessionState.OutOfProcSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +87
   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +560
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

can u plz give me a solution ASAP

thanks with regards
T. Tsonev
Telerik team
 answered on 15 Dec 2009
2 answers
140 views
I have added some columns dynamically to a statically declared Grid with enable sorting set true.
When I click a column title for sorting the grid columns are dissapeared on postback, and also the SortCommand doesn't being fired.
What's the problem?
Libertad
Top achievements
Rank 1
 answered on 15 Dec 2009
2 answers
153 views
Hi all,

I have a grid containing orders with IDs. This main grid have a nestedview in which I have a tab containing some text and another containing a new grid with the orderlines.

How can I give the information about the order id to the grid containing the orderlines. My code looks something like beneath (I have cutted out a lot of code to get a better overview of the essential code):

<telerik:RadGrid ID="RgOrders" AutoGenerateColumns="false" OnNeedDataSource="RgOrders_NeedDataSource" runat="server"> 
    <MasterTableView ClientDataKeyNames="id"> 
        <Columns> 
            <telerik:GridBoundColumn DataField="OrderNumber" HeaderText="OrderNumber" UniqueName="OrderNumber" /> 
            <telerik:GridBoundColumn DataField="OrderFirstName" HeaderText="OrderFirstName" UniqueName="OrderFirstName" /> 
            <telerik:GridBoundColumn DataField="OrderLastName" HeaderText="OrderLastName" UniqueName="OrderLastName" /> 
        </Columns> 
        <NestedViewTemplate> 
            <asp:Panel runat="server" ID="OrderNestedView" Visible="false"> 
                <telerik:RadTabStrip runat="server" ID="TabStrip1" Visible="true" SelectedIndex="0" MultiPageID="Multipage1" Align="Justify"> 
                    <Tabs> 
                        <telerik:RadTab runat="server" Text="OrderInformation" PageViewID="PageViewOrderInformation"> 
                        </telerik:RadTab> 
                        <telerik:RadTab runat="server" Text="OrderLines" PageViewID="PageViewOrderLines"> 
                        </telerik:RadTab> 
                    </Tabs> 
                </telerik:RadTabStrip> 
                <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false"> 
                    <telerik:RadPageView runat="server" ID="PageViewOrderInformation"> 
                        [... some orderinformation ...] 
                    </telerik:RadPageView> 
                    <telerik:RadPageView runat="server" ID="PageViewOrderLines"> 
                        <telerik:RadGrid ID="RgOrderLines" AutoGenerateColumns="false" OnNeedDataSource="RgOrderLines_NeedDataSource" runat="server"> 
                            <MasterTableView> 
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="OrderLineNumber" HeaderText="OrderLineNumber" UniqueName="OrderLineNumber" /> 
                                    [... some more GridBoundColumn ...] 
                                </Columns> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
                    </telerik:RadPageView> 
                </telerik:RadMultiPage> 
            </asp:Panel> 
        </NestedViewTemplate> 
    </MasterTableView> 
</telerik:RadGrid> 



Ahrensberg
Top achievements
Rank 1
 answered on 15 Dec 2009
3 answers
163 views
Hi all,

Here in the combobox i am getting problem with ItemsRequested event i am unable to get related data of which the word i had typed in the RadComboBox here is the code

protected void cmbPlatformName_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e){DataTable data = objTaskmanLib.GetData(e.Text); //GetData(e.Text);RadComboBoxItem item = new RadComboBoxItem();int itemOffset = e.NumberOfItems;int endOffset = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count);e.EndOfItems = endOffset == data.Rows.Count;for (int i = itemOffset; i < endOffset; i++){cmbPlatformName.Items.Add(new RadComboBoxItem(data.Rows[i]["Platform_Name"].ToString(), data.Rows[i]["Platform_Name"].ToString()));}e.Message = GetStatusMessage(endOffset, data.Rows.Count);}private string GetStatusMessage(int endOffset, int total){if (total <= 0)return "No matches";return String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, total);}

Here is the library code of getdata()

 public DataTable GetData(string text)
        {
            DataTable data = new DataTable();
            //data = null;
            try
            {
                conn = new SqlConnection(connectionstring);
                SqlDataAdapter adapter = new SqlDataAdapter("Select Platform_ID, Platform_Name from T26_Platform_Main where Record_Status='Active' and Platform_Name LIKE '" + text + "%'", connectionstring);
                //adapter.SelectCommand.Parameters.AddWithValue("@text", text);
                //SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from T26_Platform_Main WHERE Platform_Name LIKE @text + '%'",ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
                adapter.Fill(data);
                //return data;
            }
            catch (Exception excep)
            { 
                Console.WriteLine(excep.Message); 
            }
            return data;  
        }
Simon
Telerik team
 answered on 15 Dec 2009
1 answer
160 views
Hello

One of our clients has an installation where the telerik editor is included to edit content. Now he had the issue, that the client produced some html in the design mode by using the editor functionallity. In html view the code looks like that

<p>

<table>

    <p><>&lt;&gt;&lt;&gt;

    <p> </p>

    </>

    <tbody>

        <tr>

            <td>

            <p>aösdkjflöaskjdflöaksjdf </p>

            </td>

            <td>

            <p> asdfasdfasdf</p>

            </td>

            <td>

            <p>asdfasdfasdfsadf </p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

    </tbody>

    </p>

</table>

</p>

<table>

    <p><>&lt;&gt;

    <p> </p>

    </>

    <tbody>

        <tr>

            <td>

            <p>aösdkjflöaskjdflöaksjdf </p>

            </td>

            <td>

            <p> asdfasdfasdf</p>

            </td>

            <td>

            <p>asdfasdfasdfsadf </p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

    </tbody>

    </p>

</table>

Now, when the user switches from Design to html view and back a few times, every time, the brackets where duplicated.

I know, that the html isn't really a clean one, but i like to know if we can do something to avoid the duplication

regards
patrick

Rumen
Telerik team
 answered on 15 Dec 2009
3 answers
555 views
Hi everyone !!


I want to SHOW the the size of the file that has been uploaded by me on to the RAD GRID VIEW.

Though I have successfully uploaded the file with the size of 10485760, but Iam not able to get the extension name such as (KB or MB) with the file size.

How can i show the extension ?

Please help

Below is the screen shot :-

Fiko
Telerik team
 answered on 15 Dec 2009
5 answers
168 views
Hi,

I am using Q2 2009  version. if there more data in editor and i scroll down to  the bottom and set the cursor at the bottom and move the cursor to the out side of  the editor  the scroll bar goes to the top position. so i have to scroll down again.

Is it a problem of browser or editor?. Because when i set the compatibility mode True in IE 8.0 the problem occurs. and If i set false then problem does not occur.

Please give me the solution ASAP.

Regards

Rahul
Rumen
Telerik team
 answered on 15 Dec 2009
5 answers
113 views
Hello,

I'm using the "Use RadEditor to edit HTML fields" feature. This seems to be working reasonably well, except that the RadEditor is shown below the original PublishingWebControls:RichHtmlField editor. I expected this to be replaced by the RadEditor. Am I doing something wrong?

Also, it doesn't seem to be possible to use script tags in the editor (removed by sharepoint presumably), but in another site I've worked on, this does work (magically somehow). Any ideas?
I'm thinking of writing a hack that replaces script with zcript or whatever, when saving and back when rendering. How can I hook into the save / render calls?

Thanks in advance,
Matthijs Wensveen
Matthijs Wensveen
Top achievements
Rank 1
 answered on 15 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?