Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
I am using the EditItemTemplate in the RadGrid to input the values .When ever the user submitting the vales i am validating the values inserted by the user and if it is invalid i am showing the Edit template using the "e.canceled =true" command inside the InsertCommand Eventhandler of the Grid.My issue is when i am showing the EditTemplate after the values are validated all the previously entered values in the Edit Template are getting lost . how can we hold all the entered values in the EditTemplate Form?
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
172 views
Hi. I have problem about showing google map in XmlHttpPanel. I have google map control from http://th.googlemaps.subgurim.net/

This is .aspx page
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<%@ Register assembly="GMaps" namespace="Subgurim.Controles" tagprefix="cc1" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server"
        EnableClientScriptEvaluation="True"
        onservicerequest="RadXmlHttpPanel1_ServiceRequest">
        <asp:Label ID="Label1" runat="server"></asp:Label>
        <cc1:GMap ID="GMap1" runat="server" Width="920px" Height="452px" />
    </telerik:RadXmlHttpPanel>
    <br />
<br />
<br />
<input type="button" value="Set Value" onclick="SetValue();return false;" />
<script type="text/javascript">
    function SetValue() {
        var panel = $find("<%=RadXmlHttpPanel1.ClientID %>");
        panel.set_value("555");
    }
</script>
    <%--<cc1:GMap ID="GMap1" runat="server" Width="920px" Height="452px" />--%>
</asp:Content>

This is aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Subgurim.Controles;
 
public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    
 
    }
    protected void RadXmlHttpPanel1_ServiceRequest(object sender, Telerik.Web.UI.RadXmlHttpPanelEventArgs e)
    {
        Label1.Text = "Label updated by XmlHttpPanel callback at: " + DateTime.Now.ToString();
        //access the callback value from the client on the server using the e.Value property
        Label1.Text += "<br/> The returned value fron the client's set_value() function is: <strong>" + e.Value + "</strong>";
 
        GMap1.Version = "2";
        GMap1.enableDragging = false;
        GMap1.enableGoogleBar = false;
        GMap1.Language = "th";
        GMap1.setCenter(new GLatLng(13.7729, 100.4857), 14);
        GMap1.enableHookMouseWheelToZoom = false;
        //GMap1.mapType = GMapType.GTypes.Hybrid;
        GMap1.addControl(new GControl(GControl.preBuilt.MapTypeControl));
        GMap1.enableRotation = true;
        GMap1.enableDragging = true;
    }
}

Problem: At first page load google map can be display but when i click button google map can't display (background is gray colour). You can see image in attach file.


Please advise.
Thank you for your help.
Nott
Pero
Telerik team
 answered on 22 Nov 2011
1 answer
275 views
Hi all,

What is the best way to rebind a RadTreeView after inserting a new node in the database that is feeding the RadTreeView?

Thanks,
Bruno
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
2 answers
174 views
Hello Dear Sir or Madam

In http://portal.recris.info/ , Ι have implemented 4 tabs, using RadTabStrip and RadMultipage.
In each Tab I'm loading different pages from the same site.
As you can see, at the First Tab, called Accidents, I have put a RadGrid with several data.
At the last column of the Grid, I have an asp link which is directing to a google map I have implemented in the same site.
This link is passing to the map, the ID of the record.

I have also this whole map, with all the markers, to the 3rd Tab (called: Accident's map)
Currently the link at the Grid, is opening the map to a new window (target="_blank")
Is it possible to open the link in the 3rd tab instead? (using some kind of code)

I want to use this implementation to another site also.

Thank you in advance for your reply.

Velissarios
vhousos@gmail.com
Velissarios
Top achievements
Rank 1
 answered on 22 Nov 2011
1 answer
480 views
Hi there

I have a radEditor that is set to render its content area as an IFrame, using a custom version of EditorContentArea.css. The problem is, that the styles in the custom stylesheet file do not seem to be utilised by the elements in the rendered IFrame.

The IFrame is rendered as this in Firefox:

<iframe frameborder="0" style="width: 100%; height: 100%; margin: 0px; padding: 0px;" id="[myeditorclientid]_contentIframe">

<html>
<head></head>
<body>
<div class="editorcontentdiv2">
<p class="editorcontent2">My dog has no nose</p>
</div>
</body>
</html>

</iframe>


The markup for the editor is provided with the correct location for the css file in question:

<CssFiles>
<trk:EditorCssFile Value="~/App_Themes/PD_RadSkins/PD_RadSkin_1/EditorContentArea.PD_RadSkin_1.css" />
</CssFiles>

and I also use a preload routine to add all the required CSS files for the page in Page_Load, something like this:

AddCss("~/App_Themes/PD_RadSkins/PD_RadSkin_1/EditorContentArea.PD_RadSkin_1.css", Me.Page)

This method works for all the other CSS files, but when it comes to the IFrame content, the custom styles in my EditorContentArea css file are not applied. Sure enough, when I examine the <p> or <div> elements of the generated markup, e.g. in Firebug, it reports that: "The element has no style rule".

What could be causing this situation? Please don't advise using DIV mode, I need the IFrame functionality.

Thanks for any advice you can provide.



 




Rumen
Telerik team
 answered on 22 Nov 2011
1 answer
52 views
Hello,

Is drag and drop from RadPanelBar supported yet?  I would like to drag and drop from RabPanelBar to RadGrid.

Thanks,

Dan
Kate
Telerik team
 answered on 22 Nov 2011
1 answer
62 views

Hi,

I have a RadTreelist inside a RadTreeview nodes.My requirement is to Retrieve  RadTreelist from a RadTreeview using javascript.My aim is to when clicking on the RadTreeview node ,my RadTreelist should be expand at level 1.How is it possible using javascript?How to iterate each nodes using javascript?

Thanks ,
Sindu.
Pavlina
Telerik team
 answered on 22 Nov 2011
6 answers
186 views
Hi,

1. ColorPicker always behind of jQuery UI Dialog.
2. ColorPicker appears with delay after first opening.

My code here:
<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
</script>
<head runat="server">
    <title></title>
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="myDialog" style="display: none; overflow:hidden;">
        <table>
            <tr>
                <td>
                    Value: </td>
                <td>
                    <telerik:RadColorPicker 
                        ID="RadColorPicker1" 
                        ShowIcon="true"
                        style="z-index:5000"  
                        runat="server">
                    </telerik:RadColorPicker>
                </td>
                <td>
                    <input id="Button1" type="button" value="Save" onclick="javascript:saveColor();" />
                </td>
            </tr>
        </table>
    </div>
    <div id="selectedColor"></div>
    <input id="Button2" type="button" value="New color" onclick="javascript:openDialog();" />
    </form>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
    type="text/javascript"></script>
<script type="text/javascript">
  
    function saveColor() {
        var c = $find("RadColorPicker1");
        $("#selectedColor").html("Your selected color is: " + c.get_selectedColor());
        $("#myDialog").dialog("close");
    }
  
    function openDialog() {
        $("#myDialog").dialog({
            title: 'Choose color',
            width: '250',
            draggable: false,
            resizable: false,
            show: 'slow',
            hide: 'slow',
            modal: true
        });
    }
  
    $(document).ready(
        function () {
            //
        }
    );
  
</script>
</html>

Please solve this issue!

Thanks!
Niko
Telerik team
 answered on 22 Nov 2011
1 answer
160 views
<div class="product-grid">
<asp:DataList ID="dlProducts" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
RepeatLayout="Table" ItemStyle-CssClass="item-box">
<ItemTemplate>
<nopCommerce:ProductBox1 ID="ctrlProductBox" Product='<%#Container.DataItem%>'
runat="server" />
</ItemTemplate>
</asp:DataList>
</div>
<div class="clear">
</div>
<div class="product-pager">
<telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="dlProducts">
            <Fields>
                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                <telerik:RadDataPagerGoToPageField />
                <telerik:RadDataPagerNumericPageSizeField />
                <telerik:RadDataPagerSliderField />
            </Fields>
        </telerik:RadDataPager>
</div>



please help me how can i use raddatapager with asp datalist ???

i tried this but its not working
???
Iana Tsolova
Telerik team
 answered on 22 Nov 2011
0 answers
122 views
i Deleted Css files from TFS and added new css files those i merged in to main.but if anyone take latest they are not getting latest means Css files are not including to Project wat is the problem please give me any suggestion
Abu
Top achievements
Rank 1
 asked on 22 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?