Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
49 views
All exports are working except pdf is coming empty????????
Pavlina
Telerik team
 answered on 19 Apr 2010
2 answers
88 views
Hi All,

I have a combobox which is on the edittemplate of a gridview. The configuration of my combobox is Automatic Load on Demand. Every time I click the edit button on my gridview the combobox loads all items then expands the list. Is there way to load the items silently by not expanding the list and disable the control to prevent the user in entering text while loading for the first time.

The combobox has the setting filtering="contains" and contains ~30,000 items from an sqldatasource. It's slow, Is there a way to speed up the loading of this huge amount of list.

Thank You,
Aivan

Simon
Telerik team
 answered on 19 Apr 2010
1 answer
585 views
Hi,
    I am using Radgrid. On page load, it is empty. But still i want to show the grid header.
And also if i bind empty datasource, the header should not become invisble.
How to achieve this? I have set 

ShowHeader

 

="true" but no use.



Thanks in advance.

 

Princy
Top achievements
Rank 2
 answered on 19 Apr 2010
1 answer
269 views
Hola,

I'm currently developing a form using a radgrid to allow users to register multiple guests for an event. Each row in the grid is a guest and the grid is editable to allow the users to add their own guests.

Two of the columns are Age & GuestOption
<telerik:GridTemplateColumn UniqueName="Age" HeaderText="Age (Child Only)"> 
                <ItemTemplate> 
                    <asp:Label runat="server" ID="lblAge" Text='<%# Bind("Age") %>'></asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <asp:TextBox runat="server" ID="editAge" Text='<%# Bind("Age") %>' Width="20px"></asp:TextBox> 
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="editAge" runat="server" ValidationExpression="^[0-1]?[0-7]$" ErrorMessage="Whole numbers, under 18"></asp:RegularExpressionValidator> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridDropDownColumn DataField="GuestOptionsID" DataSourceID="GuestOptionsDataSource" 
                HeaderText="Options" ListTextField="GuestOption" ListValueField="GuestOptionsID" 
                UniqueName="GuestOption" ColumnEditorID="GuestOptionsIDEditor"> 
            </telerik:GridDropDownColumn> 

<asp:SqlDataSource ID="GuestOptionsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:edu_yale_som_alumnireunion_connectionstring %>" 
    ProviderName="System.Data.SqlClient" SelectCommand="SELECT [GuestOptionsID], [GuestOption] FROM [GuestOptions] WHERE Visible='true' order by DisplayOrder"> 
</asp:SqlDataSource> 


I have age being validated so that if they enter an age is needs to be less than 18. But, I also need to validate based on the option the select in the GuestOption drop down.

I'm trying to use a custom validator, but I need to be able to have access to both the value in the Age column & the value in the GuestOption drop down. Is there an easy way for me to access both those values during the validation? I can just do this all after the post the form, but I would prefer to do this with validation so that they cannot enter invalid data from the get go.

thanks,

-Jon
Sebastian
Telerik team
 answered on 19 Apr 2010
1 answer
81 views
Currently if there is not enough room to fit the filter options inside of the grid it will extend beyond the top of the grid.

I want to make the list extend beyond the bottom instead... I tried changing the Expand Direction property for FilterMenu with no luck.

How can I do this?


Radoslav
Telerik team
 answered on 19 Apr 2010
3 answers
228 views
I dont know why I guess its because we are on IE6, but the normal GridView control is a lot quicker than the RadGrid retutning the same data, so I'm stuck with the GridView.

I've implemented RadWindows to give me modal pop ups for data from the Gridview rows.

But what is happening is this - with RadAjaxManager the pop up would only show once, I then removed the RadAjaxManager and the pop up appears once after a postback. ie on load it works, I then hit the buton again and the page postsback (no ajax) then the pop up works again.

This is my code behind in the rowdataBound event:
 
            'SET UP BUTTON FUNCTIONS  
            'set View Demog button action  
            Dim ibd As ImageButton = CType(e.Row.FindControl("btnViewDemog"), ImageButton)  
            ibd.Attributes("href") = "#"  
            ibd.Attributes("onclick") = [String].Format("return ShowDemog('{0}');", e.Row.DataItem("id"))  
 
 And this is my client side javascript:
            function ShowDemog(id) {  
                alert("Boo");  
                window.radopen("ShowDemog.aspx?Patient_ID=" + id, "ShowDemog");  
                return false;  
            } 

In the pop up page after processing I call this:
ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", True) 

Any help would be appreciated

Andy
Andy Green
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
89 views
Do I need a dll for each radControl? It looks like there was a dll for each control in ASP 2.0, but did this go away with ASP 3.5?
Sebastian
Telerik team
 answered on 19 Apr 2010
3 answers
296 views
Hi,
I have a page contains iframe
ex: Page1.aspx contains radwindow and a iframe, iframe load Page2.aspx
Page2.aspx contains a button1 and a textbox
How to open radwindow when button1 is clicked and set arguments of radwindow when it closed to value of textbox
Thanks
Georgi Tunev
Telerik team
 answered on 19 Apr 2010
1 answer
75 views
Hi everybody,
I'm testing Telerik controls in order to use them in a wss/moss custom application. I need help passing data between different Panels.

My final goal is to make refreshing different web parts when i click on a control on a single web part passing some data to the other web parts before they render again.

I designed my app with 2 panel: a menu area and a content area.
The idea was to customize the master page where I put:

  • 1 asp:ScriptManager
  • 1 telerik:RadAjaxManager
    <asp:ScriptManager runat="server" ID="ScriptManagerMain" /> 
     <telerik:RadAjaxManager ID="RadAjaxManagerMain" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="CustomPanelMenu"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanelMain"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="CustomPanelMain"  /> 
                 </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="CustomPanelMain"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanelMain"/> 
                    <telerik:AjaxUpdatedControl ControlID="CustomPanelMenu" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 


  • 1 asp:Panel to be used for menu purposes
                <asp:Panel ID="CustomPanelMenu" runat="server"> 
                    <WebParts:TestMenu001 runat="server" ID="TestMenu001_1" Title="MenuSx" __MarkupType="vsattributemarkup" __WebPartId="{0ce525f0-089d-4f57-902a-78d4b87b34b9}" WebPart="true" __designer:IsClosed="false" /> 
              </asp:Panel> 
 



  • 1 asp:Panel where I put the standard moss content placeholder "PlaceHolderMain" for main content web parts
  • 1 telerik:RadAjaxLoadingPanel to make the application more interactive
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelMain" runat="server"/> 
 
<asp:Panel ID="CustomPanelMain" runat="server"> 
    <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server"> 
    </asp:ContentPlaceHolder> 
</asp:Panel> 
 

As you can see in the first code block, I configured the RadAjaxManager in order to update the panels.
I had to pass data between the web part I will put in the panels:
For example: when I click on a control in the web part put in the menu panel I want the web part put in the CustomPanelMain will refresh with the id I chose.

I try to put data in the Page.Session, but I tested that the refresh on the main web part will start before the data is written in the menu web part.
What am I wronging? What do you suggest to do that?

Many thanks,
RF


Sebastian
Telerik team
 answered on 19 Apr 2010
1 answer
106 views

I have got a simple grid two bound columns and one template column with a textbox.

I need to get the values of the bound columns is this possible. I need to multiply the textbox value with the bound column value

Now i can get the textbox value using

 

 

// var sumInput = null;

// var tempValue = 0.0;

// var retail = 0.0;

// function Load(sender, args) {

// sumInput = sender;

// }

// function Blur(sender, args) {

// sumInput.set_value(tempValue + (sender.get_value()));

// }

// function Focus(sender, args) {

// tempValue = sumInput.get_value() - (sender.get_value());

// }

 

Yavor
Telerik team
 answered on 19 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?