Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
108 views
I am trying to add a checkbox to the group headings in my RadGrid, and I followed the instructions in a forum to do this server side. The problem I am having is similar to what the users are describing here:



I need to add the checkbox, but seems I can only get it to work when I have the grid GroupLoadMode set to Server. The issue I have is

 that I specifically need this set to client for other functionality I have already coded. Does somebody have an example of adding a

 checkbox or other control to a group heading using javascript (Client-side) as opposed to some of the other examples on this website

 that accomplish the same thing using server side code?
Pavlina
Telerik team
 answered on 17 Feb 2010
5 answers
184 views
Hi
            I am using NestedView grid. It is having the the feature of ExportPDF. So i added export button inside the CommandItemTemplate.

I firmly need a formatted PDF ouptut, so as per the Telerik direaction i used ItemCreated Event to set up the formatting styles for exporting based on the true flag set inside the ItemCommand event when i called export button.

Normally when i click the export button the grid has to fire the ItemCreated event then need to fire ItemCommand event again it return back to ItemCreated  event . so that only i can set the flag in ItemCommand event that helps to form the PDF file output in the Itemcreated event.

But in my Nested grid the Itemcreated event firing first and then ItemCommand event fires but finally it never return back to Itemcreated event . As a result of these i could not set the flag so that could not format the PDF out put.

So guide me to solve the scenario...

-Thanks
Daniel
Telerik team
 answered on 17 Feb 2010
1 answer
110 views
<Telerik:RadGrid AutoGenerateColumns="False" Skin="Vista" GridLines="Both" 
    OnItemDataBound="grForumList_ItemDataBound" ID="grForumList" AllowPaging="True"  
    AllowSorting="True" runat="server"
    <PagerStyle Mode="NextPrevAndNumeric" /> 
    <GroupingSettings CaseSensitive="false" /> 
    <MasterTableView TableLayout="Fixed" Dir="RTL" PageSize="2"
        <Columns> 
            <Telerik:GridTemplateColumn UniqueName="clForumIcon" HeaderText="סוג"
                <ItemTemplate> 
                     <YAF:ThemeImage ID="ThemeForumIcon" runat="server" /> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="clLnkForum" HeaderText="פורום"
                <ItemTemplate> 
                    <asp:LinkButton CommandName="Select" ID="lnkForum" runat="server"></asp:LinkButton> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="צפו בפורום" HeaderButtonType="TextButton" UniqueName="lblForumViewing"></Telerik:GridBoundColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="תיאור" HeaderButtonType="TextButton" UniqueName="lblForumDescription"></Telerik:GridBoundColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="נושאים" HeaderButtonType="TextButton" UniqueName="lblCountTopics"></Telerik:GridBoundColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="הודעות" HeaderButtonType="TextButton" UniqueName="lblCountPosts"></Telerik:GridBoundColumn> 
            <Telerik:GridTemplateColumn UniqueName="clLnkLastPosts" HeaderText="הודעה אחרונה"
                <ItemTemplate> 
                    <asp:LinkButton CommandName="Select" ID="lnkLastPosts" runat="server"></asp:LinkButton> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
        </Columns> 
        <HeaderStyle Width="80px"></HeaderStyle> 
    </MasterTableView> 
    <PagerStyle Mode="NextPrevAndNumeric" /> 
</Telerik:RadGrid> 
Hi,
I am facing very odd problem with my grid design, when i am in design mode i can see the grid skin with borders, pager style etc..
But, when i run the application i see the grid with no borders or skin, just the data on the page with nothing.

You can see the code above.
* As you can see, i am using ItemDataBound event.

Can you please advice?

Martin
Telerik team
 answered on 17 Feb 2010
3 answers
336 views
Hi

I'm using template columns in rad grid. I would like to use the pencil & trash images that u guys provide for the default GridEditColumns.
I think the images are packaged in the DLL, is there a way to access them ?

Please let me know.

Thanks
Kiran
XXXX
Top achievements
Rank 1
 answered on 17 Feb 2010
1 answer
38 views
Hi,

I'm using WebUserControl for Grid EditForm. It show up if I click "Add new record" icon from top bar, but nothing happened if I click "Edit" on row level. What are the restrictions which can prevent the grid from showing user control edit form?

Thanks,
Enoch
Enoch Kuang
Top achievements
Rank 1
 answered on 17 Feb 2010
7 answers
168 views

This cannot be this difficult.  When I set the AllowColumnResize = 'true' the grid still won't allow me to resize the column header.

  <telerik:RadGrid ID="MyClientsViewGrid" runat="server"   
        AllowAutomaticDeletes="True" AllowAutomaticInserts="True"   
        AllowAutomaticUpdates="True" AllowSorting="True" DataSourceID="SqlDataSource1"   
        GridLines="None" Skin="Web20" ShowFooter="True">  
         
      <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">  
            <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing> 
      </ClientSettings> 
 
          
        <HeaderContextMenu Skin="Web20">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </HeaderContextMenu> 
 
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="ListValueID" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom" > 
            <Columns> 
               ...  
            </Columns> 
        </MasterTableView> 
 
        <FilterMenu Skin="Web20">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 

I found this article but it isn't allowing me to resize (The icon doesn't change into the Resizer)
http://www.telerik.com/help/aspnet-ajax/grdresizingcolumns.html  

 

Nathan
Top achievements
Rank 1
 answered on 17 Feb 2010
1 answer
146 views
I have the following javascript code for my custom save button in the toolbar. The ID 'editBody1555365' is a div that gets populated inside the content area of the editor.

<

 

asp:Button ID="btnSubmit" runat="server" Text="Save"/>

<

 

asp:Label ID="body1" runat="server" ></asp:Label>

 


<

 

script type="text/javascript">

 

Telerik.Web.UI.Editor.CommandList[

"Save"] = function(commandName, editor, args) {

 

 

var sBody1 = editor.get_document().getElementById("editBody1555365").innerHTML;

 

document.getElementById(

"body1").text = sBody1;

 

alert(

"Body1: " + document.getElementById("body1").text);

 

 

var btnSubmit = $get("<%=btnSubmit.ClientID%>"); //get a reference to the Asp:Button

 

btnSubmit.click();

//click it programmatically

 

};

 

</script>

 

<

 

telerik:RadEditor showSubmitCancelButtons="False" editable="true" SaveInFile="False" ID="RadEditor" runat="server" ></telerik:RadEditor>

 

 

 

When I alert the label I am receiving the content as expected. The problem is when I get inside the code behind for my asp.net button when it gets programmatically clicked it doesnt seem to be able to find any content inside my label 'body1' which it should seeing as it alerted the content just before. It is if the content gets erased when the page does a post back before going inside the save button code behind.

Does anyone know how I can get the content for the ID 'editBody1555365' through the code behind?

Dobromir
Telerik team
 answered on 17 Feb 2010
5 answers
133 views
hi,
Can we create a shortcuts of directory using fileExplorer??e.g if i create a folder named folder1 and then create another folder name folder2 and i want to create a shortcut of folder1 in folder2..is it possible??another thing is that would it be possible for ctrl+shift whilst dragging to create a shortcut in fileExplorer like the keyboard shortcut for windows explorer??


regards
Saad Javaid
Fiko
Telerik team
 answered on 17 Feb 2010
3 answers
149 views

Hi,

I have a horizontal bar chart. X-axis (the vertial one) shows 1, 2, 3, 4. And the Y-axis (the horizontal one) shows 0, 0.1, 0.2, 0.3

I tried to format the Y-axis labels as percentage with 1 decimal, as following:

myChart.PlotArea.YAxis.Appearance.CustomFormat = "#.0%"
It didn't work. Actually, I've tried in several ways, it kept showing 0.00%  10.00% ... Always gave me 2 decimals. However, when I tried it on the X-axis, it worked (gave me 100.0%  200.% ... 400.0%)
Anybody knows what's wrong?

Second, could anyone please tell me how to hide the axis labels? I don't want to show 1, 2, 3, 4 along the X-axis.

Thanks,
Vivian

Vivian Hu
Top achievements
Rank 1
 answered on 17 Feb 2010
1 answer
142 views
Y'all have a nice example of using the FileExplorer as a custom dialog here, but I was wondering if it could also be used for a Save As dialog? I have an app that's pulling html from a RadEditor, converting it to PDF (using a third party library) and then I want to display a save as dialog. I know I could build a custom dialog totally from scratch, but the RadFileExplorer already has so many nice features, I was just wondering if it could be adapted and if so, if anyone had a nice example.

Thanks and take care.


Fiko
Telerik team
 answered on 17 Feb 2010
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?