Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Please view the attached screen shot.

We have a web form (in sharepoint) that has a parent question of radiobuttonlist type. Based on the option selected we make a div visible below the question that displays a question with a radcombobox control. Please note we are simply toggling the div that shows the combobox via javascript so it exists in the mark up at all times.

The combobox is loaded on demand. However when we click on the combobox to load the items on demand we get the error in the screen shot. I can see that the target does exist in the html markup.

If we replace the radio button control with a dropdownlist and keep everything else the same then it works perfectly. The problem only seems to occur when we use it with a radio button list.

The other odd thing I have noticed is that if the radio button is loaded with an option selected then everything works perfectly. It only seems to happen if the radio button has no option selected when the page loads.

I have tried to create a web project to demonstrate this however I have not been able to recreate the problem. The problem is that our solution is very complex and to replicate the exact scenario in a web project in its simplest form might be very difficult and time consuming.                                                                                                        
The only thing I can suggest is that I can give you access to our system. I have implemented the combobox with load on demand as per your recommended approach.             











Nencho
Telerik team
 answered on 11 Aug 2014
1 answer
91 views
I am using the Rad Editor tool in a web application. The editor is used to automatically load basic HTML templated forms to be filled out. The problem I am having is when I click inside the editor, on a read-only element (i.e. a table data like <td contenteditable="false" unselectable="ON">Example</td>) anywhere within the form, the cursor focuses to the start of the first read-only element. Also, I am able to edit the read-only. However, if I click in the editor box elsewhere (not on a read-only element), the cursor is placed in the cell that I click. Is there a way to set the cursor focus to the first editable cell if a read-only element is clicked on?

Thanks in advance 
Ianko
Telerik team
 answered on 11 Aug 2014
1 answer
70 views
I've been passed a task of presenting a web based image onto which a user can place markers (symbols such as triangles, squares, circles, dotted lines etc, preferrably in preset colours). The brief was to present the users with a list of these symbols that they could select then click on the image to 'place' them (basically, custom brushes or stamps - similar to the circle and rectangle already present).

I've been going through the custom tools options but can't see if this is possible nor not.

Is it possible, or is this something that hasn't been implimented (yet)?

Thanks in advance for your response.
Vessy
Telerik team
 answered on 11 Aug 2014
1 answer
256 views
Hi,
  I have a small issue while exporting data to export i have 50k records in my grid, when i'm exporting to pdf getting System.OutOfmemory exception.
  Is there any way to resolve this issue.
  feel happy if solution like below.
 1) when its reaching to out of memory exception application should display a popup window by displaying message like 'there is no space in RAM ..bla..bla' or The size of the file exceeds to the current free size of the RAM.

Can someone plz help in this issue.

Thanks ,
Jagadeesh.

Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
159 views
Hi

I have a requirement of loading images in a thumbnail rotator and on click of the thumbnail, open the image in bigger size. The user then should be able to edit the image like cropping, adding text etc and should be able to save it back to the database in the blob format.

I am successful in loading the images as thumbnails in a RadRotator control, from the database using datasource.
However, could you advise if it's possible to load the clicked image in a new RadImageEditor control in Rotator.ItemClick event. And then save it back to the database when it's edited (cropped, marked, text added etc)

Thanks
Slav
Telerik team
 answered on 11 Aug 2014
1 answer
229 views
i am developing a tool where i need a drag and drop option in the treeview. i found about telerik which is easier way to use that in asp.net.
multiple people will be working on this tool in organization. So can i use telerik webUI dll in building the application?.. Do i need to buy it or can i use it for free of cost.
I am just using Telerik Dll please suggest me.
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
193 views
I want to keep max width of Radgrid to 1200px

I am adding cloumns dynamically ,

my requirement is to increase width dynamically as cloumns are added and scrolls when it reach to 1200px


thanks
kishor
Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
3 answers
179 views
Hi

Im using the AutoCompleteBox control to search items via a Web Api and selected value then stored as token. When submitting the form the saving of the tokens work fine but the token no longer appear in the box - its as if its lost from the view state. The functionality to search again is also lost from the box.

Any ideas or advise, see ASPX markup below:

<telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteCostCenter" EmptyMessage="Search" Width="100%" ViewStateMode="Enabled" EnableViewState="true"
InputType="Token" DropDownPosition="Automatic" DropDownWidth="550" DropDownHeight="200" OnClientRequesting="autoComplete.Requesting" Skin="MetroTouch" MinFilterLength="3" >
<WebServiceSettings Method="search" Path="~/api/cost/" />
</telerik:RadAutoCompleteBox>

Shinu
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
107 views
Hi Team,

Can we apply jquery to get the checked item and apply the css?
Can I do the same as I am doing for RoleName, means need to apply the jquery for radlistbox

function SaveRolePermissions() {

var roleName = $("#" + "<%=txtRoleName.ClientID %>");
var permission = $find("<%=rdlistMenuPermission.ClientID %>");
var validationMsg = headerMessage;

var validationFlag = false;
if (!jQuery.trim(roleName.val())) {
roleName.css("background-color", colorCode);
validationMsg = validationMsg + "Role is required \n";
validationFlag = true;
} else roleName.css("background-color", "");
var item;
var items;
var i;
if (permission._checkedIndices == "") {
items = permission.get_items();
for (i = 0; i <= items.get_count() - 1; i++) {
item = items.getItem(i);
item._element.style.backgroundColor = colorCode;
}
validationMsg = validationMsg + "Permission is required \n";
validationFlag = true;

} else {
items = permission.get_items();
for (i = 0 ; i <= items.get_count() - 1; i++) {
item = items.getItem(i);
item._element.style.backgroundColor = "";
}
}

if ( validationFlag) {
alert(validationMsg);
return false;
}
return true;


}
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2014
6 answers
456 views
Hi,
I can access a TextBox control in RadGrid <DetailItemTemplate> in server side using C# [the code below works fine], but how can I access the TextBox in client side using javascript?

ASPX code:

<telerik:RadGrid ID="Grd_Pad" runat="server" GridLines="None" AllowSorting="true" AllowPaging="true" PageSize="20"AllowFilteringByColumn="true" AutoGenerateColumns="false" AllowMultiRowSelection="true" AllowMultiRowEdit="true"AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"DataSourceID="Sql_Pad" Width="100%">
    <SortingSettings SortToolTip=""/>
    <FilterItemStyle Width="100%"></FilterItemStyle>
    <GroupingSettings CaseSensitive="false"></GroupingSettings>
    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric"/>
    <MasterTableView DataKeyNames="pad_id" CommandItemDisplay="Top" EditMode="InPlace"
        GroupLoadMode="Client" GroupsDefaultExpanded="true" TableLayout="Fixed" Width="100%">
            <telerik:GridTemplateColumn DataField="pad_name" HeaderText="Show Hide" SortExpression="pad_name"
                UniqueName="pad_showhide" CurrentFilterFunction="Contains"
                ShowFilterIcon="false" FilterControlToolTip="" FilterImageToolTip="" FilterControlAltText=""
                FilterControlWidth="100%">
                <HeaderStyle HorizontalAlign="Left" Width="5%"/>
                <ItemStyle HorizontalAlign="Left" Width="5%"/>
                <ItemTemplate>
                    <telerik:RadButton ID="Btn_Pad_Toggle" runat="server" Text="Toggle" ButtonType="StandardButton"
                        ToggleType="CheckBox" AutoPostBack="true" OnClick="CsPadShowHide">
                        <ToggleStates>
                           <telerik:RadButtonToggleState Text="Show"/>
                           <telerik:RadButtonToggleState Text="Hide" Selected="true"/>
                        </ToggleStates>
                    </telerik:RadButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        <DetailItemTemplate>
            <telerik:RadTextBox ID="Txt_Pad_Dtl" runat="server" TextMode="MultiLine" InputType="Text" Wrap="false"
                Label="" Text='<%# Eval("pad_text") %>' EmptyMessage="None..."
                AutoPostBack="false" Display="false" ReadOnly="true"
                BorderColor="#25A0DA" BorderWidth="1px" Width="100%" Height="200px">
            </telerik:RadTextBox>
        </DetailItemTemplate>
    </MasterTableView>
</telerik:RadGrid>

C# code:
protected void CsPadShowHide(object s, EventArgs e)
{
    RadButton btn = (RadButton)s;
    GridDataItem di = (GridDataItem)btn.NamingContainer;
    RadTextBox pad = di.DetailTemplateItemDataCell.FindControl("Txt_Pad_Dtl") as RadTextBox;
    //pad.Display = true; // Ali - works
    pad.Display = btn.SelectedToggleState.Selected;
}




Ali
Top achievements
Rank 1
 answered on 11 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?