Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
155 views
I start to having problem with loading Telerik WebResource.axd:
http://localhost:54414/WebResource.axd?d=vyJgXEP_8MOd4VGCkvSPylUOVRehaA1ppV0-Q3wIHGJMlpF493Yx0CsmL6YZnuuz4Kijzq2KnHywF0tKNK1fR_4RStXj2s_UzbR0wqOh5C96OFeg...
for this reason rest of .js code does not work. In my conf file I have:
 
<handlers><br>      <remove name="ChartImage_axd"/><br>      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/><br>      <remove name="Telerik_Web_UI_DialogHandler_aspx"/><br>      <remove name="Telerik_RadUploadProgressHandler_ashx"/><br>      <remove name="Telerik_Web_UI_WebResource_axd"/><br>      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd"  type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/><br>      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/><br>      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/><br>      <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/><br>      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/><br>      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/><br>      <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.612, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/><br>    </handlers>

and also:
<httpHandlers><br>      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false"/><br>      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/><br>      <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false"/><br>      <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><br>      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" validate="false"/><br>      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false"/><br>      <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.612, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" validate="true"/><br>      <add path="ScriptResource.axd" verb="GET,HEAD"  type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/><br>    </httpHandlers>
I have looking in :
http://www.telerik.com/help/aspnet-ajax/introduction-web-resources-troubleshooting.html

I have no idea where to start.

Thins in advance.
Genady Sergeev
Telerik team
 answered on 10 Sep 2013
2 answers
270 views
I have an attachment column that, in edit mode, allow to upload and save attachment in a folder named "Allegati".
<telerik:GridAttachmentColumn FileName="attachment" FilterControlAltText="Filter columnAllegati column" HeaderText="Allegati" UniqueName="columnAllegati" Visible="False">
               </telerik:GridAttachmentColumn>
With this snippet (thanks to Princy for it), when a file is uploaded a link is generated and it is visible inside the record when it is in edit mode. See picture attached.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        //Generate links of attachments inside folder "Allegati" visible when in edit mode
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)// Check if the Grid is in EditMode
        {
            GridEditableItem edit = (GridEditableItem)e.Item;
            DirectoryInfo dir = new DirectoryInfo(@"C:\Users\Pink\Documents\Visual Studio 2012\Projects\ManagDoc_Framework\Test1_managDoc\Test1_managDoc\Allegati");// path of the target folder where your  files are stored
 
            DirectoryInfo[] subDirs = dir.GetDirectories();
            FileInfo[] files = dir.GetFiles(); //Getting the files inside the Directory
            foreach (FileInfo fi in files) //To loop through all files for setting each file as HyperLink
            {
                HyperLink lktest = new HyperLink(); //Add HyperLink Column
                lktest.ID = "lnk" + Guid.NewGuid(); //Setting Unique IDs
                lktest.Text = fi.Name.ToString(); //Get the File name
                lktest.NavigateUrl = "#";
                lktest.Attributes.Add("Onclick", "ViewCheck('" + fi.Name + "')"); // Calling the JS event
                //Adding the HyperLink to EditForm
                edit["columnAllegati"].Controls.Add(lktest);
                edit["columnAllegati"].Controls.Add(new LiteralControl("<br>"));
            }
        }
    }
The above feature works very well and I am happy of the result I got thanks to the help of this forum members.
Now what I would like to achieve is to show for each record only the links of the uploaded files relevant that particular record.
I mean If I load an attachment named "Mickey Mouse" from record A, and an attachment named "Donald duck" from record B, when I open record A I would like to see only the link to Mickey Mouse and when I open record B I would like to see only the link to Donald Duck.
Like in this forum, each thread shows links to the own attachments.
How can I achieve that?
Felice
Top achievements
Rank 1
 answered on 10 Sep 2013
3 answers
205 views
I'm not sure how to do this. 

I tried
<style type="text/css" >
        .trtxt
        {
             HoveredStyle-Font-Bold: true; 
        } 
    </style>
 
 
<telerik:RadTextBox ID="rtxtCity" runat="server" MaxLength="25" CssClass="trtxt"   >
                        </telerik:RadTextBox>

   

but the effect did not work.
Any suggestions?

 

 

 

 

 

 

Jack Voss
Top achievements
Rank 1
 answered on 10 Sep 2013
1 answer
69 views
I would like to add a dropdown to my radEditor toolbar which looks exactly like the "BackColor" EditorSplitButton.  It will set the background color for all the content rather than just selected text.

This article gives me a good idea on how to add the dropdown:
http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx

And I believe I can set the background like this:

var style = editor.get_contentArea().style;
var val = args.get_value();

style.backgroundImage = "none";

style.backgroundColor = val;


The above is all working great, all I need is the markup to make the custom EditorSplitButton look just like the BackColor one.  I still need the default BackColor dropdown as well so I don't want to just overwrite the functionality for that command.


Ianko
Telerik team
 answered on 10 Sep 2013
3 answers
78 views
In the following code, RadAsyncUpload is not working in mozilla version 3.0.19

<
asp:UpdatePanel ID="UpdatePanel3" runat ="server"  UpdateMode ="Conditional" >
<ContentTemplate >
 
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server"
        ExpandMode ="MultipleExpandedItems" Width ="900px"
        Skin="Metro"  Font-Names ="Arial" Font-Size ="12px"  >
 
      <Items >
                 <telerik:RadPanelItem  Expanded ="False" Text="CALL INFORMATION" Font-Size ="Small"  Font-Names="Arial">
                 <ContentTemplate >
 
                  <asp:UpdatePanel ID="UpdatePanel5" runat ="server"  EnableViewState ="true"  UpdateMode ="Conditional" >
                        <ContentTemplate >
 
                        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"  Font-Names ="Arial" Font-Size ="12px"  PostbackTriggers ="btnSave,btnSaveCallInfo" MultipleFileSelection ="Automatic" Width ="300px" AllowedFileExtensions =".jpg,.png,.jpeg,.gif,.bmp,.doc,.docx,.xls,.xlsx,.txt,.pdf" Localization-Select="Browse">
                        </telerik:RadAsyncUpload>
 
                        </ContentTemplate>
                  </asp:UpdatePanel>
 
                 </ContentTemplate>
                 </telerik:RadPanelItem>
     </Items>
  </telerik:RadPanelBar>
 
</ContentTemplate>
</asp:UpdatePanel>
Helen
Telerik team
 answered on 10 Sep 2013
2 answers
65 views
Hi,

I have Splitter with two vertical panes. I have TreeView in left pane and I want to display .aspx page from same application in right pane on Node click.
Page in right pane displays fine in all the browsers, except IE8. In IE8 right pane is blank. Here is my code:
<script type="text/javascript">
    function ClientNodeClick(sender, eventArgs)
        {
             var contentPane = $find("<%=contentPane.ClientID %>");
             var url ="text.aspx"
             contentPane.set_contentUrl(url);
         }
</script>
Page that I want to display in right pane contains RadGrid and some asp.net controls like textboxes, rado buttons etc.
Please help.
Rob
Top achievements
Rank 1
 answered on 10 Sep 2013
2 answers
85 views
Hi

I have an ASP.NET page containing a RADGrid with an EditFormTemplate. In the UpdateCommand of the grid I do some validation stuff and I would like to assign a CssClass to all the fields of the EditFormTemplate containing invalid values.

The validation is working properly. However, I can't manage to assign the CssClass to the controls. My UpdateCommand reads as follows:
Protected Sub CompanyGrid_UpdateCommand(sender As Object, e As GridCommandEventArgs) Handles CompanyGrid.UpdateCommand
  Dim objEditedItem As GridEditableItem = CType(e.Item, GridEditableItem)
  Dim objTextBox As RadTextBox
 
  objTextBox = CType(objEditedItem.FindControl("txtCompanyname"), RadTextBox)
  If objTextBox.Text.Trim() = "" Then
    objTextBox.CssClass = "MandatoryField"
    e.Canceled = True
    Exit Sub
  End If
 
End Sub

The CSS file contains the following definition for the class MandatoryField:
.MandatoryField
{
    margin-left: 0em;
    border:1px solid #397D47;
    background-color:#F77A80;
    font-size: 1.0em;
}

After exiting the UpdateCommand function, the page is reloaded but the CssClass is not set to the fields in question. How can I achieve a visual marking of the fields with invalid values?

Kind regards

Jürg
Jürg
Top achievements
Rank 1
 answered on 10 Sep 2013
1 answer
114 views
Hi.
Im trying to open a radwindow on the OnRowDbClick event,but the window is not appearing.
Any idea, why it doesn't show.

Thanks,
Dawson
Princy
Top achievements
Rank 2
 answered on 10 Sep 2013
2 answers
63 views
Hi, i've read through a lot of the problems about height, tried a lot of things but nothing gets me the right result.

I've been trying to make a page run correctly on ie6 & ie7 and i'm stuck at this one.

http://urbanism.pmb.ro/

the splitter decides to go to 400px. It is in a div that instead of height needs to have top and bottom (to fit the menu and the info bar). And for some reason it decides to override my 100% and just go to 400px. anything i try gets me a weird result.

suggestions?
Kineas
Top achievements
Rank 1
 answered on 10 Sep 2013
2 answers
85 views
I have been using the following example as my guide in trying to utilize the TabStrip in a wizard type application.
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/wizard/defaultvb.aspx

Each tab will load a user control and allow the user to submit the information.  When the user clicks the next button it will load the data into our database and continue to step them through.  If they however leave the application the next time they log in they can pick up where they left off.  The problem is the Page_Load event with the 2nd tab and others down the line.  It will not get to the point where it loads the data.
Should I be trying to call the GetData from the button control from the first tab? 

Code below is used on each of my user control page.  How might I fix this?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not IsPostBack Then
        GetData()
    End If
End Sub
Kurt Kluth
Top achievements
Rank 1
 answered on 10 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?