Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
73 views
I am using RadNumericTextBox with SpinButtons in my project but when i browse my project in Internet Explorer-7, SpinButton are render in Textbox  (But other IE version (8 and 9)  rendering is perfect)  
  So please help me -

Thank you--
Manindra
Maria Ilieva
Telerik team
 answered on 30 Jul 2012
1 answer
64 views

 

 

 

I have a grid with many pages (allowpaging = true) and I want onprerender

 

that some items will be selected = true

I have this code :

protected void Grid_MailingList_PreRender(object sender, EventArgs e)

    {

      foreach (GridDataItem item in Grid_MailingList.Items)

                {

                 string person = SessionMng.MessagesListData.Tables[0].Rows[i++]["iPersonId"].ToString();

                    DataView dv = new DataView(SessionMng.SavedMessage.Tables[1], "iPersonId= '" + person + "'", "", DataViewRowState.CurrentRows);

                    if (dv.ToTable().Rows.Count > 0)

                        item.Selected = true;

                }

            }

        }

    }

 

but it work only in the first page of the grid.

how can I pass on all of the pages at the grid ?

Princy
Top achievements
Rank 2
 answered on 30 Jul 2012
1 answer
71 views
Hi,

I have a grid, with popup form template. On initial use, I am able to extract the template values (textbox input). But on succeeding input, the value of the textbox (txtName) is always empty even if i change the textbox values.  Below is my code:

<

 

 

telerik:RadGrid ID="RadGrid1" AutoGenerateEditColumn="false" runat="server"

 

 

 

AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False"

 

 

 

AllowPaging="True" AllowSorting="true" OnItemCommand="gridRequestList_ItemCommand" >

 

 

 

 

<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" AutoGenerateColumns="false"

 

 

 

AllowAutomaticInserts="false" AllowAutomaticUpdates="false" >

 

 

 

<Columns>

 

columns here

 

 

</Columns>

 

 

 

 

<EditFormSettings InsertCaption="Setup Info" EditFormType="Template">

 

 

 

<FormTemplate> code here </FormTemplate>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 



protected

 

 

void grid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)

 

{

 

 

if (e.CommandName.Equals(RadGrid.PerformInsertCommandName))

 

{

 

 

    string txtName = ((TextBox)e.Item.FindControl("txtName")).Text;

 

}

}

Thanks.
tj

Shinu
Top achievements
Rank 2
 answered on 30 Jul 2012
1 answer
95 views
hi telerik team,

my code:

                    <telerik:RadScheduler runat="server" ID="rsOrders" Localization-AdvancedEditAppointment="Reserve Slot"
                        Height="400px" StartInsertingInAdvancedForm="true" OnFormCreated="rsOrders_FormCreated"
                        DataSourceID="odsOrders" DataKeyField="bookingID" SelectedView="MonthView" DataStartField="start_date"
                        DataEndField="end_date" DataSubjectField="available_status" OnClientAppointmentInserting="updatePostbackFlag"
                        OnClientAppointment="updatePostbackFlag" OnClientAppointmentDeleting="updatePostbackFlag">
                        <AdvancedForm Modal="true" />
                        <ResourceTypes>
                            <telerik:ResourceType DataSourceID="odsCustomers" TextField="harbor_name" KeyField="harbor_code"
                                ForeignKeyField="harbor_code" Name="Harbor" />
                        </ResourceTypes>
                    </telerik:RadScheduler>

i wan't to add some textboxes to the insert appointment form.

thanx & regards
Isuru
Princy
Top achievements
Rank 2
 answered on 30 Jul 2012
5 answers
306 views
I have an aspx page with a button which is disabled.
How to enable the button,only when it is poping up as a RadWindow from a parent page?
Soumya
Top achievements
Rank 1
 answered on 30 Jul 2012
8 answers
341 views
Hi,

I'm attempting to apply a specific class in CSS to a RadTextBox control (specifically, this is being set in javascript using the .className property). This works great, but whenever I hover over the textbox, the background colour changes back to white, and stays that way, even if I don't click into it, and just move the mouse off it.

I'm using this as the class:

html  body  form  .RadInput .missingMandatoryField /*RadTextBox Implementation*/
    { background-color: #F6CBCA }

What do I need to do to get this to apply to the HoverStyle too (I assume that is the culprit).

Specifically, my javascript function must apply to multiple types of control (both telerik, and basic html), so I'd rather not have masses of telerik specific code if possible. If it isn't possible, then I'd settle for a method of determining if it is a telerik control in the javascript.

function fnOnUpdateValidators() {
            for (var i = 0; i < Page_Validators.length; i++) {
                var val = Page_Validators[i];
                var ctrl = document.getElementById(val.controltovalidate);
                if (ctrl != null) {
                    //Remove the existing Class Data.
                    ctrl.className = ctrl.className.replace("missingMandatoryField", "");
                    ctrl.className = ctrl.className.replace(" mandatoryField", "");
 
                    if (!val.isvalid)
                        ctrl.className += " missingMandatoryField";
                    else
                        ctrl.className += " mandatoryField";
                }
            }
        }

Thanks
Fergal
Fergal
Top achievements
Rank 1
 answered on 30 Jul 2012
3 answers
241 views
Hello,

I am using a RadListBox with Checkboxes="true." I was wondering if it is possible to skin the checkboxes to the same skin as the listbox. I have a RadFormDecorator on the page which styles the regular asp checkboxes but the ones in the listbox remain un-styled. Currently using Q2 2011.

Thanks
Ivan Zhekov
Telerik team
 answered on 30 Jul 2012
1 answer
66 views
Hello,

Below is my Code. I am triggering lblerrormessage from Code behind, if there is any error. If not I am not showing that and redirecting the page.

It is throwing me Ajax error, if there is no error in page while redirecting. I think it is looking to update lblerrormessage everytime. What I have to do ?

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnReject1">
                <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="lblErrorMessage" />
                                   
                </UpdatedControls>
            </telerik:AjaxSetting>
         </AjaxSettings>
       </telerik:RadAjaxManager>
Kostadin
Telerik team
 answered on 30 Jul 2012
1 answer
75 views
Hi

I am having treeView where parent/First node is User Control. It is for user to type item name and click on search button. On Click on search button treeView gets loaded with valid items. It looks like

- User Control (text box + Button)
   - Item1
   - Item 2
   + Item 3
   - Item 4

When user is clicking any of the node, like Item 1 or Item 2, User control is disappearing from the treeView. I can only see other node. It is happening only when I am clicking node, if I am trying to expand the node it is maintaining user control as it is.

Please kindly guide me on how to solve this problem.

Thanks,
Pradip
Plamen
Telerik team
 answered on 30 Jul 2012
3 answers
355 views
I have a RadTreeView on the click the nodes get selected and then at the right click a context menu is shown. This is working fine but the problem is to a context menu for a node I have to first select it and then right click on it. Is there a way by which directly on the right click the node will be selected and the context menu will appear for it.
Peter
Telerik team
 answered on 30 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?