Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
95 views
I am currently installing Telerik controls on our present asp .net application and stumbled upon the "formdecorator" -> more specifically <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator>
 and therefore I have been installing this on our application .aspx pages.  Most of the time it works perfectly and formats all our textboxs, radiobuttons, etc.  However I have found that sometimes this doesn't work on the pages and receive "Unknown server tag 'telerik:radformdecorator'.
" errors.  My question is why this might work on some pages and not others.  Does it have to do with master pages? Or something else in general.  If you need more specifics please let me know.
David
Top achievements
Rank 1
 answered on 27 Aug 2010
1 answer
285 views
There's a route to deserialize GridCommand (GridCommand.Parse), that takes serialized versions of orderBy, groupBy, and filterBy.   I can find ways to serialize sortDescriptors & groupDescriptors, but I can't find code that will serialize filterDescriptors into the same serialized string.

I see an example of what it serializes to, and I can see code in GridBoundColumnSerializer.cs that converts it to a Dictionary, but nothing that turns it into a string.

I need this because I need to create my LINQ query in a webservice, and pass it through my MVC Controller.    I need to pass it through in order to add additional search criteria from the search form (that aren't represented in the result DTO that is sent back).

Unfortunately passing CommandGrid to the WebService fails, because the FilterDescriptors don't serialize automatically.
Passing List<FilterDescriptor> fails as well.
I tried using XMLSerializer to serialize it, but it fails because CompositeFilterDescriptor has a Collection of IFiltorDescriptor in it, and it can't serialize interfaces.

Please assist.

Thanks,

   - Daniel
Atanas Korchev
Telerik team
 answered on 27 Aug 2010
4 answers
98 views
Hello Telerik Team,

I am having problem populating the Gridtableview from xml programmatically.

I am trying to implement the functionality similar to this

I have raised a ticket, please navigate here to help me resolve my issue.

Thanks.
Iana Tsolova
Telerik team
 answered on 27 Aug 2010
2 answers
90 views
I have a little knowledge base with books and chapters. It is grouped by Book, and the chapters are editable. Not the books.

By default I have all the columns set to collapse on load.
Whenever i edit an item in a chapter and click Update (or cancel)  The grid reloads with ALL the Items expanded.
I have tried a few samples handling this in the ItemCommand event, but none have worked.

On save or cancel, i would like it to collape all except the currently edited and expanded book.
How can i do that with the grouping ?

David
Top achievements
Rank 1
 answered on 27 Aug 2010
3 answers
78 views
Hello,

I'm using the SlidingZone and SlidingPanes with the Splitter control and I have an issue.  I would like to set the DockOnOpen option to true for each of my slidingpanes.  When a SlidingPane is docked or undocked, I need to have a function execute so a control in a adjoing container is resized properly.  So I'm using the OnClientDocked and OnClientUnDocked events to execute my custom function.  This works great when there are no SlidingPanes initially open, but when I go to select on another SlidingPane the code gets executed twice and causes a problem with .  When I put some alerts in, I noticed that a SlidingPane will get undocked and then the one I clicked on will get docked, thus leading to my function being executed twice.   What I really want to happen is when a user clicks the undock icon of a SlidingPane to execute my function and not when they are trying to open (dock) another SlidingPane (which undocks all other panes).  Is it possible to determine when a user clicks the undock icon?  Or a way with another event? 

Thanks in advance for any tips or advice.


Juan     
Juan
Top achievements
Rank 1
 answered on 27 Aug 2010
1 answer
125 views
Hi,

I am getting strange behaviour with RadEditor. Please check attached images for the different behaviour. It is intermittent behaviour. From my observattion it occurs when you keep site open for long time & try to access the page gain. We need to resolve this issue immediately

Thanks.
Dimo
Telerik team
 answered on 27 Aug 2010
1 answer
175 views
What do I miss?

I cant get the Language="es-MX" working in FIleExplorer. I configure it, but still the english language is appearing.
Dobromir
Telerik team
 answered on 27 Aug 2010
2 answers
140 views
I have my group by column set to 150px on my scheduer but some of our client have very large names.  If I remove this setting from the css file

*+html

 

 

.RadScheduler .rsContent .rsVerticalHeaderTable th div { width: 150px;} /*IE7*/

 

I can see all of the names just fine but they take up to much space.  Is there a way to make the text wrap down to the next line?
Timothy Kruszewski
Top achievements
Rank 1
 answered on 27 Aug 2010
3 answers
249 views
Hi,

I've tried out creating new skins using RadStyleSheetManager by following the url:


It was working fine as i followed the url.

Later i wanted to restructure the folders available in my project based on the skin names. So i moved all the files to a separate folder TelerikSkins and moved all the images, cs file into that. But when i moved the css file in to that folder and modified the webresource as in the code snippet below, the stylesheet is not applied in the web page!

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Web.UI; 
 
[assembly: WebResource("TelerikCustomSkins.TelerikSkins.TelerikSkinForComboBox.css""text/css")] 
namespace TelerikCustomSkins 
   public class TelerikSkin 
   { 
   } 

But when it is in the root folder of the project, it is working fine. Otherwise nothing happend!

Please let me know how to mark a css file as Web Embedded resource when it is inside a folder.

Thanks
Stuart Wachsberg
Top achievements
Rank 1
 answered on 27 Aug 2010
1 answer
126 views
Hi All

We have a simple task to achieve but are struggling and wondered if anyone has any pointers...

Basically issue is we have Grid which display 'Alerts' to our users which looks like.......

ID     | Alert Name         | Created         | Status
100    Order Created    12/12/2010     On Order

In the database we have an Alerts table and Alert Status table. The Alert table contains all of the above fields except for the Status which is an reference to the Alert Status table. So in Alerts we have a StatusRef(int) that links to AlertStatus to display the status name.

What we need to achieve is when Edit is selected the only field that can edited is the Status field which should contain a drop down list which loads all of the Statuses - ID / Name from the db - to allow the user to change the status.

We have managed to do this so when a user wants to change the status a drop down is provided and contains the values we need but..........

1> How do I link up the drop down in edit mode to the Status field so that when Update is selected the update is performed.
2> How do I select the Value rather than the Text from the drop down

So far we have......

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None"
         AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" AllowAutomaticDeletes="true"
         AllowAutomaticUpdates="true">
         <MasterTableView AutoGenerateColumns="False" DataKeyNames="AlertID" DataSourceID="SqlDataSource1"
             EditMode="EditForms">
             <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
             <RowIndicatorColumn>
                 <HeaderStyle Width="20px"></HeaderStyle>
             </RowIndicatorColumn>
             <ExpandCollapseColumn>
                 <HeaderStyle Width="20px"></HeaderStyle>
             </ExpandCollapseColumn>
             <Columns>
                 <telerik:GridBoundColumn DataField="AlertID" DataType="System.Int32" HeaderText="ID"
                     ReadOnly="True" SortExpression="AlertID" UniqueName="AlertID">
                 </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="AlertTitle" HeaderText="Alert" SortExpression="AlertTitle"
                     UniqueName="AlertTitle" ReadOnly="true">
                 </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="AlertTo" DataType="System.Int32" HeaderText="AlertTo"
                     SortExpression="AlertTo" UniqueName="AlertTo" Visible="false" ReadOnly="true">
                 </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="AlertCreated" DataType="System.DateTime" HeaderText="AlertCreated"
                     SortExpression="AlertCreated" UniqueName="AlertCreated" ReadOnly="true">
                 </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="AlertStatus" HeaderText="AlertStatus" SortExpression="AlertStatus"
                     UniqueName="AlertStatus" Visible="false" DataType="System.Int32">
                 </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="AlertFilter" HeaderText="AlertFilter" SortExpression="AlertFilter"
                     UniqueName="AlertFilter" Visible="false" ReadOnly="true">
                 </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="AlertStatusName" HeaderText="AlertStatusName"
                     SortExpression="AlertStatusName" UniqueName="AlertStatusName" ReadOnly="true">
                 </telerik:GridBoundColumn>
                 <telerik:GridHyperLinkColumn UniqueName="AlertActionLink" Target="_parent" HeaderText="Action"
                     Text="Action" DataNavigateUrlFields="AlertActionLink">
                 </telerik:GridHyperLinkColumn>
             </Columns>
             <EditFormSettings EditFormType="Template">
                 <FormTemplate>
                     <br />
                     <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2"
                         DataTextField="AlertStatusName" DataValueField="AlertStatusID">
                     </asp:DropDownList>
                     <br />
                     <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click" />
                 </FormTemplate>
             </EditFormSettings>
         </MasterTableView>
     </telerik:RadGrid>
     <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:IFMWEBDBADMIN2 %>"
         SelectCommand="SELECT [AlertStatusID], [AlertStatusName] FROM [IFM_Alert_Status]">
     </asp:SqlDataSource>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IFMWEBDBADMIN2 %>"
         SelectCommand="IFM_Alerts_ViewAll" DeleteCommand="IFM_Alerts_ViewAll_Delete"
         DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" UpdateCommand="IFM_Alerts_ViewAll_Update"
         UpdateCommandType="StoredProcedure">
         <DeleteParameters>
             <asp:Parameter Name="AlertID" Type="Int32" />
         </DeleteParameters>
         <SelectParameters>
             <asp:SessionParameter Name="UserID" SessionField="LoggedInUsersUserID" Type="Int32"
                 DefaultValue="999900" />
         </SelectParameters>
         <UpdateParameters>
             <asp:Parameter Name="AlertID" Type="Int32" />
             <asp:Parameter Name="AlertStatus" Type="Int32" />
         </UpdateParameters>
     </asp:SqlDataSource>

Any help is greatly appreciated as I am a bit stuck at the moment :)

All the best
Mira
Telerik team
 answered on 27 Aug 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?