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

I have a GridView in my Site

I will insert a Template or Button Column with a ImageButton in the Grid

When i click on this Button "Select" then i must Call a VB Sub

Private Sub BookingSelected()
Session Test("ID") = selectedID of the Row from my Grid

End Sub

How can i bring the Selected Row ID from my Grid to a Sub in my CodeBehind ????
I have a Column in my Grid where has the Name "ID"
and this ID Number of the Selected Row must i have in my Sub in Codebehind when i click the Select Button ?????

I must have this in Codebehind .. not another way

Thanks for Help



Shinu
Top achievements
Rank 2
 answered on 10 Nov 2009
1 answer
110 views
Is it possible to open a page with a grid with all the rows selected in edit mode so the user doesn't have to click on each one?

 

 

 

Shinu
Top achievements
Rank 2
 answered on 10 Nov 2009
27 answers
628 views
Hi there ,
Is it possible to return the value from my radwindow to the edit form of a radgrid (radtextbox)?
(line 27)

 

  function ShowDialog() {  
           //window.radopen(null, "DialogWindow");  
 
           //Forced reload (option 1): In order to force a reload on the dialog, the following approach should be used  
           //window.radopen("./SimpleDialog.aspx", "DialogWindow");  
 
           //Forced reload (option 2): If one is not sure what the current url is, forced reload can be achieved like this:  
           var oWnd = window.radopen(null, "DialogWindow");  
           oWnd.SetUrl(oWnd.GetUrl());  
       }  
 
       /* Called when a window is being shown. Good for setting an argument to the window */ 
       function OnClientShow(radWindow) {  
           //Get current content of textarea  
           var oText = document.getElementById("<%=radtextbox1.ClientID %>").value;  
 
           //Create a new Object to be used as an argument to the radWindow  
           var arg = new Object();  
           //Using an Object as a argument is convenient as it allows setting many properties.  
           arg.TextValue = oText;  
           //Set the argument object to the radWindow         
           radWindow.Argument = arg;  
       }  
 
 
       function CallBackFunction(radWindow, returnValue) {  
           var oArea = document.getElementById("<%=ChequeDetailsGrid.ClientID %>");  
           if (returnValue) oArea.value = returnValue;  
           else alert("No text was returned");  
       }  
 
       /* Called when a window is being closed. */ 
       function OnClientClose(radWindow) {  
           //Another option for passing a callback value  
           //Set the radWindow.Argument property in the dialog  
           //And read it here --> var oValue = radWindow.Argument;  
 
           //Do cleanup if necessary  
       }     

Thanxs in advance
Panos

Tiffany
Top achievements
Rank 1
 answered on 09 Nov 2009
2 answers
151 views
My DataForamtString is {0:#,##0;(#,##0);0} and my data value is (Decimal)0.  In a view mode, it is displayed as "0" as I want but in edit mode (in place) it turns into "0.0000".  Why? How can I control this format without explicit loading the control item?



Thanks,
Chris
Christopher Borys
Top achievements
Rank 1
 answered on 09 Nov 2009
0 answers
99 views
Hi, I just wanted to know ir there's a way on how to get index of selected content. Reason why I need it coz I have to know the index range where changes where made.
I have to 2 rad editor with same content. 1 is to be edited and the other 1 remains unchanged. Though the text color of the changed editor will reflect the other one..
Scenario.. I have several custom tool that will check for errors on paragraphs, one is convert lowercase to propercase or converts the 1st character to uppercase. Tool automatically change the color, text, etc once the word is highlighted and tool has been clicked. User cannot enter in any text at all. Only tools are enabled and can be used.
Sample:
The word to correct is "i" so I used my custom tool to convert that to uppercase. the 1st editor will reflect the changes and it will color it red. 2nd editor will remain in smallcase but will have a color red as well. This only shows that it was changed or corrected..
The problem is when there are lots of "i" on the paragraph the 2nd editor will have a color red on those character. for my code is just replace all instance... But if I have a index range it will just be contained on that instance...

So with that I really need to get the index...

I hope somebody could give some input or if they have other suggestion that would fit my requirements that would be very much appreciated.

Thanks in advance,

RJ
RJ
Top achievements
Rank 1
 asked on 09 Nov 2009
0 answers
138 views
Hi, I would like to disable keyboard entry when during edit mode. I have setup custom tool that user can use to make changes but not to enter any text directly to my Editor. Its like all keys on the keyboard is not allowed. I already made use of preview mode with my custom tool so that user cannot enter in any characters, but with my custom tool it can only do highlight or change color of the text but not able to change the word. For I think pastehtml not working with preview mode. So in order  to make pastehtml work it should be done during edit mode but then again I don't want user to enter in any text thats why I wanted to disable any character entry.

I think this can be done via javascript, but I don't know the code on disabling all keys..

Thanks in advance,

RJ
RJ
Top achievements
Rank 1
 asked on 09 Nov 2009
2 answers
191 views
Good afternoon,
Is it possible to access a control within the HeaderTemplate of a RadComboBox via JavaScript?  I have a checkbox that when checked should clear the checkboxes within the ItemTemplate.  Thank you.

Jeff
Jeff
Top achievements
Rank 1
 answered on 09 Nov 2009
5 answers
101 views
The title pretty much says it all. I have a grid with columns that start freezing only after a command event has triggered a postback to the AjaxManager. Here is a sample of my markup...

<rad1:RadGrid ID="grdImpRecords" runat="server"  AutoGenerateColumns="false" Skin="WebBlue"
    AllowPaging="true" PageSize="50"
    OnUpdateCommand="grdImpRecords_UpdateCommand"
    OnNeedDataSource="grdImpRecords_NeedDataSource" >
   
    <PagerStyle Mode="NextPrevNumericAndAdvanced"/>

    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" FrozenColumnsCount="2"  />
    </ClientSettings>

    <MasterTableView DataKeyNames="AssignmentID" EditMode="InPlace" TableLayout="Fixed" >

        <EditItemStyle Width="165px" />
        <ItemStyle Width="165px" />
        <HeaderStyle Width="165px" HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" />
                                   
        <Columns >

            <rad1:GridTemplateColumn HeaderButtonType="None" HeaderText="Discard" UniqueName="DiscardColumn">
                <HeaderStyle Width="105px" />
                <ItemStyle Width="105px" HorizontalAlign="Center" />
                <HeaderTemplate>
                    <input type="checkbox" class="DiscardCheckbox" id="HeaderCheckbox" onclick="" />
                    <label for="HeaderCheckbox" id="HeaderCheckBoxLabel" >Check All</label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox runat="server" CssClass="DiscardCheckBox" ID="chkDiscard" />
                </ItemTemplate>
            </rad1:GridTemplateColumn>
           
            <rad1:GridEditCommandColumn UniqueName="EditColumn" >
                <HeaderStyle Width="100px" HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" />
                <ItemStyle Width="100px" HorizontalAlign="Center" />
            </rad1:GridEditCommandColumn>
           
            <rad1:GridBoundColumn UniqueName="LoanNumber">
                <HeaderStyle Width="165px" HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" />
                <ItemStyle Width="165px" />
            </rad1:GridBoundColumn>
           
            <rad1:GridBoundColumn UniqueName="InvestorLoanNumber"  >
                <HeaderStyle Width="165px" HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" />
                <ItemStyle Width="165px" />
            </rad1:GridBoundColumn>
           
        </Columns>
                                    
    </MasterTableView>
</rad1:RadGrid>


Thanks for any help.
Josh Horton
Top achievements
Rank 1
 answered on 09 Nov 2009
2 answers
262 views
I load a radgrid from a system.web.security.MembershipUserCollection.
 
 Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
        Dim mc As MembershipUserCollection 
        mc = Membership.GetAllUsers 
        RadGrid1.DataSource = mc 
End Sub 
This works fine. When i edit a row i get event Radgrid_UpdateCommand .
I need the dataitem for the row which should be the of type MemberShipUser
so i can update it using Membership.UpdateUser( dataitem)

The e.item.dataitem is nothing.

The grid also does not show the update after the UpdateCommand is done.

Any ideas on how I can do this?


iReplicate
Top achievements
Rank 1
 answered on 09 Nov 2009
3 answers
118 views
I have a problem where the values in the y-axis are being multiplied by 10 when I bind the data to the rad chart.  I didn't write the code, but I have verified that the data going into the chart is correct.  Yet, when the chart is displayed, the y-axis label shows 50 instead of 5, 80 instead of 8, and so on.

The value format is set to General, but it doesn't seem to make any different (I've also tried Number).

I've searched the code and chart setup to identify why this may be happening, but I'm at a loss at this point.

I'm wondering if anyone has any thoughts about where to look in the chart properties configuration for a setting that might be doing this.  Any help would be much appreciated.
Michael Edvalson
Top achievements
Rank 1
 answered on 09 Nov 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?