Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
683 views
Hi, 

I have the following ListBox and I want to loop through the values entered into the text box and enable a button if they pass validation.

<telerik:RadListBox ID="rlbDocuments" runat="server" EnableDragAndDrop="True" AllowReorder="True" Height="400px" Width="480px" ButtonSettings-ShowReorder="False">
  <HeaderTemplate>
    <div style="width: 88px; text-align: center; clear: none; float: left;">Page Count</div>
    <div style="width: 160px; clear: none; float: left;">Document Name</div>
    <div style="width: 160px; clear: none; float: left;">Document Type</div>
  </HeaderTemplate>
  <ItemTemplate>
    <div style="width: 100%; height: 28px;">
      <input id="txtPageCount" type="text" style="width: 40px; margin: 0 18px; clear: none; float: left;" onchange="txtPageCount_TextChanged()" />
      <div style="width: 160px; clear: none; float: left;"><%# Eval("documentName") %></div>
      <div style="width: 160px; clear: none; float: left;"><%# Eval("documentType") %></div>
    </div>
  </ItemTemplate>
</telerik:RadListBox>

I've gone through your examples using and tried some things like below, but I have not found the magic formula for finding the text box in each row and getting its value.

var list = $find("<%= rlbDocuments.ClientID %>");
 
var items = list.get_items();

I'm finding the list and getting its items, but cannot find the controls inside each row. Can you please give me some guidance here?

Thanks,
John

Kate
Telerik team
 answered on 01 Feb 2013
2 answers
108 views
Hello,
           How to create a property bar by webapplicaion
Regards
Sreejesh
Sreejesh
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
89 views
I enabled RadEditor on HTML fields. On an existing page with content and images, I click one of the images, then click Image Manager and it throws the old classic error (in the rad dialog):

'Object reference not set to an instance of an object'

When I don't highlight an image (in the same editor pane), and click Image Manager, the dialog pops up without error. What can be concluded from this? Is the Image Manager trying to set its initial broswe location to an old path that cannot be found?

Here is the Event Viewer Log that it throws:

Thread information:

Thread ID: 25

Thread account name: *****************
Is impersonating: False

Stack trace: at Telerik.SharePoint.Editor.SPContentProvider.CheckPermissionsInternal(String folderPath, PathPermissions permToCheck)

at Telerik.Web.UI.RadFileExplorer.ExpandNestedFolder(String nodeValue)

at Telerik.Web.UI.RadFileExplorer.BindExplorer()

at Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Rumen
Telerik team
 answered on 01 Feb 2013
7 answers
237 views
I am building a user .ascx control that contains a RadGrid. On row double click I have to be able to get Id value of that grid and a value in "Title" column and place them in TextBoxes on a parent form. Now, I have made a custom event for this (called it SelectEvent) which will be handled on parent form, and have defined custom event args class (PickereventArgs with two properties: int ID, string Title). I want to raise that event on SelectedIndexChanged of the RadGrid in .ascx like this
protected void gridPicker_SelectedIndexChanged(object sender, EventArgs e)
{
 
    foreach (GridDataItem item in gridPicker.SelectedItems)
    {
        if (item.Selected)
        {
            if (SelectEvent != null)
            {
                PickerEventArgs args = new PickerEventArgs();
                args.Title = item.Cells[1].Text;
                args.Id = Convert.ToInt32(item.Cells[0].Text);
                SelectEvent(this,args);
                gridPicker.DataSource = null;
                this.Visible = false;
            }
        }
    }    
}

but I can't fire OnSelectedIndexChange with double click on row.
Help, anyone? I need it quickly because I have a deadline and my boss is getting a bit nervous :)
Princy
Top achievements
Rank 2
 answered on 01 Feb 2013
1 answer
69 views
Hi
I want to assign color to radgrid row checking whether the gridcheckboxcolumn is checked or not.
thanks
Allen
Shinu
Top achievements
Rank 2
 answered on 01 Feb 2013
4 answers
72 views
Hey guys

Once again a latest build (2012.3.1308.45) breaks a previously working RadEditor.

ALL url's are now made absolute, no matter what the ContentFilter is set. This was WORKING in previous builds.

I am getting very very hesitant in updating to the latest builds from now on as these small issues keep cropping up.
Misho
Telerik team
 answered on 01 Feb 2013
3 answers
90 views
Hi ,

i am using RadAsyncUpload control in my project ,

 i am trying to upload a file with long name for eg  my file name is : wylongfile- Copy - Copy - Copy - Copy - Copy - Copybig_TEST21 - Copy - Copy - Copy - Copy - Copy - Copy - Copybig_TEST21 - Copy - Copy - Copy - Copy - Copy - Copy - Copybig_TEST21 - Copy - Copy - Copy -

working fine in IE browser, but not working in Firefox, i am getting following error :
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

please help me to solve the issue

Thanks!
Srinivasa Rao Ranga


Plamen
Telerik team
 answered on 01 Feb 2013
1 answer
130 views
Hi,

I have activated the export buttons using the ShowExportToPdfButton flag on the Rad Grid Control

I want to handle the event that actually creates the PDF and instead of using the default PDF, I want to create my own PDF.

Please tell me which event I need to override, kindly show an example.

Thanks 
Shinu
Top achievements
Rank 2
 answered on 01 Feb 2013
1 answer
179 views
I have a programmatic created RadGrid that has a GridButtonColumn in it. I also have a Radlistview that I'm using on the same page.

I need the button click on the radgrid to update the radlistview via a Radajaxmanagerproxy. My issue I'm running into is that the GridButtonColumn that adds the button doesn't have an ID that I can link it to. I've tried using the ItemCommand event on the ajaxmanager and I don't get a result.

How would I set this up?


GridButtonColumn bc = new GridButtonColumn();
dg.MasterTableView.Columns.Add(bc);
bc.HeaderText = "Add";
bc.ButtonType = GridButtonColumnType.PushButton;
bc.CommandName = "Add_Click";
bc.Text = "Add";


<telerik:AjaxSetting AjaxControlID="ProductCrossSaleGrid" EventName="ProductCrossSaleGrid_ItemCommand">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="PricingLoadingPanel" />
    </UpdatedControls>
</telerik:AjaxSetting>


Shinu
Top achievements
Rank 2
 answered on 01 Feb 2013
1 answer
67 views
 
Here is my rad editor code & the screenshot attached of the issue. please reply with best response.

<telerik:RadEditor ID="RadEditorEmailBatch" runat="server" Width="710"
    StripFormattingOnPaste="Css,MSWordNoFonts,MSWordRemoveAll,ConvertWordLists,NoneSupressCleanMessage,Span,MSWord"
    StripFormattingOptions="Css,MSWordNoFonts,MSWordRemoveAll,ConvertWordLists,NoneSupressCleanMessage,Span,MSWord"
    ContentFilters="None" Height="200" Style="word-wrap: break-word;" EditModes="Design" Skin="Office2007">

  </telerik:RadEditor>





Thank You,
Anji reddy.
Rumen
Telerik team
 answered on 01 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?