Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
352 views
Hi, I have added dropdownlist for the each raws in a radgrid. I have managed to add "low,normal and high options  inside the dropdownlist but". I can not get the selected value. in the dropdownlist. I used the code below;

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles RadGrid1.ItemDataBound


        If TypeOf e.Item Is Telerik.WebControls.GridDataItem Then
            Dim item As Telerik.WebControls.GridDataItem = DirectCast(e.Item, Telerik.WebControls.GridDataItem)
            Dim ddl As DropDownList = DirectCast(item("Temp").FindControl("DropDownList1"), DropDownList)
            
            ddl.Items.Add("Low")
            ddl.Items.Add("Normal")
            ddl.Items.Add("High")
           

            MsgBox(ddl.SelectedValue)
          
           End If


    End Sub

ddl.SelectedValue only gives me the Low option, when i run the page but when i select normal or high or low again. It doesnt seem to be doing anything so i also added the code below.

Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged
        MsgBox(ddl.SelectedValue)
    End Sub

But still no use. So is there a way of getting the selected item of the dropdownlist in radgrid?




Tsvetoslav
Telerik team
 answered on 29 Apr 2009
1 answer
133 views
Hello,

I am using the SharePoint editor Lite version, In our project we are using a custom button in the tool bar when the user clicks on it we will be showing the a dialog box

RadEditorCommandList["Report"] =function CustomDialogCommand(commandName, editor, oTool)  
                            {  
                                var args = editor.GetDialogParameters(commandName);                       
                                RadEditor1ClientObject = editor;  
                                var vindo =editor.ShowDialog(  
                                    'Reports/ListReportStore.aspx' 
                                    , args  
                                    , 500  
                                    , 320  
                                    , CustomDialogCallback  
                                , null 
                                    , "Report");                                                            }; 
But the window that is shown when the user click on the button is not modal. Please let me know how do I make the window modal.

Thanks & Regards
Stanimir
Telerik team
 answered on 29 Apr 2009
1 answer
93 views
Dear all,

I have a problem while i am setting values in controls on a button click, server side code runs fine but updated values
are not showing in contols. I have to refresh the user control "ucCallerInfo".

Markup of page is as below:


<

form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings><telerik:AjaxSetting AjaxControlID="mainFrame">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="mainFrame" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="ucCallerInfo" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

<%

--<ClientEvents OnRequestStart="DisableAllControls();" OnResponseEnd="EnableAllControls();" />--%>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

Width="75px" Transparency="50">

 

 

<div id="divProgress" class="modalPopup">

 

Request In Progress...

 

<img id="imgProgress" alt="..." src="Images/Progress/progress2.gif" />

 

 

</div>

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="position: absolute;

 

top: 0px; left: 0px; right: 0px">

 

<tr width="100%">

 

 

<td align="left">

 

 

<telerik:RadSplitter ID="radSplitter" SplitBarsSize="1px" BackColor="#4E8AA4" runat="server"

 

 

Width="100%" Height="100%" VisibleDuringInit="false">

 

 

<telerik:RadPane ID="rdCTI" Scrolling="None" runat="server" Width="20%" Height="600px">

 

 

<telerik:RadSplitter ID="rdSplitterLeft" runat="server" Orientation="Horizontal">

 

 

<telerik:RadPane ID="rdpanelDialPad" runat="server">

 

 

<div name="divdialpadq" id="divdialpad" src="http://wwww.teckinfo.com" align="center"

 

 

style='border: groove 1px Gray;'>

 

 

</div>

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar ID="RadSplitbar3" runat="server" EnableResize="true" CollapseMode="Forward">

 

 

</telerik:RadSplitBar>

 

 

<telerik:RadPane ID="LeftPane" runat="server" ContentUrl="LeftPanel.aspx">

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" EnableResize="false" />

 

 

<telerik:RadPane ID="RightPane" Scrolling="None" runat="server" Width="100%">

 

 

<table width="100%">

 

 

<tr>

 

 

<td>

 

 

<telerik:RadSplitter ID="InnerSpliter" runat="server" Orientation="Horizontal" Height="100%"

 

 

Width="100%">

 

 

<telerik:RadPane ID="CallerInfoPane" runat="server" MinHeight="10" MaxHeight="255"

 

 

Scrolling="Y">

 

 

<Caller:CallerInfo runat="server" ID="ucCallerInfo" />

 

 

<EmailInfo:EmailInfo runat="server" ID="ucEmailInfo" />

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar ID="RadSplitbar2" runat="server" EnableResize="true" CollapseMode="Forward">

 

 

</telerik:RadSplitBar>

 

 

<telerik:RadPane ID="DetailsPane" runat="server" MinHeight="345" MaxHeight="700"

 

 

Height="500" Scrolling="Y" Style="position: relative;">

 

 

<iframe src="SearchCallerInformation.aspx" scrolling="auto" name="IFrmMain" frameborder="0"

 

 

height="100%" width="100%" id="mainFrame" runat="server" enableviewstate="true" />

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

</td>

 

 

</tr>

 

 

</table><asp:Button ID="btnFillCustomer" runat="server" Text="Fill Customer" OnClick="btnFillCustomer_Click"

 

 

Style="display: none;" />

 

 

</form>


Please tell me..

Thanks & Regards
Brijendra Pandey

Svetlina Anati
Telerik team
 answered on 29 Apr 2009
0 answers
54 views
Hi telerik team,

Image for menu main item is not aligning properly .
which i m getting like below image :
http://picasaweb.google.com/lh/photo/FfYuoLulyWfI44p7Euw3SQ?feat=directlink
(It should be right side and center align ) if i use below line of code

 

 

 

 <telerik:RadMenuItem Text="Reports" ImageUrl="images/down.gif" >                    
                    <Items> 
                        <telerik:RadMenuItem Text="Custom">  
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem Text="Adhoc">  
                        </telerik:RadMenuItem>                          
                    </Items> 
                </telerik:RadMenuItem> 

 

 

But  i m expecting like below image
http://picasaweb.google.com/lh/photo/HS7Bj_OYTbkSupFk_ByLqA?feat=directlink

Thanks for any reply.
sudheer
Top achievements
Rank 2
 asked on 29 Apr 2009
1 answer
127 views
We are trying to inherit RadGrid to form our own control. We are referencing the assembly Telerik.Web.UI in a new project and forming a class RxGrid (inheriting from RadGrid).
When we use RxGrid class, intellisense does not work in aspx page after two levels. It show <Mastertableview> and <Columns> but does not show the detailed columns like GridBoundColumn, GridClientSelectcolumn inside with intellisense.

What is the reason for this? Is there any way to achieve this?

Please mark a copy to chetan.mehta@cognizant.com

Regards
Chetan

P.S: We have purchased Telerik suite but raising ticket here because subscriptipn perios has expired.
Sebastian
Telerik team
 answered on 29 Apr 2009
2 answers
110 views
Is there a way to export the contents of a radgrid so that each row is rendered to an individual page? we have a report that shows applications, and I want to export it to pdf for printing, however, it is meshing it together so that the top of one "page" appears on the bottom of the previous page.

Is it possible to have it automatically break to a new page on each row? I've scoured documentation and forums and have found nothing, which leads me to believe that this functionality doesn't exist.

If it doesn't, is there a workaround? I really, REALLY need this feature!

thank you,
josh
Tsvetoslav
Telerik team
 answered on 29 Apr 2009
4 answers
197 views

The code sample below produces strange results in all non-IE browsers (actually, it does so in IE6 as well, just not IE7). The first time the "Edit" button is clicked the editor appears but the content area is only about 10 pixels high. Once the "Cancel" button is clicked then all subsequent clicks of the "edit" button result in the editor being rendered properly. I am using VS 2008, ASP.net 3.5 SP1, and Telerik build 2008.03.1314.35

ASPX:
 <asp:UpdatePanel runat="server">
  <ContentTemplate>
   <asp:Button runat="server" ID="edit" Text="edit" OnClick="edit_Click" /><asp:Button runat="server" ID="save" Text="save" OnClick="edit_Click" />
   <asp:Panel runat="server" ID="cnt">
    <asp:Literal runat="server" ID="txt" Text="testing." />
    <telerik:RadEditor runat="server" ID="ed" Width="500px" Visible="false" />
   </asp:Panel>
  </ContentTemplate>
 </asp:UpdatePanel>


Code-Behind:

protected void edit_Click(object sender, EventArgs e)
  {
   ed.Visible = false;
   txt.Visible = true;

   if (sender == edit)
   {
    ed.Visible = true;
    ed.Content = txt.Text;
    txt.Visible = false;
   }
  }

Paul
Top achievements
Rank 1
 answered on 29 Apr 2009
5 answers
471 views
hello to all expert

                           Good day! i would like again to ask some help coz i dont know how i'am going to put a combobox on every row on the grid that is also binded to the database..please help.


sample codes si highly appreciated

thanks to all
Jols
Top achievements
Rank 2
 answered on 29 Apr 2009
1 answer
153 views
Hi, 
    I am facing a problem , that i want to select the Node on ClientSide... on the Same way i dont need to fire the NodeClick event, when i select that node from ClientSide... Means the Node Click event should only be Fired when i manually click the Node... How can i Stop this.. Beacuse its creating Problem for me , as i am using Ajax in my Application...

Thanks and Best Raegards

Awais
Princy
Top achievements
Rank 2
 answered on 29 Apr 2009
2 answers
146 views
Hello,

when I use RadWindowManager with UseClassicWindows set to true, Im' not able to center my radWindow, and my RadWindow doesn't appear to be modal.
I've tried to move my window to 400,400 to make a test, but it doesn't work.
Here is my code :

        function showWindow()    
        {    
            var ownd = radopen("splash.html", "splash");    
            ownd.Show();    
            ownd.MoveTo(400,400);  
 
            /*var oManager = GetRadWindowManager();
            var oWnd = oManager.GetWindowByName("Splash");
            oWnd.Show();
            SizeToFit();*/ 
        }  
 

And my html tags :

        <form id="Form1" method="post" runat="server">  
        <radw:RadWindowManager ID="Singleton" runat="server" Visible="true" VisibleStatusbar="false"    
        Top="400" Left="400" DestroyOnClose="true" ShowContentDuringLoad="false"    
        Behaviors="Close,Move">    
        </radw:RadWindowManager>   
            <asp:PlaceHolder id="Contenu" Runat="server"></asp:PlaceHolder> 
        </form> 
 

In my code in page_load I've set the properties of RAdWindowManager :

        Singleton.UseClassicWindows = True 
        Singleton.VisibleStatusbar = False 
        Singleton.VisibleTitlebar = False 
        Singleton.Modal = True 
 

Thanks for your help
Yann
Princy
Top achievements
Rank 2
 answered on 29 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?