Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views
I have a treeview defined like this:

<telerik:RadTreeView ID="tvHierarchy" runat="server" CheckBoxes="True" LoadingStatusPosition="BeforeNodeText" OnClientNodeChecked="tv_Check" OnClientNodeClicking="tv_Clk">
   <CollapseAnimation Duration="100" Type="None" />
    <ExpandAnimation Duration="100" />
</telerik:RadTreeView>

I want to populate the tree with multiple root nodes, so I'm trying this way:

For Each rootNode As dbo_BASE_NODE In rootNodes
   Dim node As New RadTreeNode()
   node.Text = rootNode.BN_ID & " " & rootNode.BN_NAME
   node.Value = rootNode.HN_RID
   tvHierarchy.Nodes.Add(node)
Next

But everything is aligning to the right like this (Please see attachment radtreeview.jpg).

I need all root nodes to align to the left with as little "whitespace" as possible.  There is no whitespace in the data.

Thanks,
Rob
Princy
Top achievements
Rank 2
 answered on 04 Aug 2011
4 answers
209 views
Hi, I have an issue. When i click on Radbutton1, i want a prompt to tell me that i have successfully uploaded the picture. How can i do it?

I tried ways like -

 RadWindowManager1.RadAlert("Event's picture changed!", 200, 100, "Change Image", "callBackFn")

but it doesnt seems to work too.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2011
1 answer
85 views
Hi there, I have an issue right now. I have a button(Radbutton1), & when i click on the button , i want it to alert me that i have successfully update. I have tried a few ways but it doesnt seems to work.

-  RadWindowManager1.RadAlert("Event's picture changed!", 200, 100, "Change Image", "callBackFn")

Shinu
Top achievements
Rank 2
 answered on 04 Aug 2011
3 answers
129 views
Hello!

At this moment i have a table on my database which data are populated on a RadGrid.

Now I need to create a aspx page with a control to show a resume of the data showed on the RadGrid (total of records on my table "Docs" (database)).

I need a control to show a message with some data from my database table "Docs" on a aspx page.

Example:

"At this moment exist 33 docs with priority 1,(column from table Docs) Stage S(column from table Docs), 21 docs with priority 1 Stage SP, 31 docs with priority 2 Stage S, 1 doc with priority 2 Stage SP........"


My "Docs" table has a column for doc id, Stage (two values possible: S or SP) and Priority(1 to 9). I'm already showing that info on my RadGrid in a different page, but now before showing the RadGrid page i want to show another page with that Resume...

What control i must use and how can i put on the message the correct values for the regists??
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Aug 2011
3 answers
167 views
Hi,

I see in the html code generated for my project that both Telerik.Web.UI.WebResource.axd and WebResource.axd (I'm assuming this is the asp.net one) are refered.

How do I prevent this and make sure all access to resources are made using the same webresource handler (the Telerik one for instance)?

Thanks.

P
Patrice Boissonneault
Top achievements
Rank 1
 answered on 04 Aug 2011
3 answers
151 views
Hi,

Can you tell me if there is a way to select a row in a grid with javascript? For instance, lets say I did a rebind on the client and immediately following the rebind I wanted to have row 3 of the grid selected and highlighted. Is that possible?

Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 04 Aug 2011
3 answers
192 views
Hi Everyone,

Version of Telerik.Web.Ui DLL (2010.3.1109.35)
I have an issue where RadCompression is somehow related.  When viewing a PDF File (Generated by Reporting Services) it comes back with "File does not begin with %PDF-".  When I disable RadCompression in the Web.Config it works.
So then I attempted to exclude the pages that call the Reporting Services like this

<telerik.web.ui>
    <radCompression>
      <excludeHandlers>
        <add handlerPath="LaunchLink.aspx" matchExact="false"/>
        <add handlerPath="LaunchExternalSite.aspx" matchExact="false/>
      </excludeHandlers>
    </radCompression>
  </telerik.web.ui>

It does not seem to be making any difference.

Any info will be greatly appreciated.

Thanks

Bran
Brandon
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
130 views
I've dynamically created Header/Content templates for use in the panelbar, but I'm unable to access the dropdownlist, checkbox, and textbox controls that I've placed within the panelbar templates. I think I've hit every article that I could find here, but still not haveing any success. I've tried using findcontrol at both the page and item levels, I've also used a recurrsive function to hit every control at the page and item levels. Any help or pointers would be greatly appreciated.
Kate
Telerik team
 answered on 03 Aug 2011
1 answer
146 views
I have a radgrid that uses a user control for editing the selected row details...

When I have a row selected, let's say the 2nd item on my grid, and then modify a column filter, the 2nd item on my newly filtered grid is still in edit mode (assuming the updated grid has at least 2 items).

The expected behavior for this (at least for me) would be to have any preivously selected items become cleared upon filter change.

I've seen posts that explain how to un-select items upon re-sort and adding new items, but not for my particular case. 

Please help.  Thanks.

Tsvetina
Telerik team
 answered on 03 Aug 2011
2 answers
233 views

Hello everybody,
I have encountered a problem in dealing with Radgrid,I have a aspx page with 3 UserControl inside of the page.This UserControls will be added at runtime(each in a tabstrip) and within the controls I have a Radgrid which have my ownn Custom logic and Insert,update and delete have been done in code-behind.
when I do Insert, it is perfect but when i refresh the page after doing insert,the InsertCommand of my RadGrid will be Fired again and insert the same record again.
Here is my Source Code


 

 

 

 

 

protected

 

 

void RadGridPanel_InsertCommand(object sender, GridCommandEventArgs e) 
  
   
  
{
  
   
  
   
  
GridEditFormInsertItem insertItem = e.Item as GridEditFormInsertItem; 
  
   
  
   
  
   
  
GridEditableItem item = e.Item as GridEditableItem; 
  
   
  
   
  
   
  
tbl_Panel _tbl_Panel = new tbl_Panel(); 
  
   
  
item.UpdateValues(_tbl_Panel);
  
DbContext_Panel.AddTotbl_Panel(_tbl_Panel);
  
DbContext_Panel.SaveChanges();
  
}

 

<telerik:RadGrid  ID="RadGridPanel" CssClass="myRadGrid" GridLines="None" runat="server"  AllowAutomaticDeletes="True"
             PageSize="4"  AllowPaging="True" 
            AutoGenerateColumns="False"  OnItemUpdated="RadGridPanel_ItemUpdated"
            OnItemDeleted="RadGridPanel_ItemDeleted" OnItemInserted="RadGridPanel_ItemInserted" 
                OnDataBound="RadGridPanel_DataBound" AllowFilteringByColumn="True" 
                OnItemCreated="RadGridPanel_ItemCreated"
                oninsertcommand="RadGridPanel_InsertCommand" 
                OnUpdateCommand="RadGridPanel_UpdateCommand" 
                OnNeedDataSource="RadGridPanel_NeedDataSource" 
                oneditcommand="RadGridPanel_EditCommand" onitemdatabound="RadGridPanel_ItemDataBound" ondeletecommand="RadGridPanel_DeleteCommand"
                >
            <%--<PagerStyle Mode="NextPrevAndNumeric" />--%>
             <SelectedItemStyle Font-Names="Tahoma"  Font-Size="11px"   ForeColor="#8abe23"  /> 
            <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="PanelId"
                 HorizontalAlign="NotSet" AutoGenerateColumns="False"  Font-Names="Tahoma" EditMode="InPlace"  EditFormSettings-FormStyle-ForeColor="Black" Font-Size="11px">
                 <CommandItemTemplate>
                    <div style="padding: 5px 5px;" dir="rtl">
                   <asp:LinkButton ID="LinkButton2" runat="server" Font-Names="Tahoma" CommandName="InitInsert" Visible='<%# !RadGridPanel.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" src="../Images/Icons/AddRecord.gif" />اضافه كردن ركورد جديد</asp:LinkButton>  
                        <asp:LinkButton ID="LinkButton4" runat="server"  Font-Names="Tahoma" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Icons/Refresh.gif" />به روزآوري اطلاعات</asp:LinkButton>
                    </div>
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn ConfirmText="آيا از حذف ركورد جاري مطمئنيد؟" ConfirmDialogType="RadWindow"
                        ConfirmTitle="حذف ركورد جاري" ButtonType="ImageButton" CommandName="Delete" Text="حذف"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
                    <telerik:GridBoundColumn DataField="PanelName" HeaderText="پنل " SortExpression="PanelName"
                        UniqueName="PanelName" ColumnEditorID="GridTextBoxColumnPanelName">
                    </telerik:GridBoundColumn>
  
                    <telerik:GridBoundColumn DataField="Address" Display="False" EditFormColumnIndex="2" HeaderText=" آدرس "  SortExpression="Address"
                        UniqueName="Address" ColumnEditorID="GridTextBoxColumnAddress">
                    </telerik:GridBoundColumn>
  
                     <telerik:GridBoundColumn DataField="Tellphone" HeaderText="تلفن " SortExpression="Tellphone"
                        UniqueName="Tellphone" ColumnEditorID="GridTextBoxColumnTellphone">
                    </telerik:GridBoundColumn>
                    <telerik:GridDropDownColumn DataField="SiteOwnerId" EditFormColumnIndex="0" HeaderText="شركت" UniqueName="SiteOwnerId" ListTextField="SiteOwnerName"
                     ListValueField="SiteOwnerId" ColumnEditorID="GridDropDownColumnSiteOwnerId">
                    </telerik:GridDropDownColumn>
                                        
                </Columns>
                <EditFormSettings ColumnNumber="3" CaptionDataField="PanelName"  CaptionFormatString="ويرايش اطلاعات" InsertCaption="" >
                   <FormTableItemStyle Wrap="True" ></FormTableItemStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" 
                        Width="100%" />
                    <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" Font-Names="Tahoma" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <EditColumn ButtonType="ImageButton" InsertText="ثبت پنل" UpdateText="ويرايش پنل"
                        UniqueName="EditCommandColumn1" CancelText="لغو ويرايش">
                    </EditColumn>
                    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings>
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>
        </telerik:RadGrid>

 

Nizar
Top achievements
Rank 1
 answered on 03 Aug 2011
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?