Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
Hi,

Will the Roadmap for the next release be published soon?


Richard

Sorry - i see this has been updated.
Ivo
Telerik team
 answered on 21 Sep 2009
2 answers
216 views
I'm creating a grid dynamically in my c# code by adding columns like this:

GridBoundColumn

 

boundColumn = new GridBoundColumn();

 

TargetGrid.MasterTableView.Columns.Add(boundColumn);

After I've added all of the columns I need to set the sort order programmatically. So let's say I add 3 columns: ID, name and address. Now I need to set the grid to sort ascending on Name. How can I do that?

Thanks in advance!
Ben

Nikolay Rusev
Telerik team
 answered on 21 Sep 2009
1 answer
92 views
Hi,

I have grid. Inside grid i have tabstrip with 5 tab. I edit data using radwindow popup. When i edit data and come back to main grid i want goto current tab which i in previous. When i return to grid with rebind() always i am in first tab. How can i come to my current tab?

lakmal
Shinu
Top achievements
Rank 2
 answered on 21 Sep 2009
1 answer
99 views
I have a RadGrid with ClientDataKeyNames="CredentialId"

From the codebehind I call a JavaScript function. This function gets passed in a CredentialId. So I know the CredentialId of the row that I want. Now how do I get the row?

 



Princy
Top achievements
Rank 2
 answered on 21 Sep 2009
3 answers
282 views
    Hi.  I'm in the process of converting a RadGrid using "traditional" columns to CardView, using ItemTemplate.  In the original grid, I had a GridButtonColumn to handle deleting, with a confirmation pop-up.  I want to keep this same behavior in the template.  Is there a way I can embed the original button column's behavior in the new template?

Thanks,
    Andrew

Here's my old grid:
                <telerik:RadGrid ID="ContentsRadGrid" runat="server" 
                    GridLines="None" 
                    OnNeedDataSource="ContentsRadGrid_NeedDataSource"   
                    ondeletecommand="ContentsRadGrid_DeleteCommand">  
                    <MasterTableView AutoGenerateColumns="false">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn HeaderText="Quantity" DataField="Quantity" /> 
                            <telerik:GridBoundColumn HeaderText="NDC" DataField="TheDrug.Ndc" /> 
                            <telerik:GridBoundColumn HeaderText="Name" DataField="TheDrug.DrugName" /> 
                            <telerik:GridBoundColumn HeaderText="Size" DataField="TheDrug.DrugSize" /> 
                            <telerik:GridBoundColumn HeaderText="Strength" DataField="TheDrug.DrugStrength" /> 
                            <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" 
                                ConfirmText="Delete medication from kit list?" /> 
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid> 
 

And here's the new one, so far:
                <telerik:RadGrid ID="RadGrid1" runat="server" 
                    GridLines="None" 
                    OnNeedDataSource="RadGrid1_NeedDataSource"   
                    ondeletecommand="ContentsRadGrid_DeleteCommand">  
                    <MasterTableView AutoGenerateColumns="false">  
                        <Columns> 
                            <telerik:GridBoundColumn HeaderText="Quantity" DataField="Quantity" Visible="false" /> 
                        </Columns> 
                        <ItemTemplate> 
                            <table style="width:100%;">  
                                <tr> 
                                    <td rowspan="2" style="text-align:center; width:15%">  
                                        Qty:<br /> 
                                        <%# Eval("Quantity") %> 
                                    </td> 
                                    <td colspan="2" style="white-space:nowrap;">  
                                        <%# Eval("TheDrug.Ndc.NdcString") %>&nbsp;  
                                        <span style="font-weight:bold;"><%# Eval("TheDrug.DrugName") %></span>  
                                    </td> 
                                    <td rowspan="2" style="text-align:center; width:10%">  
                                        DELETE LINK GOES HERE  
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td style="white-space:nowrap;">  
                                        Strength:&nbsp;  
                                        <%# Eval("TheDrug.DrugStrength") %> 
                                    </td> 
                                    <td style="white-space:nowrap;">  
                                        Size:&nbsp;  
                                        <%# Eval("TheDrug.DrugSize") %> 
                                    </td> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
                    </MasterTableView> 
                </telerik:RadGrid> 
 


Andrew
Top achievements
Rank 1
 answered on 21 Sep 2009
2 answers
81 views
hi all,

i want to hide the imagebutton of datepicker and open the calendar from code from clientside. is that possible?

thanks for any reply.
Benjamin
Top achievements
Rank 1
 answered on 20 Sep 2009
1 answer
137 views
HI,

I have grid with tabstrip. Url is
http://seeds-lanka.com/minute/document.aspx

I updating data using popup window. When i edit popup window data, it doesnt change my parent grid data. Here is my code

Popup Window code
<SCRIPT LANGUAGE="JavaScript">
         function closeWindow() {
        
            var oWindow = GetRadWindow();
                oWindow.OnClientClose = CloseAndRebind;
         }
         
         function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
                  
                return oWindow;
            }
    
    
         
         function CloseWnd(args)
            {
           
                GetRadWindow().close();
                GetRadWindow().BrowserWindow.refreshGrid(args);
            }

        </SCRIPT>
 protected void cmdUpdateInfo_Click(object sender, EventArgs e)
    {
        string DocNo="";
        if (Request.QueryString["DocNo"] != null)
        {
            DocNo = Request.QueryString["DocNo"].ToString();

            DbConnection Con = new DbConnection();
            SqlConnection Conn = new SqlConnection();
            Conn = Con.SQLConnection();
            Conn.Open();
            string sqlStr = "update  tbl_DATA_Docs set [Document Title]='" + txtDocTitle.Text + "',[Client Doc No]= '" + txtClientDocNo.Text + "', SystemID= " + ddlSystem.SelectedValue + ", PackageID=" + ddlPackage.SelectedValue + ", PhaseID=" + ddlPhase.SelectedValue + ", CTRID= " + RadCTR.SelectedValue + " where DocNo= '" + DocNo + "'";
            SqlCommand cmd = new SqlCommand(sqlStr, Conn);
            cmd.ExecuteNonQuery();
            ltInfo.Text = "<SPAN style='color=blue'><br>Succesfully Updated<br></SPAN>";
            cmd.Dispose();
            Conn.Dispose();

        }
        ScriptManager.RegisterStartupScript(this, GetType(), "closeWnd", "CloseWnd('RebindAndNavigate');", true);

        }



Main window with parent gird code

 protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {

        if (e.Argument == "Rebind")
        {
            RadGrid4.MasterTableView.SortExpressions.Clear();
            RadGrid4.MasterTableView.GroupByExpressions.Clear();
            RadGrid4.MasterTableView.Rebind();
            RadGrid4.Rebind();
        }
        else if (e.Argument == "RebindAndNavigate")
        {
            RadGrid4.MasterTableView.SortExpressions.Clear();
            RadGrid4.MasterTableView.GroupByExpressions.Clear();
           // RadGrid4.MasterTableView.Rebind();
            ldsDocument.DataBind();
            RadGrid4.Rebind();
          
           

            //RadGrid4.MasterTableView.SortExpressions.Clear();
            //RadGrid4.MasterTableView.GroupByExpressions.Clear();
            //RadGrid4.MasterTableView.CurrentPageIndex = RadGrid4.MasterTableView.PageCount - 1;
            //RadGrid4.Rebind();
        }


    }

I suing linqdatasource to bind data. Other thing is when bind data to parent grid current tabstrip should open.

lakmal







lakmal
Top achievements
Rank 2
 answered on 20 Sep 2009
0 answers
116 views
Hi
  If you please visit this Url
http://mono.telerik.com/TabStrip/Examples/ApplicationScenarios/LoadOnDemand/DefaultCS.aspx
and click on tab products then you will find that "Products" tabpage will not get selected until system will complete ajax call which might be fine as viewstate does not exist. But in my applicaiton I have same scenairo (not the the load on demand but load on tab change) but veiw state does exist , Some thing like this

<

 

telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Web20" AutoPostBack="true" Width="450px"

 

 

MultiPageID="mpvMain" SelectedIndex="0" OnTabClick="RadTabStrip1_TabClick">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="Contacts" PageViewID="mpContacts" Selected="true" Value="CONTACTS">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Details" PageViewID="mpDetails">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Group Processing" PageViewID="mpGroupProcessing">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Groups" PageViewID="mpGroups">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="mpvMain" runat="server" SelectedIndex="0" >

 

 

<telerik:RadPageView runat="server" ID="mpContacts" CssClass="pageView" >

 

This is contacts Tab, Grid here

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server" ID="mpDetails" CssClass="pageView" >

 

Detail Page, Some textboxes and labels here

 

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server" ID="mpGroupProcessing" CssClass="pageView" >

 

This is Group Processing,Some textboxes ,labels and grid here

 

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server" ID="mpGroups" CssClass="pageView">

 

This is Groups tab, Some textboxes and labels here

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 



Server side

 

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)

 

{

System.Threading.

Thread.Sleep(5000);

 

// I basically dont want this here , but it should automatically be done on client side before ajax call
e.Tab.Selected =

true;

 

}



Basically AjaxLoading panel should move on top of textboxes which belongs to specific tab which is about to popuplate and user should see those populating.

May be  I am doing something wrong  or missing some thing, Your help would be highly appreciated.
Best Regards
Rizwan Bashir
Rizwan
Top achievements
Rank 1
 asked on 19 Sep 2009
3 answers
172 views
Hi,

I have stored radgrid setting in DB.I haved implemented it using ur example named

  Saving grid settings on a per user basis GridSettingPersister
plz browse for that for reference
Its working fine

The problem is
I have set a default grouping.When the page loads,the user ungroup that default grouping field and then logout
Then he logined again and tried to group with that default grouping field again.
Now a crash ocurring

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot group by this column!

I am using .Net 2008,telerik Q2009 and IE8.I think this problem is coming after i have upgraded to IE8..I am getting this problem occasionaly


plz help me
Thanks in advance

Dharmesh Barochia
Top achievements
Rank 1
 answered on 19 Sep 2009
1 answer
98 views

Any ideas? Works great in IE8. (.JS files are working w/ ScriptManager too)

 

<

 

rad:RadStyleSheetManager id="StyleSheetManager" runat="server" >

 

<StyleSheets>

 

    <rad:StyleSheetReference Name="Foo.css" Assembly="Bar" />

 

 

</StyleSheets>

 

</rad:RadStyleSheetManager>

then:

[

assembly: WebResource("Foo.css", "text/javascript")]

Thanks!@

 

 

 

 

Mark Sanger
Top achievements
Rank 1
 answered on 19 Sep 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?