Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
382 views
Hello,

Why the DatePicker control keeps scrolling my page to the top.
is there a way to fix that?

thanks,

Sean
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
134 views
Hello, I have a Upload control that depends on some other fields on the webpage being set to a certain values before it starts the upload.  When I click the asp submit button I check these values server side and if they are not set proper I display a message and return.  THe problem is it seems the upload process starts then after some time (depending upon the size of the file) the message appears.  Can I not check the values on the page before the upload actually starts.  I tried using asp field validators but there are issues using this as I have other fields on the screen that cause postbacks this cause the validator to check the fields prematurally.

THanks Kerry
Veselin Vasilev
Telerik team
 answered on 01 Dec 2008
1 answer
84 views
Hi,
    I have a master page where in the RADAJAXPanel is present and a content page wherein the google map and few RadComboBoxes are present.
The Scenario is as follows :
1) The RADComboBoxes have a list of cities populated.
2)The GoogleMap creates a marker on the map based on the city selected (based on Latitudes and Longitudes of the city).

The Problems faced :
   1) On the first/Initial load of the page the map works fine with the marker.
   2) whenever a different city is selected from the combbox Auto post back is triggered. The map disappears .....
   3) Without RADAJAXPanel the map works fine even after a different city is selected.... , But when RadAjaxPanel is used   the GoogleMap disappears.....
Why is it so happening??
Can you suggest me a Solution for the same...
Thanks & Regards,
Vinay Manvi
Vlad
Telerik team
 answered on 01 Dec 2008
8 answers
233 views
Hi

I have code like :


<head id="Head1"  runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
            <!--                
                function RowSelected(sender, eventArgs)
                {
                    var text = "";
                    text += "Row with index: " + eventArgs.get_itemIndexHierarchical() + " was selected";
                    document.getElementById("OutPut").innerHTML = text;
                }                               
            -->
    </script>
    </telerik:RadCodeBlock>
</head>
<body class="BODY">
    <form runat="server" id="mainForm" method="post" style="width: 100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <!-- content start -->
        <div id="log" class="module" style="width: 350px; margin-bottom: 20px; font-weight: bold;
            height: 20px;" runat="server">
        </div>
        <div class="module" style="height: 20px; width: 350px;">
            <span style="font-weight: bold;">Last event: </span><span id="OutPut" style="font-weight: bold;
                color: navy;"></span>
        </div>
        <br />
       
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"  >      
        <div style="width:740px;overflow:auto">
        <telerik:RadGrid ID="RadGrid1" Skin="Sunset" runat="server"  AutoGenerateEditColumn="true"
             PageSize="10" OnNeedDataSource="RadGrid1_NeedDataSource">
            <MasterTableView Width="100%" EditMode="PopUp" >           
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true">
                <ClientEvents OnRowSelected="RowSelected" ></ClientEvents>
                <Selecting AllowRowSelect="True"></Selecting>
               
            </ClientSettings>
        </telerik:RadGrid>
        </div>
        </telerik:RadAjaxPanel>        
        <!-- content end -->       
    </form>
</body>

......... If I click on row everything in IE and FireFox works fine. Informatin about clicked row is shown. I can edit in PopUp window too.


Now. if I made file Test.js like (with the same function) :

             function RowSelected(sender, eventArgs)
                {
                    var text = "";
                    text += "Row with index: " + eventArgs.get_itemIndexHierarchical() + " was selected";
                    document.getElementById("OutPut").innerHTML = text;
                }


and atachet it to my aspx file, this file loo like :

<head id="Head1"  runat="server">
  <script src='Test.js' language="javascript" type="text/jscript"></script>
</head>
<body class="BODY">
    <form runat="server" id="mainForm" method="post" style="width: 100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <!-- content start -->
        <div id="log" class="module" style="width: 350px; margin-bottom: 20px; font-weight: bold;
            height: 20px;" runat="server">
        </div>
        <div class="module" style="height: 20px; width: 350px;">
            <span style="font-weight: bold;">Last event: </span><span id="OutPut" style="font-weight: bold;
                color: navy;"></span>
        </div>
        <br />
       
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"  >      
        <div style="width:740px;overflow:auto">
        <telerik:RadGrid ID="RadGrid1" Skin="Sunset" runat="server"  AutoGenerateEditColumn="true"
             PageSize="10" OnNeedDataSource="RadGrid1_NeedDataSource">
            <MasterTableView Width="100%" EditMode="PopUp" >           
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true">
                <ClientEvents OnRowSelected="RowSelected" ></ClientEvents>
                <Selecting AllowRowSelect="True"></Selecting>
               
            </ClientSettings>
        </telerik:RadGrid>
        </div>
        </telerik:RadAjaxPanel>        
        <!-- content end -->       
    </form>
</body>

 ... in IE everything work fine but in FireFox nothing work good. RowClick Event do not fire, I can't open PopUp window and edit row. Why ??

I tried to made :

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script src='Test.js' language="javascript" type="text/jscript"></script>
  </telerik:RadCodeBlock>

... but I have the same problems with this code.

Regards
Krzysztof


Krzysztof
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
133 views
HI, i have downloaded Q3 controls, i want that my rotator start in automatic advance on page load, and then users can stop, scroll item by item and re-start automatic playng.

I'm not able to make rad:rotator working, if i set rotatortype="automaticAdvance" when i use client side API

     function StopRotator(rotator) {  
      if (rotator.autoIntervalID)  
           {  
                window.clearInterval(rotator.autoIntervalID);  
                rotator.autoIntervalID = null;  
           }  
 
            return false;  
        } 

rotator doesn't stop...

if i use "rotator.pause()" and user go with mouse out itemlink... rotator starts playing...
Lini
Telerik team
 answered on 01 Dec 2008
1 answer
103 views
Hi, i want to use datatable in plotarea to show some more data and i have Xaxis labels set to 90 degree angle.When i visible data table lables are set to normal not to 90 degree angle. is there any way to make them show right?
Thx JS
Giuseppe
Telerik team
 answered on 01 Dec 2008
3 answers
401 views
Hi,

I'm trying to create a UserControl that would retrieve data from a database and display the results in SharePoint.
So far I have managed to create a UserObject using VS2008 (Net3.5) with a Rad GRID (Q3 2008). Testing the Usercontrol in VS works fine, data gets retrieved and is displayed in the rad grid.

Problems start when I move the UserControl to SharePoint  and include it to a page using the "SmartPart"  WebPart. The UserControl is sort of displayed in the page but it contains the following error message

"Error: unable to load ~\/UserControls\WebUserControl2.ascx
Details: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified."

Without the Rad control the UserObject is displayed correctly.

I have followed the instructions how to integrate Telerik to SharePoint, in the GAC I have the Telerik.Web.UI (version 2008.3.1105.35), in the UserControl the registration is as follows <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>.

What might be wrong here and what else should I check or do?

Tia,
kp

Dimitar Milushev
Telerik team
 answered on 01 Dec 2008
1 answer
133 views
As given in the online help
http://www.telerik.com/help/aspnet-ajax/combo_loadondemandwebservice.html
I implemented the exact same thing in my site...and I`v checked it separately as well, my query is returning values correctly.
Everything is working fine but still its giving a message box with a message "The Webservice method GetProducts failed."

Please help...
Simon
Telerik team
 answered on 01 Dec 2008
2 answers
208 views
I have followed Vladimir Enchev's example of using the RadGrid within the ASP.NET MVC Framework.
I have got my grid working, except for validation in the EditItemTemplate (which is not part of the example).

I am using ModelState.AddModelError to add errors to the model state,
but i cannot seem to obtain these values in the view (using Html.ValidationMessage).
What am I doing wrong?
Has anyone got this working?
Dennis
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
117 views
Hi Telerik ,
                 The Problem have come Export pdf Function .The Problem have i have use some control in grid control  like that  Label and DataList control by using Item Template. But data is only show of label  not of  DataList control .
Please tell me where i someting missing .


Thanks
Khalid



 
           
Daniel
Telerik team
 answered on 01 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?