Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
89 views
Hi @all,
I implemented a version of theTooltipified RadGrid (Tooltipified RadGrid). The only real change I made was that I tried to load the data with an ObjectDataSource. I tried to use a SessionParameter to pass a User object. Well, first I passed just the user ID (by standard parameter) but it took me too long to reload the user with all his rights so that I needed to pass the whole previously loaded user. With just passing the ID everything went fine.
The problem now is that the tooltip now does not show anything at all except the close button. Even a label which I placed in the UserControl is not shown.
Does anyone know what to do here?

Best regards
Ferdinand

Svetlina Anati
Telerik team
 answered on 15 Oct 2009
2 answers
62 views
Hi there,

Well, I'm having trouble in how to hide fields in EditMode when use DetailsView.

I tried without success with the following code...

        string nome = e.Item.OwnerTableView.Name;  
        if (nome == "valores")  
        {  
            if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))  
            {  
                GridEditFormItem myColumn = (GridEditFormItem)e.Item;  
                {  
                    myColumn["id_postosQT"].Parent.Visible = false;  
                }  
            }  
        } 

The error is: Cannot find a cell bound to column name 'id_postosQT'.

Someone could give me a hand on this ?

Regards,

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
78 views
Hi there,

Well, I'm having trouble in how to hide fields in EditMode when use DetailsView.

I tried without success with the following code...

        string nome = e.Item.OwnerTableView.Name;  
        if (nome == "valores")  
        {  
            if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))  
            {  
                GridEditFormItem myColumn = (GridEditFormItem)e.Item;  
                {  
                    myColumn["id_postosQT"].Parent.Visible = false;  
                }  
            }  
        } 

The error is: Cannot find a cell bound to column name 'id_postosQT'.

Someone could give me a hand on this ?

Regards,

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 15 Oct 2009
1 answer
91 views
Hi,
I am using Telerik Date Picker control, and having a weird issue. I have two date Picker controls ("From" and "To"). Suppose my browser language is set to 'German'. Now, Whenever my From Control date is greater than To Control, error should come(which is coming) but the date entered in my two controls changes to English format which should have been German. This does not happens when I am refreshing the page.
Could you please let me know, if there is any property in the Telerik date control from which we can restore the browser setting upon loading.

Thanks in Advance  
robertw102
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
266 views
Hi There,

I have a radgrid with four columns. However, I have a condition: if type "A" I must show all the four columns enabled for editing. If type "B" I must show only three columns for editing.

The problem is that if I hide the column or use readonly property the field appear for editing anyway.

Is there a way or a functionality of RadGrid that could make possible to hide programmatically those fields for editing?

Thanks for any help.

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
93 views
Hello,

I have a form outside of a grid that has textboxes and a button.  When the button is clicked the data is added to the grid and a database on a full postback.  But inorder to see the data in the grid I must perform another postback.  In looking for a solution to this problem I saw something about the data not being written to the database until the first postback is completed, not sure if thats true or not.  But I was hopeing someone could help me out with this problem because I would like the grid to have the newly inserted data after the add button is clicked.

Thanks,
Kirk
Schlurk
Top achievements
Rank 2
 answered on 15 Oct 2009
2 answers
147 views
Hello,

I'm using an SQL Datasource for my list.  It receives the value, text, and sort order from the SQLDataSource.  I would like to put an icon to the left of each list item (it will be the same icon each time - it isn't different on each item).  Almost like a bullet point icon.  I'm just doing this to dress up my list a little bit.  Can someone give me an example of how to do this with an SQLDataSource?  Here is an example of my ListBox:

<telerik:RadListBox ID="RadListBox1" runat="server"   
                                        DataKeyField="TopicAssign_ID" DataSourceID="SqlDataSource1"   
                                        DataTextField="TopicName"   
                  DataValueField="TopicAssign_ID" Skin="Office2007"   
                                        Width="100%" AllowAutomaticUpdates="True"   
                  AllowReorder="True" AutoPostBackOnReorder="True" DataSortField="SortOrder"   
                  EmptyMessage="The curently selected Role has no Topics"   
                  onreordered="RadListBox1_Reordered" TransferMode="Copy"   
                  EnableDragAndDrop="True" Height="300px" style="top: 0px; left: 0px">  
                                    <EmptyMessageTemplate> 
                                        The curently selected Role has no Topics  
                                    </EmptyMessageTemplate> 
                                    </telerik:RadListBox> 

I have an image named TopicListItems.png and will use that image for each item on the list.

Any help appreciated!
Heath Brown
Top achievements
Rank 1
 answered on 15 Oct 2009
1 answer
114 views
Hi there,

I have a Radgrid and in it I've got a GridBinaryImageColumn.

                <telerik:GridBinaryImageColumn DataField="Logo" HeaderText="Logo" UniqueName="Logo" 
                    ImageHeight="80px" ImageWidth="120px" ResizeMode="Fit" DataAlternateTextField="AgencyName" 
                    DataAlternateTextFormatString="Logo of {0}"
                    <HeaderStyle Width="10%" /> 
                </telerik:GridBinaryImageColumn> 

When I insert a new record I would like to check and make sure the user has selected an image to upload.
How can I do this?

Thanks,
Darren
Schlurk
Top achievements
Rank 2
 answered on 15 Oct 2009
1 answer
166 views

The TreeView control works fine in the page. However, it does not work in the Popup.

What confuses me is that the node expand and collapse works for TreeView even in the popup, but not the Contextmenu
 

To understand more about this, I added the alert() in the onClientContextMenuShowing to show the property values. First, I get the menu object:

treeNode.get_contextMenu()

It shows that enable state is "undefined" and visible is false. (it displays correctly if NOT in popup).
So I add these two lines:

 

menu.set_enabled();
menu.show(evt);

It still does not work.

What I don't understand is that same code works in the non-popup scenario.

I need help.

Here is the code:

<asp:ScriptManager ID="sm" EnablePageMethods="true" runat="server" ></asp:ScriptManager>
<telerik:RadEditor ID="htmlEditor" runat="server" OnClientLoad = "OnClientLoad"
         AllowScripts="True" Width="100%" Height="500" Skin="Vista" EditModes="Design,Html"  >
 <Tools>
                <telerik:EditorTool Name="btnSave" Text="Save" ShowIcon="false" showText="true" />
                <telerik:EditorSeparator Visible="true" />

  <telerik:EditorToolGroup>
   ..................
  </telerik:EditorToolGroup>
  </Tools>
</telerik:RadEditor>
 
<asp:Panel ID="pnlTemplateSave" Wrap="false" style="background-color:White;" runat="server">
<asp:UpdatePanel ID="updpnlSave" runat="server" UpdateMode="Conditional" >      
<ContentTemplate>
            <telerik:RadTreeView ID="RadTreeView2" MultipleSelect="false" AllowNodeEditing="true" runat="server" Height="300px"
                OnClientContextMenuShowing="onClientContextMenuShowing"
                OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
                OnContextMenuItemClick="RadTreeView2_ContextMenuItemClick"
                OnNodeExpand="RadTreeView2_NodeExpand"
                OnNodeEdit="RadTreeView2_NodeEdit"
                Skin="Vista" >
                <ContextMenus>
                    <telerik:RadTreeViewContextMenu ID="RootFolderContextMenu" runat="server">
                        <Items>
                            <telerik:RadMenuItem Value="New" Text="New Folder" ></telerik:RadMenuItem>
                        </Items> 
                        <CollapseAnimation Type="none" />            
                    </telerik:RadTreeViewContextMenu>
                    <telerik:RadTreeViewContextMenu ID="ChildFolderContextMenu" runat="server">
                        <Items>
                            <telerik:RadMenuItem Value="New" Text="New Folder" ></telerik:RadMenuItem>
                            <telerik:RadMenuItem Value="Rename" Text="Rename Folder" PostBack="false"></telerik:RadMenuItem>
                            <telerik:RadMenuItem Value="Delete" Text="Delete Folder" ></telerik:RadMenuItem>          
                        </Items>           
                        <CollapseAnimation Type="none" />
                    </telerik:RadTreeViewContextMenu>
                    <telerik:RadTreeViewContextMenu ID="FileContextMenu" runat="server">
                        <Items>
                        </Items>           
                        <CollapseAnimation Type="none" />
                    </telerik:RadTreeViewContextMenu>
                </ContextMenus>
            </telerik:RadTreeView>          
            <ajaxToolkit:ModalPopupExtender ID="mpeTemplateSave" runat="server"
                                TargetControlID="btnSave"
                                BehaviorID="mpeTemplateSaveBhvr"
                                PopupControlID="pnlTemplateSave"
                                PopupDragHandleControlID="tblTemplateSave"                                                  
                                CancelControlID="btnCancel"                               
                                BackgroundCssClass="ext-el-mask" />

            </ContentTemplate>
            </asp:UpdatePanel>
        </asp:Panel>

<script type="text/javascript">

Telerik.Web.UI.Editor.CommandList["btnSave"] = function(commmandName, editor, args) {
                var mpe = $find('mpeTemplateSaveBhvr');
                if (mpe)
                    mpe.show();
            }

function onClientContextMenuShowing(sender, args) {
                var treeNode = args.get_node();
                var evt = args.get_domEvent();
                treeNode.set_selected(true);
                if (treeNode) {
                    var menu = treeNode.get_contextMenu();
                    if (menu) {
                        menu.set_enabled();
                        alert(menu.get_enabled());
                        menu.show(evt);
                        alert(menu.get_enabled() + "  " + menu.get_visible());
                    }

}
</script>


 

Atanas Korchev
Telerik team
 answered on 15 Oct 2009
3 answers
242 views
Hi,

I have a problem on displaying the target control that retains the first selected information.

Here my codes.

 

protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e)

 

{

 

Control ctrl = Page.LoadControl("~/UserControls/PersonalDetails.ascx");

 

e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);

 

PersonalDetails oPersonalDetails = (PersonalDetails)ctrl;

 

oPersonalDetails.Initial(

int.Parse(e.Value), 0, "", false);

 

}

 

protected void RGGP_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

BaseClass.

PeopleCareTeam oPeopleCareTeam = (BaseClass.PeopleCareTeam)e.Item.DataItem;

 

 

if (e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem || e.Item.ItemType == Telerik.Web.UI.GridItemType.Item)

 

{

RadToolTipManager1.TargetControls.Add(e.Item.ClientID, oPeopleCareTeam.LinkedPeopleID.ToString(),

true);

 

}

}

What shall I do to get refresh target control?

Regards,

Duy

Svetlina Anati
Telerik team
 answered on 15 Oct 2009
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?