Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
105 views
Hi,

I am wondering how I can access the combo box input text box?  The reason is I would like to add some custom attribute to the input text box.  Please let me know if anyone has clue.  It looks like they protected the input text box from public access.

Chris
Chris
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
154 views
i wanna create a web desktop with radwindow and another rad controls...
how can i dynamically create a rad window (for example : creat a class that i pass 2 parametters to it , parametters contatins url of aspx form and name of form , then this class creat a form by sended url...) ????
and manage forms by radwindow manager...
please help me :)
really tanx
Georgi Tunev
Telerik team
 answered on 26 Jun 2008
0 answers
129 views
Hello,

I've got a treeview that seems to timeout during many postbacks. The thing is, when it does work, the refresh happens almost instantly... and there are actually only 5 or 10 nodes with no children. Firebug points to this line in scriptresource "this._xmlHttpRequest.send(body);"...

But even if I comment out the whole ajaxmanager, the page still takes a very long time to load.

Interestingly, once the page does load, it stops having the timeout error... but only for that session.

I know this is all very vague - I'm not really sure what's going on and am hoping something here sounds familiar.

Thanks,

Mike
Mike
Top achievements
Rank 1
 asked on 26 Jun 2008
1 answer
178 views

Hi, I'm using RadComboBox ("RadControls for ASPNET AJAX Q1 2008") with load on demand.  I seem to have it half-working.  It will successfully display "1-10 of 8836", and when I type in the first few letters of any of the first ten items in the list it will successfully highlight that item which matches.  The problem is that when I type in letters which should match items which are not in the first ten it will not find it; it will say "Loading..." for a few seconds but then "Loading..." will disappear and no items will be selected even though I have confirmed that what I'm searching for should be in the list based on what I'm seeing in the database.

My code is below, most of which I copied from your website:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/ComboBox/Examples/PopulatingWithData/AutoCompleteSql/DefaultVB.aspx

<asp:GridView Width=100% ID="gvLines" runat=server AutoGenerateColumns=false>
<HeaderStyle CssClass=dgheader/>
<RowStyle CssClass=dgrows />
<Alternatingrowstyle CssClass=dgalternating />
<Columns>
<asp:TemplateField HeaderText="Customer">
<ItemTemplate>
    <telerik:RadComboBox
        ID="RadComboBox1" runat="server" Width="250px" Height="200px"
                AllowCustomText="True" ShowToggleImage="True" ShowMoreResultsBox="true"
                    EnableLoadOnDemand="True" MarkFirstMatch="True" OnItemsRequested="RadComboBox1_ItemsRequested" EnableVirtualScrolling="true">
    </telerik:RadComboBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

-------------------------------------

Protected Sub RadComboBox1_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)

Dim sql As String = "SELECT CUSTOMER = RTRIM(CUST_NO) + ' - ' + CUST_NAME from DATA_POOL.DBO.Customer (NOLOCK) "

Dim adapter As New SqlDataAdapter(sql, conn)
Dim data As New DataTable()
adapter.Fill(data)

Dim rcb As RadComboBox = CType(o, RadComboBox)

Try

    Dim itemsPerRequest As Integer = 10
    Dim itemOffset As Integer = e.NumberOfItems
    Dim endOffset As Integer = itemOffset + itemsPerRequest
    If endOffset > data.Rows.Count Then
        endOffset = data.Rows.Count
    End If

    If endOffset = data.Rows.Count Then
        e.EndOfItems = True
    End If
    Dim i As Integer = itemOffset
    While i < endOffset
        rcb.Items.Add(New RadComboBoxItem(data.Rows(i)("CUSTOMER").ToString(), data.Rows(i)("CUSTOMER").ToString()))
        i = i + 1
    End While

    If data.Rows.Count > 0 Then
        e.Message = [String].Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString())
    Else
        e.Message = "No matches"
    End If
Catch
    e.Message = "No matches"
End Try

End Sub

Veselin Vasilev
Telerik team
 answered on 26 Jun 2008
11 answers
415 views

Is there something wrong with my method of initiating a server side radAlert?
Each time i press button1, the memory for iexplore.exe jumps up a few K, and every time thereafter. So it only takes a dozen or so clicks to go from 30K->70K. If I replace the RadAlert with a normal javascript alert in the code there is no problem.


ajax aspx page

<asp:Label ID="Label1" runat="server" Text="Click 'New' button as many times as you want to add new items and then click 'Save' to udpated the CheckBoxList"></asp:Label>

<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button_Click"/>

<asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button_Click"/>

<asp:CheckBoxList ID="CheckBoxList1" runat="server" style="z-index: 101; left: 251px; position: absolute; top: 91px" Height="51px" Width="26px">

<asp:ListItem>1</asp:ListItem>

<asp:ListItem>2</asp:ListItem>

</asp:CheckBoxList>

<asp:ListBox ID="ListBox1" runat="server" style="z-index: 102; left: 204px; position: absolute; top: 87px" Height="191px" Width="34px">

<asp:ListItem>1</asp:ListItem>

<asp:ListItem>2</asp:ListItem>

</asp:ListBox>

<telerik:RadAjaxManager ID="TelerikjaxManager1" runat="server" OnResolveUpdatedControls="AjaxManager1_ResolveUpdatedControls" OnAjaxSettingCreated="TelerikjaxManager1_AjaxSettingCreated" OnAjaxSettingCreating="TelerikjaxManager1_AjaxSettingCreating">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="Button1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="Button1" />

<telerik:AjaxUpdatedControl ControlID="ListBox1" />

<telerik:AjaxUpdatedControl ControlID="TextBox1" />

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="Button2">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="Button2" />

<telerik:AjaxUpdatedControl ControlID="CheckBoxList1" />

<telerik:AjaxUpdatedControl ControlID="TextBox2" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue" Animation="None" Behavior="Default" Behaviors="Default" InitialBehavior="None" InitialBehaviors="None" Left="" Top="">

<Windows>

</Windows>

</telerik:RadWindowManager>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>

Code behind is:

protected void Button_Click(object sender, EventArgs e)

{

TextBox1.Text =

"";

TextBox2.Text =

"";

switch (((Button) sender).ID)

{

case "Button1":

{

ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "RadAlertScript", "radalert('test');", true);

ListBox1.Items.Add(

new ListItem((ListBox1.Items.Count + 1).ToString()));

updateControlID =

"ListBox1";

TextBox1.Text =

"Button1";

TextBox2.Text =

"Button2";

break;

};

case "Button2":

{

for (int i = CheckBoxList1.Items.Count; i < ListBox1.Items.Count; i++)

{

CheckBoxList1.Items.Add(

new ListItem((i + 1).ToString()));

}

updateControlID =

"CheckBoxList1";

TextBox1.Text =

"Button1";

TextBox2.Text =

"Button2";

break;

}

}

}

Georgi Tunev
Telerik team
 answered on 26 Jun 2008
13 answers
454 views
Hi all,

I have a pop-up page called from my parent page using the radwindow control.  On my pop-up window, I have a Close button which closes the pop-up page and refreshes the parent page.  This all works great.

On my pop-up page, I also have a Save button.  The user clicks this after making changes.  This button causes a postback and saves this data.  I'd like to be able to close the pop-up window AFTER the postback occurs.  You guys helped me out with this on the Close button.  But I do not know how to make this happen after I save the data.  Can anyone help?  Here is my pop-up page code:

HTML:

<

asp:Button ID="btnUpdate" runat="server" Text="Save" />

<asp:Button ID="btnCancel" runat="server" CausesValidation="false" Text="Cancel" OnClientClick="closeWin(); return false;"/>


<
script type="text/javascript">

function GetRadWindow()

{

var oWindow = null;

if (window.radWindow) oWindow = window.radWindow;

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

return oWindow;

}

function closeWin()

{

var oWnd = GetRadWindow();

oWnd.close();

top.location.href=top.location.href; originalAttribute="href" originalPath="top.location.href;" originalAttribute="href" originalPath="top.location.href;"

}

</script>



Thanks,
Bob
Anon
Top achievements
Rank 1
 answered on 26 Jun 2008
6 answers
169 views
I've put the javascript of the example 'Additional Fields' in my project, set the OnClientAdded to AddTitle, but I can't see the additional fields.

Is there something more I have to change (code behind?) to make it work?
Veselin Vasilev
Telerik team
 answered on 26 Jun 2008
5 answers
223 views
hi all,
heres my table: ProductID(int), ProductName(varchar) and ProductStatus(bit).

I managed to show them all in radgrid.
My question is how to change the formatting/css of a particular row if  its ProductStatus value is False or 0.
I assume its in the item_created event?

thanks in advance for any help.
Princy
Top achievements
Rank 2
 answered on 26 Jun 2008
2 answers
117 views
hi,

i have a vertical splitter and there are two panes in it.
i have applied javascript to expand and collapsed when user check the checkBox.

var chk=document.getElementById("<%=myCheckBox.ClientID%>");

var productsp = $find("<%=newSplitter.ClientID%>");

var productpane = productsp.getPaneById('<%=FirstPane.ClientID%>');

var packagepane = productsp.getPaneById('<%=SearchResultPackage.ClientID%>');

if(chk.checked)

{

if(packagepane.get_collapsed())

{

packagepane.expand();

}

if(!productpane.get_collapsed())

{

productpane.collapse();

}
}

else

{

if(productpane.get_collapsed())

{  productpane.expand();  }

if(!packagepane.get_collapsed())

{   packagepane.collapse();    }

}


this is working fine in IE6 but in Firefox packagepane did not expand and i have checked its whidth it becomes zero.
i have fixed its width then also it is creating problem.

please tell me how can i fix it....

altaf
Top achievements
Rank 1
 answered on 26 Jun 2008
6 answers
389 views
I have an outer splitter with 3 row, header, content and footer set to 100% height. In content area i i have an inner splitter with left and right pane, which also set to 100% height of content area. In the left pane I have a splitter that divides the left side in two radpanes, the top for subnavigation and the bottom för main navigation (just like MS Web Outlook).

In the main navigation pane I have a RadPanelbar and the items load dynamic at runtime and depends aón user role. The problem is that I cannot set the height property of the main navigation pane equally to the RadPanelbar's height. The splitter in the left pane divides the two panes 50/50 (if I don't set the height property of those two), which is not good because all the empty space at the bottom which I don't want to have. I wanna set the height property of the main navigation pane equally to the RadPanelbar's height. How can I do that?
Svetlina Anati
Telerik team
 answered on 26 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?