Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 views
Hello,

I use a TreeList with autogenerated columns. I allow the column resize.
<telerik:RadTreeList runat="server" ID="RadTreeList1"
                                                        Skin="Telerik"
                                                        AutoGenerateColumns="true"
                                                        DataKeyNames="DataKey" ParentDataKeyNames="ParentDataKey"
                                                        AllowSorting="true"
                                                        ItemStyle-CssClass="RowStyle"
                                                        AlternatingItemStyle-CssClass="AlternatingRowStyle"
                                                        HeaderStyle-CssClass="HeaderStyle"
                                                        SelectedItemStyle-CssClass="SelectedRowStyle"
                                                        OnAutoGeneratedColumnCreated="RadTreeList1_OnColumnCreated"
                                                        Visible="false"
                                                        >
                                        <ClientSettings>
                                           <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                           <Resizing AllowColumnResize="true" ResizeMode="NoScroll" />
                                        </ClientSettings>
 
                                   </telerik:RadTreeList>


So the final user can resize the columns, but, if he expands or collapses a node, the column widths are reinitialized.
How could I keep the width modifications.
Thanks by advance.
Regards,
Damien
Kostadin
Telerik team
 answered on 19 Feb 2013
1 answer
138 views
Hello Telerik, have some problems)

So, I have my Editor:
                                       
<telerik:RadEditor Visible="false" Height="300px" CssClass="Editor" ID="reHelpBody" runat="server"<br>
EditModes="Design" ToolbarMode="Default"><br>
<Content><br>
</Content><br>
<ImageManager ViewPaths="~/Content/images/Help/" UploadPaths="~/Content/images/Help/"<br>
DeletePaths="~/Content/images/Help/" MaxUploadFileSize="204800" /><br>
<Tools><br>
<telerik:EditorToolGroup><br>
<telerik:EditorTool Name="Bold" /><br>
<telerik:EditorTool Name="Italic" /><br>
<telerik:EditorTool Name="Underline" /><br>
<telerik:EditorTool Name="ImageManager" /><br>
</telerik:EditorToolGroup><br>
</Tools><br>
</telerik:RadEditor>


And CSS that I have now:

.Default.RadEditor .reContentCell {<br>
    border: 1px solid #D6D6D6 !important;<br>
}<br>
.Default.RadEditor {<br>
    background-color: #F3F3F3 !important;<br>
}<br>
.RadEditor table {<br>
    position: relative;<br>
}<br>
.RadEditor .reToolZone table {<br>
    position: absolute;<br>
    right: 0;<br>
    top: 0;<br>
    width: 180px !important;<br>
}


That is all for CSS)
So I want to dynamically change size of editor.

I was trying next scripts:

       
function pageLoad() {<br>
            var editor = $find("<%=reHelpBody.ClientID%>");<br>
            editor.get_element().setSize("80","60");<br>
        }<br>
<br>
        function pageLoad() {<br>
            var editor = $find("<%=reHelpBody.ClientID%>");<br>
            editor.setSize("80","60");<br>
        }<br>
<br>
        function pageLoad() {<br>
            var editor = $find("<%=reHelpBody.ClientID%>");<br>
            editor.get_element().setSize("80","60");<br>
    editor.get_element().style.height = "490px";
    editor.style.height = "490px;
        }



But still I have in Chrome next thing:
element.style {
  1. width: 680px;
  2. height: 300px;
  3. min-height: 300px;
  4. min-width: 680px;
}

I tried to append CSS:

       
.Default.RadEditor
        {
            float: right;
            width: 300px;
            min-width: 100px;
        }

but got nothing. For float it works fine. What else can I do?)

P.S. It's just impossibru to deal with your code block.
Rumen
Telerik team
 answered on 19 Feb 2013
1 answer
113 views
Hi,

I want to get what are the filters applied on Pivot Grid. Is it using predicate or some other format so that same filters i can save in database and can assign grid (last applied filters) when user come to same page.

Is there any way to do it , please help !

Thanks 
Dheeraj 
Angel Petrov
Telerik team
 answered on 19 Feb 2013
1 answer
117 views
Hello All,
When I am opening a web page having radcombobox control , I am getting this error.
"_TypeError: g is null   in Telerik.Web.UI.WebResource.axd"
I am using Q3.
Please help me.
Thanks
Abhilash
Angel Petrov
Telerik team
 answered on 19 Feb 2013
2 answers
103 views
Hi,

I came across this issue while i was trying the RadGrid Control. Could someone please help me out here?

Here is the problem.

I have a RadGrid control inside a RadPanel. (RadGrid is enabled for client side row selection and paging.) And i have a Button control outside the rad panel bu its Click event will update the above Radpanel with RadGrid. (Using Ajax manager i have set the button to update the AjaxPanel) 

When i click on the button it will update my DataGrid accordingly but all of a sudden Client-Side Row selection is disabled. And i also noticed Page Size combo is also disabled.

Am i doing something wrong here? Little help would be really appreciated.

Hope this explains!!!

Thanks,
Chriantha
Chirantha
Top achievements
Rank 1
 answered on 19 Feb 2013
3 answers
120 views
Hi,
My requirement : To display the hierarchial items in Radgrid.
Instead of using Nestedview template,  thought of using iframe for each grid row.
For example :
===========
Parent record 
    |
    | -->iframe page with child grid
                |
                |--> iframe page with grand child grid

====================================

For this, my code has single radgrid with one GridTemplateColumn column
Inside that  GridTemplateColumn 
    - created Header template -inside that, table for column headers
    - created item template - inside that table for column values
In the first column in the table will be image column, if click on the img, it will open the iframe page and based in the query string am binding the child grid records.


My issue is, i want sorting, filtering for each column inside the header template.

Because of one template column, default filtering option will be one textbox appearing in the grid.


my code is:

   <telerik:RadGrid ID="grdparent" runat="server" Width="600px" AutoGenerateColumns="false"
            OnNeedDataSource="Needdatasource" ItemStyle-Height="25px" AlternatingItemStyle-Height="25px"
            SelectedItemStyle-Height="25px" BorderColor="#009933" BorderWidth="1px" GroupingEnabled="false"
            AllowSorting="True" AllowMultiRowSelection="False" AllowFilteringByColumn="True"
            AllowPaging="True" GridLines="None" ShowGroupPanel="false" ShowStatusBar="true"
            FilterItemStyle-BackColor="#F1F7EE" PageSize="10">
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView DataKeyNames="ParentID" AllowMultiColumnSorting="false" InsertItemPageIndexAction="ShowItemOnFirstPage"
                InsertItemDisplay="Top" GroupLoadMode="Server" ShowHeadersWhenNoRecords="true"
                CommandItemDisplay="None" EditMode="PopUp" EnableHeaderContextMenu="false"
                CommandItemSettings-AddNewRecordText="Add" AllowAutomaticInserts="false"
                AllowFilteringByColumn="True" AllowSorting="true" ExpandCollapseColumn-ButtonType="ImageButton">
                <Columns>
                    <telerik:GridTemplateColumn>
                        <HeaderTemplate>
                            <table width="600px" class="mod_content" cellpadding="0" cellspacing="0" border="0">
                                <tr onclick="selectRow(this);">
                                    <td style="width: 30px">
                                    </td>
                                    <td style="width: 50px">
                                        Parent ID
                                    </td>
                                    <td style="width: 300px">
                                        Parent Name
                                    </td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table width="600px" class="mod_content" cellpadding="0" cellspacing="0" border="0">
                                <tr onclick="activeRow(this);">
                                    <td style="width: 30px">
                                        <a href="#" onclick="return toggleDivDisplay('tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>', this, false,'Child.aspx?ParentID=<%#DataBinder.Eval(Container,"DataItem.ParentID")%>' );">
                                            <img src="../images/Expand.gif" alt="Expand/Collapse" id="tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>image"
                                                height="14" width="14" border="0" /></a>
                                    </td>
                                    <td style="width: 50px">
                                        <asp:Label ID="lblHdnParentID" runat="server" CssClass="gridlabel" Text='<%#DataBinder.Eval(Container, "DataItem.ParentID")%>'></asp:Label>
                                    </td>
                                    <td style="width: 150px">
                                        <asp:Label ID="lblParentIDName" CssClass="gridlabel" Text='<%# Eval("ParentName") %>'
                                            runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr style="padding: 0px 0px 0px 0px">
                                    <td colspan="3" style="padding: 0px 0px 0px 0px">
                                        <div id='tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>' class="display_false"
                                            style="padding-left: 15px">
                                            <iframe id="tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>frame" src="Child.aspx"
                                                frameborder="0" scrolling="yes" height="150" width="100%"></iframe>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

 

Antonio Stoilkov
Telerik team
 answered on 19 Feb 2013
7 answers
285 views
Hi
I'm using RadImageEditor to edit an image. Every time when I rotate the image, it seems the image is not saved when I use imgEditor.GetEditableImage(). Any ideas?



Vessy
Telerik team
 answered on 19 Feb 2013
4 answers
817 views
Hello,
i have a question.
It is possible to enter in a gridbound column,when editing, html tags like
John<form> and take the whole sentence as it is,a literal.We need any kind of solution for our problem.


Best Regards,
Daniel

P.S:we would appreciate a response as soon as possible.
Daniel
Top achievements
Rank 1
 answered on 19 Feb 2013
3 answers
323 views

Hi I have a scenario where I am creating table inside 2 seperate grid columns. I want the tables inside both the columns to be the same size.

For ex table 1 can have 4 rows while table 2 can have 6 rows. I match up the rows in table1 and table2 and if there is no matching row I add an empty cell to that row.

I want the rows to have the same height so the rows look aligned with the data... data in table1 to data in table2 or empty row in table1 to data in table 2. or if the data in table2 wraps to two lines then the corresponding row in table1 to have the same height.
Currently, they don't align well as the rows with empty space don't take up any height.

I've tried adding row height but that doesn't help.Please suggest

below is my code:

      GridDataItem item = e.Item as GridDataItem;
       int accountID = Int32.Parse(item.GetDataKeyValue("AccountID").ToString());
       DataRow[] dr = PayoutElection.GetPayouts_ByAccount_ListByParticipant(Int32.Parse(Profile.ParticipantID), accountID, PayoutTypeFilter);
 
       Table tblPayoutType = new Table();
       Table tblPayoutDesc = new Table();
       Table tblEffectiveDate = new Table();
       foreach (DataRow row in dr)
       {
           TableRow trPayoutType = new TableRow();
           trPayoutType.Attributes.Add("class", "mergedItems");
           TableRow trPayoutDesc = new TableRow();
           trPayoutDesc.Attributes.Add("class", "mergedItems");
           TableRow trEffectiveDate = new TableRow();
           trEffectiveDate.Attributes.Add("class", "mergedItems");
 
           TableCell cellPayoutType = new TableCell();
           cellPayoutType.Text = row["PayoutType"].ToString();
 
           TableCell cellPayoutDesc = new TableCell();
           cellPayoutDesc.Text = row["PayoutDescription"].ToString();
 
           TableCell cellEffectiveDate = new TableCell();
           DateTime effDate = (DateTime)row["EffectiveDate"];
           DateTime currentDate = DateTime.Parse(Profile.CurrentDate);
           cellEffectiveDate.Text = effDate.ToString(Utility.MBFormatDate);
 
           trPayoutType.Cells.Add(cellPayoutType);
           tblPayoutDesc.Rows.Add(trPayoutDesc);
           trPayoutDesc.Cells.Add(cellPayoutDesc);
           tblPayoutType.Rows.Add(trPayoutType);
           trEffectiveDate.Cells.Add(cellEffectiveDate);
           tblEffectiveDate.Rows.Add(trEffectiveDate);
 
           if (effDate > currentDate)
           {
               if (cellPayoutType.Text == _currentPayoutType)
               {
                   cellPayoutType.Text = "";
               }
           }
     }
item["PayoutType"].Controls.Add(tblPayoutType);
item["PayoutDescription"].Controls.Add(tblPayoutDesc);
Antonio Stoilkov
Telerik team
 answered on 19 Feb 2013
3 answers
109 views
hi
i wanted to edit the values inside the grid so that i wanted to get all the entered values and update using updatecommand.

from text box i am able to get the values in updatecommand but in case of combobox i am not able to get the selectedvalue of the combobox in code behind of updatecommaond of gridview.

can any one plz post me the code to update data using combobox and checkboxes if possible..


Thanks
Santosh
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?