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


Recently i have added rewrite url rule to my IIS and also it has been added to web.config , but after using this my  radtreeview  shows the following error

"The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)." and i want to say that i have changed all my css and java files path like this  :

    <link href="<%= ResolveUrl("~/Style/style.css") %>" rel="stylesheet" type="text/css" />
    <script pin src="<%= ResolveUrl("~/Js/Jquery/jquery.min.js") %>" type="text/javascript"></script>


Best regards
-------------------------------------------THis my web.config File--------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<sectionGroup name="Miron.web">
<section name="CompressorSettings" type="Miron.Web.MbCompression.SettingsConfigSection" />
</sectionGroup>
</configSections>
<appSettings>
<add key="DBNAME" value="Data Source=;Initial Catalog=;User ID=;Password=" />
<add key="ExternalDBNAME" value="Data Source=192.168.1.1;Initial Catalog=Externalelib;User ID=sa;Password=1234" />
<add key="SiteUrl" value="iranhelpdesk.ir" />
<add key="SiteTitle" value="مرکز پشتیبانی انفورماتیک ایران" />
<add key="email" value="info@iranhelpdesk.ir" />
<add key="Hejri" value="-1" />
<add key="SSlEmail" value="false" />
</appSettings>

<system.net>
<mailSettings>
<smtp>
<network host="mail.iranhelpdesk.ir" port="25" userName="site@iranhelpdesk.ir" password="@iran#it_123" />
</smtp>
</mailSettings>
</system.net>
<system.web>
<httpRuntime maxRequestLength="409600" executionTimeout="300" requestValidationMode="2.0" />

<machineKey validation="SHA1" validationKey="AutoGenerate,IsolateApps" />
<customErrors mode="Off" defaultRedirect="Error.aspx?ErrorType=customErrors" />
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<httpHandlers>
<add verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler" validate="true" />
<add verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler" validate="false" />
<add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha" />
<add verb="*" type="ComponentArt.Web.UI.UploadProgressHandler,ComponentArt.Web.UI" path="ComponentArtUploadProgress.axd" />
<add verb="*" path="*js.axd" type="JavaScriptHandler" />
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
</httpHandlers>
<httpModules>
<add type="ComponentArt.Web.UI.UploadModule,ComponentArt.Web.UI" name="ComponentArtUploadModule" />
<!--<add type="CompressWebResource" name="CompressWebResource"/>-->
</httpModules>
<authentication mode="Windows" />
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
</pages></system.web>
<Miron.web>
<CompressorSettings reflectionAlloweded="false" optimizeHtml="true" daysInCahe="30" compressCSS="true" compressJavaScript="true" compressPage="false" compressWebResource="false" compressThirdParityScripts="false">
<excludeTypes>
<add key="image/gif" />
<add key="image/jpeg" />
</excludeTypes>
<excludePaths>
<!--<add key="~/DontCompressMe.aspx" />-->
</excludePaths>
</CompressorSettings>
</Miron.web>
<system.webServer>
<handlers>
<add name="JsHandler" verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler, MbCompression" preCondition="integratedMode" />
<add name="CssHandler" verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler, MbCompression" preCondition="integratedMode" />
<add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
<add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
<add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />
</handlers>
<validation validateIntegratedModeConfiguration="false" />
        <rewrite>
            <rules>
                <rule name="URL">
                    <match url="page/([0-9]+)" />
                    <action type="Rewrite" url="/?pageid={R:1}" />
                </rule>
            </rules>
        </rewrite>

</system.webServer>
</configuration>

Boyan Dimitrov
Telerik team
 answered on 02 Oct 2013
1 answer
44 views
Hi there,
I found a little bug of AutoCompleteBox..
When I Use Chinese or other double-size word in EmptyMessage,like this
EmptyMessage="输入客户名称中的任意字符"
It will only display half (see attachment)

 I track the box with firebug,found that when the racinput is empty, it have a attr  "size=13"
this "13" is then length of my empty message
In  english ,it works fine ,because  size=13 can display 13 chars,
but in chinese ,it only display half ,because one chinese character will take 2 size...

the solution is.....
use space .....
EmptyMessage="输入客户名称中的任意字符             "

Nencho
Telerik team
 answered on 02 Oct 2013
1 answer
110 views
When running the project locally my TabStrip displays and works properly.  However when publishing my project to production it becomes malformed (see attached photo) and will return the below error message when clicking on a tab.  Locally I am using IE 10 while in testing and while testing the published results.  I have also tested this with IE 9 and still get the same results. 

How can I go about resolving this issue?

Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E)
Timestamp: Fri, 27 Sep 2013 12:31:58 UTC
 
 
Message: Invalid argument.
Line: 3665
Char: 9
Code: 0
URI: http://devsvr:87/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%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a0507d587-20ad-4e22-b866-76bd3eaee2df%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3ab7778d6c%3ac08e9f8a%3ae085fe68%3a82923ac3%3a1bb784d4%3a874f8ea2%3af46195d3%3a19620875%3acda80b3%3a383e4ce8%3a7165f74
Nencho
Telerik team
 answered on 02 Oct 2013
7 answers
1.3K+ views
If I click a button to pop up a RadWindow which include a save button. How to design to have loading panel  in whole RadWindow while clicking the save button?
Maria Ilieva
Telerik team
 answered on 02 Oct 2013
1 answer
191 views
hi.

i'm making RadDropDownList in RadGrid EditItemTemplete. 

I works in case modify exsit rows.

But, in case 'Add Row'. a dropdownlist is disappeared after i select item and change focus.

I tried some. and i found  it happends when the text and value of the DropDownListItem is same. 

Please let me know, what's wrong with it.

Thank you.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" CellSpacing="0"
            GridLines="None" Skin="Office2010Silver" HeaderStyle-HorizontalAlign="Center" AllowAutomaticInserts="true" AllowAutomaticDeletes="true"
            AllowAutomaticUpdates="True" AutoGenerateColumns="False" OnBatchEditCommand="RadGrid1_BatchEditCommand"
            OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource = "RadGrid1_NeedDataSource">
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <Resizing AllowColumnResize="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="True" ScrollHeight/>
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="PLNT_CD,DM_NO" CommandItemDisplay="Top"
                EditMode="Batch" BatchEditingSettings-OpenEditingEvent="Click">
 
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="P_CODE"
                    HeaderStyle-Width="80px"
                    FilterControlAltText="Filter PLNT_CD column"
                    UniqueName="PLNT_CD" DataField="PLNT_CD">
                            <%# Eval("PLNT_CD")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList runat="server" ID="PlntCodeDropDown" OnPreRender="PlntCodeDropDown_OnPreRender" Width="80px">
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="DM NO" HeaderStyle-Width="150px" FilterControlAltText="Filter DM_NO column" UniqueName="DM_NO" DataField="DM_NO">
                        <ItemTemplate>
                            <%# Eval("DM_NO")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="tx_dm_no" runat="Server" MaxLength="20"></asp:TextBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="CloseYN" HeaderStyle-Width="80px" FilterControlAltText="Filter CLOSE_YN column"
                    UniqueName="CLOSE_YN" DataField="CLOSE_YN">
                        <ItemTemplate>
                            <%# Eval("CLOSE_YN")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList runat="server" ID="CloseYNDropDown" Width="50px"  >
                                <Items>
                                    <telerik:DropDownListItem Text="Y" Value="Y" />
                                    <telerik:DropDownListItem Text="N" Value="N" />
                                </Items>
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <NoRecordsTemplate>
                </NoRecordsTemplate>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                </EditFormSettings>
 
            </MasterTableView>
 
            <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
 
            <FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
Nencho
Telerik team
 answered on 02 Oct 2013
1 answer
87 views
Hi,

I have a listview where I have implemented drag and drop where the dropevent is triggered in Javascript. When I have the RadAjaxPanel property EnableAJAX="False" set to False it works and performs a complete request. For the panel I have OnAjaxRequest="manager_ajaxrequest". 

The Javascript either triggers one of these two depending if I am using ajax=true (first one) and second one when ajax=false.
$find("<%= MyPanel.ClientID%>").ajaxRequestWithTarget("<%= MyPanel.UniqueID %>", pData);
or 
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(pData);

The drop is on a different div in the listview to order them in a custom order. Any input on what to do? Is a different event triggered? Any input is appreciated to make it work in ajax-mode.

Regards, Fredrik.
Angel Petrov
Telerik team
 answered on 02 Oct 2013
1 answer
366 views
I have a RadGrid using a standard grid hierarchy and am trying to open a RadWindow from within the OnItemCommand event when a radbutton column item is selected. When I select the button the code below does run (checked using a break point); however, the radwindow does not open and the radgrid itself appears to do a partial postback. Any Ideas why the rad window does not display? The code is  as follows:

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
 {
         if (e.CommandName == "ButtonEdit")
         {
                 //opening window
                RadWindow newWindow = new RadWindow();

                 newWindow.ID = "RadWindow1";

                 newWindow.NavigateUrl = "Window1.aspx";

                 newWindow.VisibleOnPageLoad = true;

                 RadWindowManager1.Windows.Add(newWindow);
        }
   }

Also note, the RadWindowManager is valid as it is used elsewhere on the page with no problems.

Thanks,


Steve Holdorf
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Oct 2013
2 answers
76 views
Hi Team,

I am not able to reverse the legend order in the radchart. Please help me fix it.
Santosh
Top achievements
Rank 1
 answered on 02 Oct 2013
10 answers
514 views
When using MetroTouch skin, the remove file button image not showing. Perhaps it's background image position setting in CSS is off, or the stripe image is wrong. Also, there's not visual feedback on hover.

Until a fix is available, is there a way to replace the button image?

Sample image screen shot as attached.

  
Steven
Top achievements
Rank 1
 answered on 01 Oct 2013
3 answers
82 views
I am working with radgrid pulling the data relating to groups and subgroups using MasterTableView and detailtable view.I am using edit on row click to update the text by clicking on another row. If I click on the MasterTableView rows and edit something and immediately click on the row belongs to mastertableview,It is woring fine.Means I am out of focus and my previous row is displaying normal way and the row clicked currently is in the edit mode.If I click on the row belongs to detailtableview,the previous row is still staying in edit mode and the current row clicked also in edit mode.It is happening in all the browsers as well as in all versions.i.e IE 8 or 9, Crome as well.

Also some times if I click on rows of  the detailedtableview,corresponding items in the mastergridview are becoming blank.


   var hasChanges,editedRow;

 function RowClick(sender, eventArgs) {
            if (!hasChanges) {
                if (eventArgs instanceof Object == true) {
                    editedRow = eventArgs.get_itemIndexHierarchical();
                }
                else {
                    editedRow = eventArgs;
                    if (parseInt(editedRow) >= 0)
                        editedRow = editedRow - 2;
                }

                 $find("<%= ClassGrid.ClientID %>").get_masterTableView().editItem(editedRow);

                document.getElementById('<%=hfEditRow.ClientID%>').value = editedRow;
            }

            CallAjaxManagerUpdate();
        }
           
  function CallAjaxManagerUpdate() {
            if (editedRow && hasChanges) {
                $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(editedRow);
                hasChanges = false;
                document.getElementById('<%=hfEditRow.ClientID%>').value = "";
            }
        }


Any help can be appreciated.

Thanks
Murthy
Konstantin Dikov
Telerik team
 answered on 01 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?