Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
292 views
asp.net

So I have a Grid that users enter data in (no surpise there) and then they hit a submit button to submit the changes to the database.

In the ItemDataBound event I determine if the field is a text box, then determine if I should set it multi or single line (if it is under a certain number of characters, it will stay singline.)

Dim txt As TextBox = CType(e.Item.FindControl("txtValue"), TextBox)
txt.TextMode = TextBoxMode.MultiLine

I am trying to figure out how to do this same logic on the client side in javascript.

function processValueChange(sender, rowID) {
     var myTextValue = row.findElement("Value");
     myTextValue = Multiline;
}

I do not know if you can set the mode like this on the fly without rebinding the grid...

Also the reason I do not set the MultiLine always to true on textboxes is because of the scrollbar that shows up in the multiline text box.  It is very distracting to see a bunch of little arrows in all my text box fields and would like them visible only when necessary.  Unless there is a way to get ride of them.
Eyup
Telerik team
 answered on 12 Apr 2013
1 answer
201 views
Dear Telerik Team,

We are using Rad Multi page (Tab) control. if we want to Hide/Show Panel Control at client side. we could not do that since object itself not available. it is an content page with Rad Multi page. we tried with Div also. we could not hide / show that control on run time at client side. This behaviour works if its without rad multi page. 

if we hide the control by setting visible properties of Panel at design time. it is not rendered to client side at all. 
but for Div Tag if use Style display:None,it is rendering at client side but not hiding the div tag.

the above functionality works without rad multi page

Requesting your help on the same.


With Regadrs
Palanivelrajan



Nencho
Telerik team
 answered on 12 Apr 2013
1 answer
180 views
Hi
How can I give background image to my radbutton. Please help me out.

thank you
Allen
Princy
Top achievements
Rank 2
 answered on 12 Apr 2013
1 answer
121 views

Hello,

Have custom EditFormSettings with a delete button that is wired to a postback event handler.

<EditFormSettings>
...
<FormTemplate>
...

<telerik:RadButton ID="btnDelete" Text="Delete" Visible='<%# (Container is GridEditFormInsertItem) ? false : true %>' runat="server" CausesValidation="false" Icon-PrimaryIconCssClass="rbRemove" Icon-PrimaryIconLeft="4" Icon-PrimaryIconTop="4" onclick="btnDelete_Click"/>


</FormTemplate>
</EditFormSettings>
<LinqDataSource ...

code

 

dataContext.TableName.DeleteOnSubmit(item);

 

sdb.SubmitChanges();

rgFormEmail.DataBind()

Grid is shown and edit button is hidden. Code below resolves but why would the edit column be hidden?

rgFormEmail.MasterTableView.GetColumn("BtnEdit").Visible = true;

 

 

Kostadin
Telerik team
 answered on 12 Apr 2013
3 answers
324 views
Hi
     How to change the selection color of items in combobox inside itemtemplate of radgrid. Please suggest a solution
thanks
Savyo
Princy
Top achievements
Rank 2
 answered on 12 Apr 2013
5 answers
70 views
hi Telerik team ..

i created a simple raddatepicker , but i can't select Sunday:31 march 2013,
Can anyone help me how can i choose this day 

(this problem appears on Chrome and opera , it works correctly on IE)
Eyup
Telerik team
 answered on 12 Apr 2013
3 answers
114 views
Hi,

I'm trying to create dynamic controls within and EditForm of the RadGrid. I've read from previous posts that I need to do this within ItemCreated. The problem I have is that I need to create the dynamic controls based on what the user selects in a DropDownList as shown here

<EditFormSettings EditFormType="Template">
    <FormTemplate>
        <asp:DropDownList ID="AreaOfPracticeSelect" runat="server" AutoPostBack="true" DataSourceID="AreaOfPracticeDataSource" DataTextField="mps_name" DataValueField="mps_areaofpractice_lookupid" AppendDataBoundItems="true">
            <asp:ListItem Value="" Text="" />
        </asp:DropDownList>
        <h5>Criteria</h5>
        <asp:PlaceHolder ID="CriteriaPlaceHolder" runat="server" />
    </FormTemplate>
</EditFormSettings>

protected void AreaOfPracticeGrid_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        DropDownList areaOfPracticeSelect = e.Item.FindControl("AreaOfPracticeSelect") as DropDownList;
 
        if (areaOfPracticeSelect != null && !string.IsNullOrEmpty(areaOfPracticeSelect.SelectedValue))
        {
            Guid areaOfPracticeId = new Guid(areaOfPracticeSelect.SelectedValue);
 
            LoadCriteria(e.Item as GridEditFormItem, areaOfPracticeId);
        }
    }
}

The problem is that AreaOfPracticeSelect DropDown is always empty, any ideas how I can accomplish this?
David Rhodes
Top achievements
Rank 1
 answered on 12 Apr 2013
1 answer
631 views
I have a radmenu control with menus such as "Skin", "Links" etc. Skin menu having child items such as "Forest", "Black", "Default" etc.
If I selected Forest, I'm getting it from radmenu1_itemClick event using the code - "e.Item.Text". But in my case, if I select Forest, I need to check some condition using it's parent (here "Skin") text from the code.
Boyan Dimitrov
Telerik team
 answered on 12 Apr 2013
5 answers
184 views
I'm not sure what the actual behavior is supposed to be, but what I expected when I do set_enabled(false), nothing on the tree should work. What happens is the div containing the UL gets set as disabled. 

Overall this is a minor issue to me as I have a work around. 
Helen
Telerik team
 answered on 12 Apr 2013
3 answers
188 views
Hi,

I am new to telerik control. I have a requirement to create tab with space between tabs. The picture for the requirement added. I tried several ways but the spacing in between the tab breaking the style. Please any one can provide the style/code that I can implement.
Kate
Telerik team
 answered on 12 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?