Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
48 views
Is there a way to increase this from 1024? I made the field larger in my database but the string stops accepting input at 1024 still. I figure this must be built into the control but can't find a property to override this.

Also, how do I detect if the "No end date" recurrence radio button is checked? We don't want users to put in unlimitted appointments. If that radio button cannot be disabled I want to cancel the appointment if they select it and it would be good if I could set the default to the "End after" or "End by" radio button.
Dan
Top achievements
Rank 1
 answered on 19 Jul 2011
3 answers
91 views
Hi All,

I have a problem with RadComboBox and setting SelectedIndex value.

My controls structure are next:

<telerik:RadToolTipManager ID="editRecordTooltip" ShowEvent="OnClick" OffsetY="-1" HideEvent="ManualClose" Modal="true"
    Width="470" Height="390" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"
    Position="MiddleRight">                                
</telerik:RadToolTipManager>
 
<telerik:RadGrid ID="rgRecords" AutoGenerateColumns="false" runat="server" OnItemDataBound="rgRecords_ItemDataBound">
    <MasterTableView DataKeyNames="ID">
        <Columns>
.....
         </Columns>
    </MasterTableView>
</telerik:RadGrid>


 protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
 {
     UpdateToolTip(args.Value, args.UpdatePanel);
 }
private void UpdateToolTip(string elementId, UpdatePanel panel)
{            
   Control ctrl = Page.LoadControl("EditRecord.ascx");
   panel.ContentTemplateContainer.Controls.Add(ctrl);
}

protected void rgRecords_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                var target = e.Item.FindControl("hlEdit");
                editRecordTooltip.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("ID").ToString(), true);
            }
        }

EditRecord.ascx contains:

<telerik:RadComboBox runat="server" ID="rcbCompany" Filter="Contains" ZIndex="50001" Width="234px" CssClass="select-text" />
protected override void OnPreRender(EventArgs e)
{
   base.OnPreRender(e);
   
   
   rcbCompany.DataSource = Source;
   rcbCompany.DataValueField = "ID";
   rcbCompany.DataTextField = "Name";
   rcbCompany.DataBind();
rcbCompany.SelectedIndex = 10; // for example
   this.DataBind();
}
When I set rcbCompany.SelectedIndex = 10, it does not worked.
On front-end selectedindex is always -1.

But, standart DropDownList worked perfectly.

How I can set SelectedIndex?

Thanks
Kalina
Telerik team
 answered on 19 Jul 2011
1 answer
141 views
I try new feature ContentTemplate of RadWindow. But i get an error on javascripts. 
This error : 
Uncaught exception: TypeError: Cannot convert '$find('ctl00_MainContent_RadWindow_ContentTemplate')' to object
  
Error thrown at line 3, column 12 in openWinContentTemplate() in http://localhost:44012/Proje/DetailProject.aspx?OZ=kCpkEBX9+M1Y7eX6gwenmA==:
    $find('ctl00_MainContent_RadWindow_ContentTemplate').show();
called from line 1, column 0 in <anonymous function>(event):
    openWinContentTemplate();

Javacript Code:
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">
        function openWinContentTemplate() {
            $find('<%= RadWindow_ContentTemplate.ClientID %>').show();
        }
          
    </script>
</asp:Content>

RadWindow Code:
<telerik:RadWindow runat="server" ID="RadWindow_ContentTemplate" Modal="true">
    <ContentTemplate>
             Test!
    </ContentTemplate>
</telerik:RadWindow>


Thanks
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
11 answers
158 views
I have a RadScheduler control with modified templates. In the InlineEditTemplate I first used asp:Button for the "Update" and "Cancel" commands and everything worked ok. Now I want to change those two Buttons to RadButton but the "Update" and "Cancel" commands stopped working.

Here is the code of the template with  the four type of buttons:

<InlineEditTemplate>
                <div id="InlineEditTemplate">
                    <span>
                        <asp:TextBox ID="TitleTextBoxUpdate" runat="server" Text='<%# Bind("Subject") %>'
                            Width="90%" TextMode="MultiLine" Height="20px"></asp:TextBox>
                        <telerik:RadButton ID="UpdateButton" runat="server" CommandName="Update" Text="Actualizar">
                        </telerik:RadButton>
                        <telerik:RadButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                            CommandName="Cancel" Text="Cancelar">
                        </telerik:RadButton>
                        <asp:Button ID="UpdateButton2" runat="server" CommandName="Update" Text="Actualizar" />
                        <asp:Button ID="UpdateCancelButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="Cancelar" />
                        <asp:LinkButton ID="EditMoreButton" runat="server" CommandName="More">Más Opciones</asp:LinkButton>
                    </span>
                </div>
            </InlineEditTemplate>

Any help thanks!


Peter
Telerik team
 answered on 19 Jul 2011
2 answers
484 views
Hello Support

I have an web application in which I am generating the pop-up based on certain conditions pop-up can be 2 ,3 or 4 or more
Now, my issue is that this each popup is not movable ie user cannot drag it from one place to another.
i only want to keep movable across browser

var wnd = radopen("url", "RadWindow" );
wnd.set_modal(false);
           
var oManager = GetRadWindowManager();
var oWindow = oManager.GetWindowByName("RadWindow");
oWindow.moveTo(30, 320);

Regards

Asif
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
2 answers
74 views

i'm using GridClientSelectColumn in my radgrid ,
If i go to next page previous page selected value clear ,
How i solved. 

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 19 Jul 2011
2 answers
183 views

How I can define programatically the options like "contains", "grather than" ?
How I can change the style of apply button?
How I can set CaseSentive = false?
Thanks
July
Top achievements
Rank 2
 answered on 19 Jul 2011
3 answers
122 views

Hi

How can I get the content of an html file along with an ‘I Accept’ button in the RadWindow?

Many Thanks

Regards

Marin Bratanov
Telerik team
 answered on 19 Jul 2011
3 answers
570 views
Hi,

  Below in my code in aspx and .cs files

<asp:ScriptManager ID="sm" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="upTest" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:UpdatePanel ID="upPostBack" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Button ID="btnPostBack" runat="server" Text="Post Back" OnClick="btnPostBack_Click" />
                    <asp:Label ID="lblPostBack" runat="server"></asp:Label>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:UpdatePanel ID="upc" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <telerik:RadCaptcha CssClass="rcPanel" runat="server" IgnoreCase="true" CaptchaImage-UseRandomFont="false"
                        CaptchaImage-TextChars="LettersAndNumbers" CaptchaImage-RenderImageOnly="true"
                        ID="capSignup" ValidationGroup="valSignup" ValidatedTextBoxID="txtCaptcha" ErrorMessage="error"
                        IsValid="true">
                    </telerik:RadCaptcha>
                    <asp:TextBox runat="server" ID="txtCaptcha" validateexp="required,errMsg:Enter the above code"
                        ValidationGroup="valSignup"></asp:TextBox>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:Button ID="btn" runat="server" OnClick="btn_Click" Text="Submit" ValidationGroup="valSignup" />
            <asp:Label ID="lbl" runat="server"></asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>

protected void btn_Click(object sender, EventArgs e)
   {
       capSignup.Validate();
       Page.Validate();
       if (capSignup.IsValid)
           lbl.Text="Valid";
       else
           lbl.Text = "In Valid";
   }
 
   protected void btnPostBack_Click(object sender, EventArgs e)
   {
       lblPostBack.Text = DateTime.Now.ToShortTimeString();
   }

Captcha is working fine when i click on "Submit" button with out clicking "Post Back" button.
If i click on "Post Back" then "Submit", IsValid property returns false.

Could any one please help me.

Thanks,
Sumanth
Slav
Telerik team
 answered on 19 Jul 2011
5 answers
216 views
I have a hierarchical grid with an image button as the first column on both parent and child. Now I want to show a tooltip , which is a usercontrol with a databound grid inside and couple of labels.  This grid inside a usercontrol is populated based on the ID of the row of the grid where the image button is clicked. Also the image button sends 2 other values which updates the text of the label controls. Child grid also has an image button which when clicked, pop ups the same user control and sends the ID to the popup, populates the grid inside and sends 2 other values which updates the text in the label. How do I achieve this? Don't have a working solution, so guide me with the working sample code. Thanks.
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?