Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views

I have added this "AsyncPostBackTimeout="5000" to ScriptManager because Group  Expand is not Working and throwing "Sys.WebForms.PageRequestManagerTimeoutException: Sys.WebForms.PageRequestManagerTimeoutException"


  <telerik:RadGrid ID="RadgrdMembers" ShowGroupPanel="false" AutoGenerateColumns="false"
            GridLines="Both" AllowSorting="true" BorderStyle="None" runat="server" AllowPaging="false"
            OnItemDataBound="RadgrdMembers_ItemDataBound" OnNeedDataSource="RadgrdRsult_NeedDataSource"
            GroupingSettings-RetainGroupFootersVisibility="true">
            <ClientSettings AllowDragToGroup="false">
                <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true">
                </Scrolling>
            </ClientSettings>
            <MasterTableView ShowGroupFooter="true" GroupsDefaultExpanded="false">
                <HeaderStyle Wrap="true" />
                <ItemStyle Wrap="true" />
                <AlternatingItemStyle Wrap="true" />
                <PagerStyle Mode="NextPrevAndNumeric" PageSizeLabelText="Records Per Page :" PageSizes="{25, 50, 100, 200,250}" />
                <Columns>
                    <telerik:GridBoundColumn DataField="Title" HeaderText="Title" />
                    <telerik:GridBoundColumn DataField="WholesalerID" HeaderText="Wholesaler" />
                    <telerik:GridBoundColumn DataField="Frozen" HeaderText="Frozen" />
                    <telerik:GridBoundColumn DataField="CostToStore" HeaderText="Cost" />
                    <telerik:GridBoundColumn DataField="SuggRetail" HeaderText="Retail" />
                    <telerik:GridBoundColumn DataField="Mon" HeaderText="Mon Base" />
                    <telerik:GridBoundColumn DataField="Tue" HeaderText="Tue Base" />
                    <telerik:GridBoundColumn DataField="Wed" HeaderText="Wed Base" />
                    <telerik:GridBoundColumn DataField="Thur" HeaderText="Thur Base" />
                    <telerik:GridBoundColumn DataField="Fri" HeaderText="Fri Base" />
                    <telerik:GridBoundColumn DataField="Sat" HeaderText="Sat Base" />
                    <telerik:GridBoundColumn DataField="Sun" HeaderText="Sun Base" />
                </Columns>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="StoreInfo" SortOrder="None"></telerik:GridGroupByField>
                        </GroupByFields>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="StoreInfo" HeaderText="StoreInfo" SortOrder="None">
                            </telerik:GridGroupByField>
                        </SelectFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <NoRecordsTemplate>
                    <div class="search-noresults-container">
                        <asp:Image ID="imgSearchIcon" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/themeimages/search_icon.png" /><br />
                        <br />
                        <div class="inner-content">
                            <p>
                                <strong>No results were returned</strong></p>
                            <p class="small-text">
                                Please verify the search criteria and try again</p>
                        </div>
                    </div>
                </NoRecordsTemplate>
            </MasterTableView>
            <GroupingSettings ShowUnGroupButton="false"></GroupingSettings>
        </telerik:RadGrid>

"warningmessage.png"  pops up constantly in FF When i click on Expand

Please Report the error




Eyup
Telerik team
 answered on 20 May 2013
2 answers
358 views
I have implemented a FileExplorer on my site that works great for uploading files.  I would like to allow users to download files to local computers.  I have followed the demo located here:
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/applicationscenarios/filteranddownloadfiles/defaultvb.aspx?#qsf-demo-source


I think that I have most of the code without errors.  

Here is the question:
What do I put in the code behind on the Handler.ashx file??

I did not see a resource/related files on the demo for the Handler.ashx
Rusty
Top achievements
Rank 1
 answered on 20 May 2013
2 answers
79 views

Right now, I have two GridBoundColumns pulling OfficePhone and Extension from a SQL database.

<telerik:GridBoundColumn HeaderText="Phone" DataField="OfficePhone" UniqueName="OfficePhone">
</
telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Ext" DataField="Extension" UniqueName="Extension">
</
telerik:GridBoundColumn>

I would like to combine the two columns into one, into something like this:

<telerik:GridCalculatedColumn HeaderText="Phone" UniqueName="Phone" DataType="System.String" DataFields="OfficePhone, Extension" Expression="{0} + ' ext. ' + {1})">
</
telerik:GridCalculatedColumn>

but extension is usually null or "", causing most of the cells to go blank.

Is there a way to set the expression programmatically, depending on whether there is a value for extension?
Andrey
Telerik team
 answered on 20 May 2013
5 answers
95 views
Telerik Embedded skins are not apply for radcontrols in IE. For that Some expert told to add a Radstylesheetmanager to combine stylesheet request into single one.

if i add radstylesheetmanager like this

 string telerikAssembly= typeof(RadGrid).Assembly.FullName;
                    RadStyleSheetManager stylesheet = new RadStyleSheetManager();
                    
                    StyleSheetReference css1 = new StyleSheetReference();
                    css1.Assembly = telerikAssembly;
                    css1.Name = "Telerik.Web.UI.Skins.Telerik.Grid.Telerik.css";
                    stylesheet.StyleSheets.Add(css1);

                    StyleSheetReference css2 = new StyleSheetReference();
                    css2.Assembly = telerikAssembly;
                    css2.Name = "Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css";
                    stylesheet.StyleSheets.Add(css2);
                    
                    StyleSheetReference css3 = new StyleSheetReference();
                    css3.Assembly = telerikAssembly;
                    css3.Name = "Telerik.Web.UI.Skins.Black.Grid.Black.css";
                    stylesheet.StyleSheets.Add(css3);
                    this.Page.Header.Controls.Add(stylesheet);



it doesn't work.
how can i solve this issue please help me to solve this issue.



Venelin
Telerik team
 answered on 20 May 2013
8 answers
761 views
Hi telerik team!
I have a problem with radajaxmanager, this is my scenario:
I have a default page and user control. On default page I have  a radajaxmanager and on my usercontrol a radajaxmanagerproxy.
On my user control I have this:

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxyTools" runat="server"><br><AjaxSettings><br><telerik:AjaxSetting AjaxControlID="Timer"><br><UpdatedControls><br><telerik:AjaxUpdatedControl ControlID="PanelTools" /><br></UpdatedControls><br></telerik:AjaxSetting><br><telerik:AjaxSetting AjaxControlID="LinkButton"><br><UpdatedControls><br><telerik:AjaxUpdatedControl ControlID="PanelTools" /><br></UpdatedControls><br></telerik:AjaxSetting><br></AjaxSettings><br></telerik:RadAjaxManagerProxy>
 In my markup also have this:

<asp:Timer ID="Timer" runat="server" Interval="10000" OnTick="Timer_Tick" Enabled="false"></asp:Timer><br><asp:Panel ID="PanelTools" runat="server" ><br><div runat="server"><br><asp:LinkButton ID="LinkButton" runat="server" CausesValidation="false" onmouseover="OnClientMouseOver(this)" onmouseout="OnClientMouseOut(this)"><br></asp:LinkButton><br></div><br></asp:Panel>

<script type="text/javascript"><br><span style="font-size: 11px; line-height: 1.4;">    function OnClientMouseOver(sender, eventArgs) {</span><br>        var Open = '<%= this.IsOpen %>';<br>        if (Open == false) {<br>            __doPostBack('Open');<br>        }<br>    }<br><br>    function OnClientMouseOut(sender, eventArgs) {<br>        __doPostBack('Close');<br>    }<br><br></script>


But is doing a full postback to all the page. How could I solve this???
Thanks!!!!
Viktor Tachev
Telerik team
 answered on 20 May 2013
1 answer
76 views
Hello everybody,

I need to find a way to have a preview of the file like img files.
To explain better.
I had developed a new innovative CMS and one of the feature inside it, is the option to export and import CSS style and functionality of every object in the page.
For example if I have a menu very cool, and I want to export the graphic style and the functionality (template) into my library, I just follow this sequence:
  1. Take a snapshot of the object (menu or any other things)
  2. Go to the style Editor (it's a CSS realtime editor like the classic toolbar of Word. You can edit any object's CSS just using mouse)
  3. Link the snapshot to the class CSS of the object
  4. Go to the export manager
  5. Select the object I want export (export in .zip file) and click ok

The problem is when I want to import a template of the Menu or the others objects.
Because in the FileExplorer, all the .zip file has the same icon.
I want to change the icon like the .jpg or .png files.
If I assign a single custom icon to any single .zip of the templates from windows or mac, is it possible to FileExplorer show the custom icon?

May be I have to find the CSS file of the img extension and use the same logic to overrite the CSS file of the .zip extension.

Thank you

Vessy
Telerik team
 answered on 20 May 2013
1 answer
317 views
Hi ,

In the protected void RadGrid1_UpdateCommand  after editing values, when i extract values using 
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

newValues hashtable is filled with oldValues not with edited values.I am using GridEditableItem only.



Please help me. 

Thanks
Swarna.

Shinu
Top achievements
Rank 2
 answered on 20 May 2013
1 answer
184 views
Hi everyone, I'm working with the radeditor control but when I click on spellcheck button 
I'm getting this error message "Sys.ArgumentException: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON. Parameter name: data" . I tried this control on my local machine already and worked fine, but when I send it to the server it doesn't work.

Note: 

1) My server is working in integrated mode
2) My web.config file is configured with this telerik keys 
<system.webServer>
<handlers>
<add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />       
<add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />       
<add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />       
<add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />       
<add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"  preCondition="integratedMode" />       
</handlers>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
3) I'm using radeditor by this way 
<telerik:RadEditor ID="rtbTexto" runat="server" Skin="Office2007" D Width="415px">
<SpellCheckSettings AjaxUrl="Telerik.Web.UI.SpellCheckHandler.axd" />
<Languages>
            <telerik:SpellCheckerLanguage Code="es-ES" Title="Español" />
            </Languages>
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Bold" />
<telerik:EditorTool Name="Italic" />
<telerik:EditorTool Name="Underline" />
<telerik:EditorTool Name="StrikeThrough" />
<telerik:EditorTool Name="Undo" />
<telerik:EditorTool Name="Redo" />
<telerik:EditorTool Name="InsertOrderedList" />
<telerik:EditorTool Name="InsertUnorderedList" />
<telerik:EditorTool Name="JustifyLeft" />
<telerik:EditorTool Name="JustifyCenter" />
<telerik:EditorTool Name="JustifyRight" />
<telerik:EditorTool Name="JustifyFull" />
<telerik:EditorTool Name="PastePlainText" />
<telerik:EditorTool Name="PasteAsHtml" />
<telerik:EditorTool Name="ConvertToLower" />
                                                                             <telerik:EditorTool Name="ConvertToUpper" />
<telerik:EditorTool Name="AjaxSpellCheck"  />
<telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
</telerik:EditorToolGroup>
</Tools>
<Content>
</Content>

</telerik:RadEditor>

4) I have RadSpell folder in Application App_Data folder.

Thanks
Slav
Telerik team
 answered on 20 May 2013
10 answers
422 views
I have a page that is similar to your Web Mail example.  Depending on selected view from TreeList it loads grid in main window.  What I would like to do depending on selected view is add or remove grouping from grid.  Can you please post an example or link to example to make this work?

Thank you
Antonio Stoilkov
Telerik team
 answered on 20 May 2013
2 answers
148 views
 <telerik:GridTemplateColumn UniqueName="BankType" AllowFiltering="false" EditFormHeaderTextFormat=" ">
                    <EditItemTemplate>
                        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Fieldset"
                            Skin="Outlook" />
                        <div style="height: 150px; width: 142px; float: left; margin-left: -20px; margin-bottom: 20px;
                            border: rgb(102,102,102) solid 1px; border-radius: 8px; padding: 0px 0px 0px 5px;
                            font-family: Bold; font-size: 12px; position: relative; bottom: 100px; top: 10px;
                            left: 20px;">
                            <span style="font-weight: normal; font-family: Verdana; background-color: rgb(215,230,255);
                                font-weight: normal; margin-top: 4px; left: 10px; position: relative; top: -10px;">
                                &nbsp;Bank Type</span>
                            <telerik:RadGrid ID="RgList1" runat="server" AutoGenerateColumns="false" ShowHeader="false"  CssClass="RgListPosition1" >
                                <MasterTableView AutoGenerateColumns="false">
                                    <Columns>
                                        <telerik:GridTemplateColumn HeaderText="BankTypeName">
                                            <ItemTemplate>
                                                <%# Eval("BankTypeName")%>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn UniqueName="chkBankList1" HeaderText="Select" >
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkBankTypeName" runat="server" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings EnableRowHoverStyle="false"></ClientSettings>
                            </telerik:RadGrid>
                        </div>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>


The above code inside another grid view,The outer (or) Parent grid Insert ,I am  want to set the back ground color of   a "Span  tag"  inside Rad Form Decorator .
  1. When Insert mode  of the Parent grid i want,set some "red" .
  2. when  grid edit mode i want set color of span tag background color is "white".

any one help me plz.

Sairam
Top achievements
Rank 1
 answered on 20 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?