Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
48 views
Hi Team,
Here is my requirement, I need to show Italic and normal text in a RadTExt box. 

Example:  This is <i> prasad </i>. here prasad should display in Italic.

Please help me.

Regards,
ranga prasad.
Prasad
Top achievements
Rank 1
 asked on 09 Mar 2015
1 answer
87 views
I have a RadGrid that is populated by a SqlDataSource object.  I populate the ListItems of a ComboBox and Multi-Select ComboBox control inside the RadGrid's NestedViewTemplate using two other SqlDataSource objects.  The SelectedValue of the single select ComboBox is easy to set.  What is the most efficient means of setting the SelectedValue of the appropriate ListItems in the Multi-Select ComboBox?

Nencho
Telerik team
 answered on 09 Mar 2015
1 answer
246 views
Want telerik:RadGrid batch edit changes on server side without
postback.My  batch grid save button outside from grid ,bellow syntax used to call batchedit save event. 

<telerik:RadButton runat="server" ID="RadButton1" Text="SaveAllChanges" AutoPostBack="false" OnClientClicked="SaveAllChanges"></telerik:RadButton>

        function SaveAllChanges(sender, args) {

            var batchManager = $find('<%=RadGrid1.ClientID%>').get_batchEditingManager();

            var tableViews = [];

            tableViews.push($find('<%=RadGrid1.ClientID%>').get_masterTableView()); 
batchManager.saveTableChanges(tableViews);                
}

There is one problem method SaveAllChanges() perform a postback then call server event RadGrid1_BatchEditCommand. But I want a process
without postback my button call an event which communicate with server and provide me all batch grid changes.Please don’t referrer any update panel
process http://www.telerik.com/forums/prevent-postback-after-edit-delete-in-grid.I need to work with grid data in server side.So need to get all data from the grid.If have any question please ask,Thank in advanced.Any type of suggestion will be acceptable
Angel Petrov
Telerik team
 answered on 09 Mar 2015
1 answer
217 views
 used telerik:RadGrid batch editing; to fill this grid I used below syntax:

function GridBind(GridID, GridData) {
var TableView = GridID.get_masterTableView();
TableView.set_dataSource(GridData); TableView.dataBind();
}

To Invoke batcheditcommand I used below syntax. It’s written under non-postback button Javascript event:

function SaveAllChanges(sender,args) {
var batchManager = $find('<%=RadGrid1.ClientID%>').get_batchEditingManager();
var tableViews = [];
tableViews.push($find('<%=RadGrid1.ClientID%>').get_masterTableView());
batchManager.saveTableChanges(tableViews);
}

But unfortunately SaveAllChanges perform a postback and invoke  RadGrid1_BatchEditCommand,my requirement is with out post back ,i want grid batch all change on server side.Any type of suggestion will be acceptable.
Angel Petrov
Telerik team
 answered on 09 Mar 2015
3 answers
265 views
Hi All,
I'm using radgrid, but when using PagerStyle-Mode="NextPrevNumericAndAdvanced" it does not work,Here is the code :
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="AdvancedRadGridResults">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="AdvancedRadGridResults" />
                    <telerik:AjaxUpdatedControl ControlID="iframeBarcode"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 <telerikHelper:AdvancedRadGrid ID="AdvancedRadGridResults" runat="server" SkinID="AdvancedRadGridArDefault" CellSpacing="0" GridLines="None" AutoGenerateColumns="False" ShowGroupPanel="True"
                    OnNeedDataSource="AdvancedRadGridResults_NeedDataSource" OnItemCommand="AdvancedRadGridResults_ItemCommand" OnInsertCommand="AdvancedRadGridResults_InsertCommand"
                    OnItemDataBound="AdvancedRadGridResults_ItemDataBound" OnUpdateCommand="AdvancedRadGridResults_UpdateCommand" OnDeleteCommand="AdvancedRadGridResults_DeleteCommand"
                    OnItemCreated="AdvancedRadGridResults_ItemCreated"  >

                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="400px" />
                    </ClientSettings>

                    <MasterTableView DataKeyNames="File_ID" AllowPaging="True" PagerStyle-AlwaysVisible="true"  PagerStyle-     Mode="NextPrevNumericAndAdvanced" >
                        
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
     
                    </MasterTableView>
                </telerikHelper:AdvancedRadGrid>

            <iframe id="iframeBarcode" runat="server" src =""  style="display:none;"></iframe>
</asp:Content>
How to fix this problem,
Thanks .






Awad
Top achievements
Rank 1
 answered on 09 Mar 2015
3 answers
41 views
Folks, thanks for taking the time to read this.
I have just started with Telerik controls and have found myself in a quandary.

I have an ajax manager on my page, an AysnUpload and a datarepeater, populated on the server side. I upload a file to the server after more info has been requested from the user, via ajaxManager.ajaxRequest(), THEN, when the file is uploaded...this works by the way...I want to refresh the datarepeater.

I have the following in my aspx file:
                            
<telerik:RadAjaxManager ID="ajaxManager" runat="server" EnablePageHeadUpdate="False">
   <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="documentUploader">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="grdDocuments" />
                  </UpdatedControls>
          </telerik:AjaxSetting>
       </AjaxSettings>
 </telerik:RadAjaxManager>

Now my confusion...what "ajax event" will be fired on "grdDocuments"? Meaning, what event do I hook up on the grid server side to refresh the data repeater via the AjaxUpdatedControl setting? Or am I misunderstanding the setting itself?

I am at a loss to understanding the AjaxUpdatedControl setting. In my server-side handling of the file uploaded via ajax I do rebind the grid and it fires, it just does not refresh on the page...unless I reload of course.

Please don't hesitate to ask for any further info.
Thanks in advance

Simon
Top achievements
Rank 1
 answered on 09 Mar 2015
1 answer
187 views


I used telerik UI 2015, I try input hierarcy in rad grid with datepicker in edit from. up select date, but if I action radgrid (click add new record) that raddatepicker running proper.

Problem when first open that page as always postback when I clicked date picker
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="gvList" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="containerDiv">
                <UpdatedControls>
                   <%--<telerik:AjaxUpdatedControl ControlID="rdpRaiseDateHeader" />
                   <telerik:AjaxUpdatedControl ControlID="rdpEndDateHeader" />--%>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="gvList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gvList"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <%--<telerik:AjaxSetting AjaxControlID="containerDiv">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpRaiseDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
            <%--<telerik:AjaxSetting AjaxControlID="rdpRaiseDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpRaiseDate" />
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
           <telerik:AjaxSetting AjaxControlID="rdpRaiseDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpRaiseDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdpEndDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpEndDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
.

Please informed about fix that issue, I try fixed issue but not resolved.

Capture issue is attached.





Maria Ilieva
Telerik team
 answered on 09 Mar 2015
1 answer
454 views
Hey everyone,

I have a RadListBox with a few RadListBoxItems inside it. They have varying text where some are pretty small while others can be large. I would rather set the width of the RadListBox to the width of the largest length text while also setting a defined static height.

I have set the width with CSS like so:
.RadListBox_Default
    {
        width:auto !important;
    }

That part works great on its own. But if I add a static height to either the CSS to make it look like:
.RadListBox_Default
    {
        width:auto !important;
        height:300px;
    }
or straight to the ascx, the RadListBox messes up. The width becomes 2 pixels and the RadListBox becomes unusable.

I was wondering if there was a way to get the width to be dynamic while having the height be static. Any help/thoughts are appreciated, thanks!


.RadListBox_Default
    {
        width:auto !important;
    }

.RadListBox_Default
    {
        width:auto !important;
    }

.RadListBox_Default
    {
        width:auto !important;
    }

Magdalena
Telerik team
 answered on 09 Mar 2015
5 answers
201 views
Hi,

I'm using the recursive selection feature which works fine so far, but for rows in my TreeList which aren't selectable it has some drawbacks.

private void TreeListItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
{
   var item = e.Item as TreeListDataItem;
   if (item != null)
   {
      if(myCondition)
      {
         item["Select"].Controls[0].Visible = false;
      }
   }
}

If I use the recursive selection feature, these rows are highlighted too. It would be totally sufficient if these rows weren't highlighted (being in the SelectedRows list is ok - I can filter them out). How can I alter the Row so it isn't highlighted?

Thanks!
Radoslav
Telerik team
 answered on 09 Mar 2015
1 answer
153 views
Hi,

I have a question about the grid row. if we have more record returned in the grid, then every row has a same height. However, if we have less records returned in the grid, for example just one or two rows displayed in the grid, then the row height changed much taller than normal. Is that any way to not enlarge the row height no matter how many records display in the grid?

There is another question is about dropdown list, i need to set the value of the dropdown list from the code (from value passed by controller), how should i do that?

Thanks
Tiffany
Kostadin
Telerik team
 answered on 09 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?