Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
172 views
Hello,
I have RadChart in my application. In X axis there is description & Y axis it displays only positive value related that description. I have set height & width of RadChart. Currently there is only 15 different types of description in X-axis & some value is related to that description. Now my problem is that, Value of x axis is dynamic so that when it increases, related number displays in Y-axis gets overlapped.
How to solve this problem? Is there any way to set height & width dynamically based on number of record?
Razak
Top achievements
Rank 2
 answered on 08 Jun 2013
3 answers
92 views
I've created a panel bar in codebehind  and I want to include the onclick event of it,. below are my sample source code

  protected void Page_Load(object sender, EventArgs e)
    {
         RadPanelItem item11 = new RadPanelItem();
        item11.Text = "Add Security Question"; item1.Items.Add(item11);
        item11.ImageUrl = "Img/Slidding/TabstripPr.gif";
   
        ---here i want to register the onclick event  of the panelitem but i dont know how to do it.
        ---the idea of doing this is to build dynamic slidding menu bar through code behind and load the user control inside the tabstrip

       thanks,
    ryan

}
John ryan
Top achievements
Rank 1
 answered on 08 Jun 2013
4 answers
482 views
Hello
   I am new in using Telerik Radpane control I am having a problem in accessing server controls which are inside a div which is present in radpane. I am not able to access them in my codebehind file, there are compilation errors like the name is not present in the current context for the same aspx page code behind file. How do we access asp controls inside a panel bar item template which has a radpane.
SKande
Top achievements
Rank 2
 answered on 07 Jun 2013
5 answers
79 views
I am using 2013.1.220.35

When I use IE10 not in compatibility mode it works fine
When I use IE10 in compatibility mode there is an inline style being applies that sets the width of the textarea to 87px even though I have the width set to 99%

any ideas?
Venelin
Telerik team
 answered on 07 Jun 2013
1 answer
349 views
I am trying to show the same modal popup that I show when  I insert an item into my grid but the modalpup will not show when I click the edit linkbutton, I tried changing hte defualt insert button from radgrid to command template link button and it also would not pull up the popup.

So at this point I am lost as to what to do.  I tried taking the modalpop out of the updatepanel and it still would not call the popup.
This used to work in telerik grids.  This works like I said it loads the popup on and insert new record but not on my edit linkbutton.

<telerik:RadGrid ID="myRadGrid" runat="server" Width="80%" Skin="Web20" CssClass="dvGridWrapper">
                <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intRecruiterId" CommandItemDisplay="Top">
                    <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center"/>
                    <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%# bind("intRecruiterId") %>' CommandName="EditRec" Text="Edit"></asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
 
 Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand
        If (e.CommandName = RadGrid.InitInsertCommandName) Then
            ddlRecItems()
        End If
 
        If (e.CommandName = "EditRec") Then
            Dim RecId As Integer = CInt(e.CommandArgument)
            HFEditRec.Value = RecId
            FillPopup(RecId)
            pnlRecruiter_MPE.Show()
        End If
    End Sub
 
 
 
1st piece of the modalpopup
 <asp:UpdatePanel ID="udp1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="lnkSubmit" />
            <asp:AsyncPostBackTrigger ControlID="lnkCancel" />
        </Triggers>
        <ContentTemplate>
            <asp:panel ID="pnlRecruiter" runat="server" Style="display:none" CssClass="RecruiterWindow">
                <table style="width:100%">




























































Pavlina
Telerik team
 answered on 07 Jun 2013
1 answer
112 views
I've nocticed than with overlapping tabs such a forest, the first tab on additional rows is styled for an overlap.

Is it possible to configure the strip so that the first tab in each row isn't style for overlap.

I found a short thread about this dating to 2010 and the Telerik mod said that this was a "known limitation" of the tabstrip control.

Has that been addressed since 2010?
Magdalena
Telerik team
 answered on 07 Jun 2013
1 answer
221 views
Hello,

We are trying to migrate over from the Radupload control to the RadAsyncupload control. We have a grid that has the radupload control within an edit template of a rad grid. With the old radupload you could select a fill, fill out some details on the file (title, description) click upload and it would upload, insert into the grid. 

We would like RadAsyncupload to behaving this way if only 1 file is selected. If multiple files are selected we can't ask for these details and simply begin the upload. They may go and edit the items in the grid later if they so choose.

We have a solution that toggles between modes but they need to refresh the page, this action simply disables all plugins and sets manual upload which makes the Asyncupload fall back to the old Iframe mode.

Is it possible to set these modes by setting values client side on the radasyncupload control within the onClientFilesSelected event handler?  I already tried setting the .manuaUpload property and that doesn't seem to work. 

Thanks.

Hristo Valyavicharski
Telerik team
 answered on 07 Jun 2013
11 answers
260 views
This is puzzling me a bit.

I have a RadEditor on my page and it has the Image Manager as one of the tool bar options. During development & testing locally the Image Manager works as expected. However, after I upload my site to my host provider, when I launch the Image Manager, instead of getting what one would normally expect, it opens up a window with the site's home page instead. All the other buttons on the toolbar appear to function as designed. It's just with this particular one.

Has anyone encountered this before?

Thanks...

Signed,
Confused
Katherine
Top achievements
Rank 1
 answered on 07 Jun 2013
3 answers
249 views
I am trying to use the autocomplete functionality on a ComboBox that is in a GridView Edit form.  I can select multiple objects but it is only writing the last item to the database.  I am using Update command that wwas created by my GridView's sqldatasource.
Here is the code
<telerik:RadComboBox ID="cboStaff" runat="server" Width="400px" Height="140px" MarkFirstMatch="true"  
     AllowCustomText="true"  AutoCompleteSeparator=";" 
     EmptyMessage="Select Staff assigned to case" DataSourceID="SqlDataSource5" DataTextField="res_name"
     DataValueField
="res_name" 
     AppendDataBoundItems="true" SelectedValue='<%# Bind( "staff" ) %>'
</telerik:RadComboBox>



<asp:SqlDataSource ID="SqlDataSource4" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" DeleteCommand="DELETE FROM [SurgeryCases_Main] WHERE [SurgeryCases_Main_id] = @original_SurgeryCases_Main_id" 
    InsertCommand="INSERT INTO [SurgeryCases_Main] ([ptcase_id], [displayname], [birth_datetime], [gender], [schedcase_start_datetime], [schedcase_stop_datetime], [actual_room_abbr], [actual_proname], [primpract_res_name], [crna], [staff], [sent_time], [pau_time], [or_time]) VALUES (@ptcase_id, @displayname, @birth_datetime, @gender, @schedcase_start_datetime, @schedcase_stop_datetime, @actual_room_abbr, @actual_proname, @primpract_res_name, @crna, @staff, @sent_time, @pau_time, @or_time)" 
    OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [SurgeryCases_Main]" 
    UpdateCommand="UPDATE [SurgeryCases_Main] SET [displayname] = @displayname, [birth_datetime] = @birth_datetime, [gender] = @gender, [actual_room_abbr] = @actual_room_abbr, [schedcase_start_datetime] = @schedcase_start_datetime, [primpract_res_name] = @primpract_res_name, [actual_proname] = @actual_proname, [crna] = @crna, [staff] = @staff WHERE [SurgeryCases_Main_id] = @original_SurgeryCases_Main_id"
    <DeleteParameters> 
        <asp:Parameter Name="original_SurgeryCases_Main_id" Type="Decimal" /> 
    </DeleteParameters> 
    <UpdateParameters> 
        <asp:Parameter Name="ptcase_id" Type="Decimal" /> 
        <asp:Parameter Name="displayname" Type="String" /> 
        <asp:Parameter Name="birth_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="gender" Type="String" /> 
        <asp:Parameter Name="schedcase_start_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="schedcase_stop_datetime" Type="DateTime" /> 
        <asp:Parameter Name="actual_room_abbr" Type="String" /> 
        <asp:Parameter Name="actual_proname" Type="String" /> 
        <asp:Parameter Name="primpract_res_name" Type="String" /> 
        <asp:Parameter Name="crna" Type="String" /> 
        <asp:Parameter Name="staff" Type="String" /> 
        <asp:Parameter Name="sent_time" Type="DateTime"  /> 
        <asp:Parameter Name="pau_time" Type="DateTime"  /> 
        <asp:Parameter Name="or_time" Type="DateTime"  /> 
        <asp:Parameter Name="original_SurgeryCases_Main_id" Type="Decimal" /> 
    </UpdateParameters> 
    <InsertParameters> 
        <asp:Parameter Name="ptcase_id" Type="Decimal" /> 
        <asp:Parameter Name="displayname" Type="String" /> 
        <asp:Parameter Name="birth_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="gender" Type="String" /> 
        <asp:Parameter Name="schedcase_start_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="schedcase_stop_datetime" Type="DateTime" /> 
        <asp:Parameter Name="actual_room_abbr" Type="String" /> 
        <asp:Parameter Name="actual_proname" Type="String" /> 
        <asp:Parameter Name="primpract_res_name" Type="String" /> 
        <asp:Parameter Name="crna" Type="String" /> 
        <asp:Parameter Name="staff" Type="String" /> 
        <asp:Parameter Name="sent_time" Type="DateTime"  /> 
        <asp:Parameter Name="pau_time" Type="DateTime"  /> 
        <asp:Parameter Name="or_time" Type="DateTime"  /> 
    </InsertParameters> 
</asp:SqlDataSource> 

AJ
Top achievements
Rank 1
 answered on 07 Jun 2013
4 answers
185 views
Hi
i have many imageButton on my page and this imageButton are linked to the radwindow which is always open in the center position on my window. My problem is that i would like to open the radwindow next the imageButton that open it. So i wouldn't scroll the window to find the radwindow. 
below my script:

<telerik:GridTemplateColumn HeaderText="Dealers" HeaderStyle-Width="70px" AllowFiltering="false">
        <ItemTemplate>
                  <asp:ImageButton ID="Ib_Button" runat="server" CommandName="Redirect" ImageUrl='~/Images/Add.png' />
         </ItemTemplate
</telerik:GridTemplateColumn>


the command does this:

if (e.CommandName == "Redirect")        {             GridDataItem item = (GridDataItem)e.Item;             RadAjaxManager1.ResponseScripts.Add(string.Format("Open('{0}');", item.GetDataKeyValue("Code").ToString()));        }


and the javascript that open the radwindow is:
function Open(code) {
            var wnd = window.radopen('DealersD.aspx?Customer=' + code, "RadWindow1");
        }


Can someone help me to solve this problem .
Another question: how can i set the window so that is always view in the radwindow position?
Many thanks. 
Colince
Top achievements
Rank 1
 answered on 07 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?